{"openapi":"3.1.0","paths":{"/v1/health":{"get":{"operationId":"getHealth","parameters":[],"responses":{"200":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Service health probe","tags":["health"]}},"/v1/audit-log":{"get":{"operationId":"listAuditLog","parameters":[{"name":"createdUntil","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Exclusive upper bound (created_at < value), RFC 3339 UTC."},{"name":"createdFrom","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive lower bound (created_at >= value), RFC 3339 UTC."},{"name":"action","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["account.connected","account.disconnected","api_key.created","api_key.revoked","webhook_endpoint.created","webhook_endpoint.updated","webhook_endpoint.deleted","team_member.role_changed","team_member.removed","team_invitation.created","team_invitation.revoked","team_invitation.accepted","user.password_changed","connect_allowed_redirect.added","connect_allowed_redirect.removed","team.deactivation_requested","team.deactivated","ai_provider_credential.saved","ai_provider_credential.deleted","sso_connection.saved","sso_connection.deleted","sso_login.succeeded"]}}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List the team audit log","tags":["audit-log"]}},"/v1/auth/register":{"post":{"operationId":"register","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIdentityDto"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPendingDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Public registration is fail-closed unless the deployment has both a mailbox-verifying delivery provider and public registration explicitly enabled. Closed deployments create accounts through team invitations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Create a team and its owner account","tags":["auth"]}},"/v1/auth/verify-email":{"post":{"operationId":"verifyEmail","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailResultDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Consume an email verification token","tags":["auth"]}},"/v1/auth/forgot-password":{"post":{"description":"Always returns the same response and takes the same time whether or not an account exists for the address. If one does, a single-use, time-limited reset link is e-mailed to it.","operationId":"forgotPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordResultDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Password reset is fail-closed when no e-mail delivery provider is configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Request a password reset e-mail","tags":["auth"]}},"/v1/auth/reset-password":{"post":{"description":"Single use: the token is invalidated on success, when a newer one is issued, and when it expires. Every existing session for the account is revoked.","operationId":"resetPassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordResultDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Consume a password reset token and set a new password","tags":["auth"]}},"/v1/auth/login":{"post":{"operationId":"login","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIdentityDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Start a panel session","tags":["auth"]}},"/v1/auth/verify":{"get":{"description":"Checks whether the bearer credential or panel session on this request is valid without reading product data.","operationId":"verifyCredential","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialVerificationDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Verify credential","tags":["auth"]}},"/v1/auth/logout":{"post":{"operationId":"logout","parameters":[],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"End the current session","tags":["auth"]}},"/v1/auth/me":{"get":{"operationId":"getCurrentSession","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIdentityDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Retrieve the signed-in user, team and role","tags":["auth"]}},"/v1/auth/password":{"post":{"operationId":"changePassword","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIdentityDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Change the password and revoke every other session","tags":["auth"]}},"/v1/api-keys":{"post":{"operationId":"createApiKey","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedApiKeyDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Create an API key","tags":["apikeys"]},"get":{"operationId":"listApiKeys","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List active API keys","tags":["apikeys"]}},"/v1/api-keys/{keyId}":{"delete":{"description":"Permanently revokes and deletes an API key.","operationId":"deleteApiKey","parameters":[{"name":"keyId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteApiKeyResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Delete key","tags":["apikeys"],"x-zumpo-sdk-operation-aliases":["revokeApiKey"]}},"/v1/team/invitations":{"post":{"operationId":"createInvitation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvitationDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreateResultDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Invite someone to the team","tags":["team"]},"get":{"operationId":"listInvitations","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["created_at","-created_at"],"default":"created_at"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List open invitations","tags":["team"]}},"/v1/team/invitations/{id}":{"delete":{"operationId":"revokeInvitation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Revoke an open invitation","tags":["team"]}},"/v1/team/invitations/accept":{"post":{"operationId":"acceptInvitation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvitationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIdentityDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Accept a team invitation","tags":["team"]}},"/v1/team/members":{"get":{"operationId":"listTeamMembers","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["user_id","-user_id"],"default":"user_id"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List team members and their roles","tags":["team"]}},"/v1/team/members/{userId}":{"patch":{"operationId":"updateTeamMemberRole","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRoleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Change a member's role","tags":["team"]},"delete":{"operationId":"removeTeamMember","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Remove a member from the team","tags":["team"]}},"/v1/users":{"get":{"description":"Returns all users in the workspace including roles and profile access. Also returns the currentUserId of the caller.","operationId":"listUsers","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List users","tags":["users"]}},"/v1/users/{userId}":{"get":{"description":"Returns a single user's details by ID, including name, email, and role.","operationId":"getUser","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUserResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Get user","tags":["users"]}},"/v1/invite/tokens":{"post":{"description":"Generate a secure, single-use invite link scoped to the current tenant and execution mode. Invites expire after 7 days. Restricted API keys are rejected because invite management is admin-plane.","operationId":"createInviteToken","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteTokenDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteTokenCreatedDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Create invite token","tags":["invites"],"x-resource-group":"admin-plane"}},"/v1/profiles":{"get":{"operationId":"listProfiles","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["name","-name"]}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"includeOverLimit","required":false,"in":"query","schema":{"type":"boolean","default":false}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List profiles","tags":["profiles"]},"post":{"operationId":"createProfile","parameters":[{"name":"Idempotency-Key","in":"header","description":"Credential-scoped key retained for 24 hours. Reusing it with the same body replays the original response.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a profile","tags":["profiles"]}},"/v1/profiles/{profileId}":{"get":{"operationId":"getProfile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileGetResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a profile","tags":["profiles"]},"put":{"operationId":"updateProfile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a profile","tags":["profiles"]},"patch":{"deprecated":true,"operationId":"patchProfile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a profile (legacy PATCH)","tags":["profiles"]},"delete":{"operationId":"deleteProfile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a profile","tags":["profiles"]}},"/v1/accounts":{"get":{"description":"Cursor pagination remains available to existing clients. Supplying page and limit together selects 1-based offset pagination and adds total/page metadata.","operationId":"listAccounts","parameters":[{"name":"status","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["active","reconnect_required","disconnected"]}}},{"name":"platform","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads","googlebusiness"]}}},{"name":"profileId","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["id","-id"]}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000},"description":"1-based offset page. Requires an explicit limit and cannot be combined with cursor."},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List connected accounts","tags":["accounts"]}},"/v1/accounts/follower-stats":{"get":{"description":"Returns only real daily follower observations persisted by account maintenance. Accounts without observations in the requested period are omitted.","operationId":"getFollowerStats","parameters":[{"name":"granularity","required":false,"in":"query","schema":{"type":"string","enum":["daily","weekly","monthly"],"default":"daily"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"accountIds","required":false,"in":"query","description":"Comma-separated account IDs.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerStatsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get stored follower statistics","tags":["accounts"]}},"/v1/accounts/health":{"get":{"description":"The summary covers the WHOLE scope, never the returned page; the scope itself is echoed in `scope` so a filtered total is never mistaken for the fleet. Only limit, cursor, profileId and platform are accepted — any other query parameter (status included) is rejected with 400 unknown_parameter instead of being ignored. Filter by connection status with GET /v1/accounts.","operationId":"getAllAccountsHealth","parameters":[{"name":"platform","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]}}},{"name":"profileId","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountHealthOverviewDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Summarise stored health for every account in scope","tags":["accounts"],"x-zumpo-sdk-operation-aliases":["getAccountsHealth"]}},"/v1/accounts/{id}/actions/disconnect":{"post":{"operationId":"disconnectAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDisconnectDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Disconnect an account","tags":["accounts"]}},"/v1/accounts/{accountId}":{"put":{"description":"Updates durable displayName/username fields and, for X accounts only, opt-in background analytics or inbox reads.","operationId":"updateAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update an account identity or X capabilities","tags":["accounts"]},"patch":{"operationId":"moveAccountToProfile","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveAccountToProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveAccountToProfileResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Move an account to another profile","tags":["accounts"]},"delete":{"operationId":"deleteAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Disconnect an account","tags":["accounts"]}},"/v1/accounts/{accountId}/pinterest-boards":{"get":{"description":"Returns the boards available for a connected Pinterest account. Use this to get a board ID when creating a Pinterest post.","operationId":"getPinterestBoards","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Pinterest boards","tags":["accounts"]},"put":{"description":"Verifies the selected board against the connected Pinterest user and stores its canonical provider name as an explicit durable preference.","operationId":"updatePinterestBoards","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPinterestDefaultBoardDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestDefaultBoardResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set the default Pinterest board","tags":["accounts"]},"post":{"description":"Creates one board for the Pinterest user connected through accountId. The returned board.id can be used immediately as a Pinterest post options.boardId without reconnecting or changing the account default. Pinterest does not expose an idempotency key for this write; clients must not automatically replay an ambiguous response.","operationId":"createPinterestBoard","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestCreateBoardDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardCreateResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Pinterest board","tags":["accounts"]}},"/v1/accounts/{accountId}/pinterest-board-sections":{"get":{"description":"The account identifies its selected board; callers cannot override it with a boardId query parameter. Provider bookmarks are wrapped in an opaque, account- and credential-revision-bound cursor.","operationId":"listPinterestBoardSections","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":8192},"description":"Opaque cursor returned by this exact account endpoint."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardSectionListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List sections of the selected Pinterest board","tags":["accounts"]}},"/v1/accounts/{id}":{"get":{"operationId":"getAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve an account","tags":["accounts"]}},"/v1/accounts/{accountId}/health":{"get":{"description":"Reads the health row already stored for this account. zumpo does NOT contact the platform while serving this request, so the answer is exactly as old as lastCheckedAt says; nextCheckAt is when the background account-maintenance job is due to refresh it. An account that has no stored health row answers 404 account_not_found rather than an empty health object, so a 404 here does not prove the account is gone. The response carries connection state only - there is no issues or recommendations list on this endpoint; GET /v1/accounts/health is the one that carries those.","operationId":"getAccountHealth","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountHealthDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve the stored health record for an account","tags":["accounts"]}},"/v1/accounts/{accountId}/bluesky-settings":{"get":{"operationId":"getBlueskySettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskySettingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Bluesky account settings","tags":["accounts"]},"patch":{"operationId":"updateBlueskySettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlueskySettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskySettingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Bluesky account settings","tags":["accounts"]}},"/v1/accounts/{accountId}/discord-channels":{"get":{"description":"Lists writable text, announcement and forum channels in the connected Discord guild.","operationId":"getDiscordChannels","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordChannelsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List writable Discord guild channels","tags":["accounts","discord"]}},"/v1/discord/guilds/{guildId}/roles":{"get":{"description":"Lists the roles visible to the connected Discord bot in its bound guild.","operationId":"listDiscordGuildRoles","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRolesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Discord guild roles","tags":["discord"]},"post":{"operationId":"createDiscordGuildRole","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRoleCreateRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRoleResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Discord guild role","tags":["discord"]}},"/v1/discord/guilds/{guildId}/roles/{roleId}":{"patch":{"operationId":"editDiscordGuildRole","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"roleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRoleEditRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRoleResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Edit a Discord guild role","tags":["discord"]},"delete":{"operationId":"deleteDiscordGuildRole","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"roleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildRoleDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Discord guild role","tags":["discord"]}},"/v1/discord/dms":{"post":{"operationId":"sendDiscordDirectMessage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordDirectMessageRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordDirectMessageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send a Discord Direct Message","tags":["discord"]}},"/v1/discord/channels/{channelId}/messages/{messageId}":{"delete":{"operationId":"deleteDiscordMessage","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordMessageDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Discord channel message","tags":["discord"]}},"/v1/discord/channels/{channelId}/messages/{messageId}/crosspost":{"post":{"operationId":"crosspostDiscordMessage","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordMessageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Crosspost Discord message","tags":["discord"]}},"/v1/discord/channels/{channelId}/threads":{"post":{"operationId":"createDiscordThread","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordThreadCreateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordThreadResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Discord public thread","tags":["discord"]}},"/v1/discord/channels/{channelId}/pins":{"get":{"operationId":"listDiscordPinnedMessages","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordPinnedMessagesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List pinned messages","tags":["discord"]}},"/v1/accounts/{accountId}/discord-settings":{"get":{"description":"Returns the connected guild/channel and the account-level webhook identity defaults.","operationId":"getDiscordSettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordSettingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Discord account settings","tags":["discord"]},"patch":{"description":"Updates webhook identity defaults and/or switches to a writable channel in the same guild.","operationId":"updateDiscordSettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDiscordSettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDiscordSettingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Discord account settings","tags":["discord"]}},"/v1/discord/channels/{channelId}/pins/{messageId}":{"put":{"description":"Pins the uniquely stored published Zumpo Discord target bound to this account, channel and message. Replaying the exact PUT is safe.","operationId":"pinDiscordMessage","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordPinResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pin a published Discord message","tags":["discord"]},"delete":{"description":"Unpins the uniquely stored published Zumpo Discord target bound to this account, channel and message. Replaying the exact DELETE is safe.","operationId":"unpinDiscordMessage","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordUnpinResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unpin a published Discord message","tags":["discord"]}},"/v1/analytics/facebook/post-earnings":{"get":{"description":"Returns unscaled lifetime monetization earnings for one Page-owned Facebook post.","operationId":"getFacebookPostEarnings","parameters":[{"name":"metrics","required":false,"in":"query","schema":{"example":"content_monetization_earnings,monetization_approximate_earnings","type":"string"}},{"name":"postId","required":true,"in":"query","schema":{"pattern":"^[1-9]\\d{0,19}(?:_[1-9]\\d{0,19})?$","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPostEarningsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Facebook post monetization earnings","tags":["analytics"]}},"/v1/accounts/{accountId}/messenger-menu":{"get":{"description":"Get the Messenger persistent menu for a Facebook Page account.","operationId":"getMessengerMenu","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookMessengerMenuResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Messenger menu","tags":["account-settings"]},"put":{"description":"Replace the Messenger persistent menu of a Facebook Page. Max 3 top-level items, max 5 nested items.","operationId":"setMessengerMenu","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFacebookMessengerMenuDto"}}}},"responses":{"200":{"description":"Messenger menu set successfully."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set Messenger menu","tags":["account-settings"]},"delete":{"description":"Removes the persistent menu from a Facebook Page's Messenger experience.","operationId":"deleteMessengerMenu","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"Messenger menu deleted."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete Messenger menu","tags":["account-settings"]}},"/v1/accounts/{accountId}/facebook-page":{"get":{"description":"Returns every Facebook Page still available to the connected account and the active Page.","operationId":"getFacebookPages","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"refresh","required":false,"in":"query","schema":{"type":"boolean"},"description":"Bypasses the short Page cache. Explicit refresh is limited to one per 60 seconds."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPagesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Facebook pages","tags":["connect"]},"put":{"description":"Switch which Facebook Page is active for a connected account.","operationId":"updateFacebookPage","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFacebookPageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFacebookPageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Facebook page","tags":["connect"]}},"/v1/accounts/{accountId}/facebook-post-reactions":{"get":{"description":"Returns the provider-verified reaction breakdown for one stored published Facebook Page post.","operationId":"getFacebookPostReactions","parameters":[{"name":"accountId","required":true,"in":"path","description":"The internal id of the connected Facebook Page account.","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"postId","required":true,"in":"query","description":"The numeric Facebook post id or canonical Page post id.","schema":{"type":"string","pattern":"^(?:[1-9][0-9]{0,19}|[1-9][0-9]{0,19}_[1-9][0-9]{0,19})$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPostReactionsDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Facebook post reactions","tags":["analytics","accounts"]}},"/v1/accounts/{accountId}/gmb-locations":{"get":{"description":"Returns the Google Business Profile locations the connected account can access, plus the currently selected location. The list is bounded: the provider enumeration is capped at 2000 locations and hasMore reports whether more were available than limit returned. The search and filter query parameters are NOT implemented and are rejected with 400 rather than silently ignored — the provider enumeration carries no server-side filter expression. Each entry carries id, name and accountId only; address, category, websiteUrl, storeCode and the human-readable accountName are not returned because the provider enumeration reads locations with a name,title mask.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGmbLocations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"description":"Max locations to return (default 100, max 500)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessLocationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List GBP locations","tags":["connect"]},"put":{"description":"Switch which GBP location is active for a connected account. googleAccountId (legacy alias accountId) is optional and acts as a constraint: when supplied the selected location must belong to that Google Business account, otherwise the request is rejected with 400. It does not enable a direct-resolve fast path — the provider enumeration always walks every managed account.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGmbLocation","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGmbLocationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGmbLocationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update GBP location","tags":["connect"]}},"/v1/accounts/{accountId}/gmb-locations/assign":{"post":{"description":"Connect a Google Business location onto a DIFFERENT profile by reusing the OAuth grant from an already-connected GBP account — no browser, no re-authorization. Built for agencies whose single Google account has manager access to many client locations and who run one profile per client: connect one location the normal way, then assign the rest onto each client profile with this operation. The path accountId is the SOURCE connected GBP account (the token holder); the body profileId is the TARGET profile. The source account is left untouched. Returns 409 if the target profile already has a Google Business connection — including a disconnected one — in which case switch its location with PUT gmb-locations or remove the existing account first. googleAccountId is optional and acts as a CONSTRAINT: when supplied the selected location must belong to that Google Business account, otherwise the request is rejected with 400. It does NOT enable a direct-resolve fast path — the provider enumeration always walks every managed account, exactly as PUT gmb-locations documents. NO PLAN LIMIT IS ENFORCED HERE and none is enforced on the browser connect flow either, so this operation cannot be used to exceed a ceiling the normal flow would have applied; the shared-application admission gate was deliberately not shipped.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"assignGoogleBusinessLocation","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"A source connected GBP account whose OAuth grant is reused."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignGmbLocationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignGmbLocationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Assign GBP location to another profile","tags":["connect"]}},"/v1/accounts/{accountId}/gmb-media":{"get":{"description":"Lists media items for a Google Business Profile location.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessMedia","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"pageToken","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":32768}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List media","tags":["gmb-media"]},"post":{"description":"Creates a location media item from a publicly accessible URL.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"createGoogleBusinessMedia","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaCreateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaCreateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload photo","tags":["gmb-media"]},"delete":{"description":"Deletes a media item from a Google Business Profile location.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"deleteGoogleBusinessMedia","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"mediaId","required":true,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete photo","tags":["gmb-media"]}},"/v1/accounts/{accountId}/gmb-food-menus":{"get":{"description":"Returns the complete FoodMenus resource for the selected or explicitly targeted accessible location.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessFoodMenus","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"description":"Optional accessible Google location id; defaults to the selected location."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessFoodMenusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business food menus","tags":["accounts"]},"put":{"description":"Replaces the atomic menus collection with an exact desired state. An empty menus array clears the resource.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGoogleBusinessFoodMenus","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"description":"Optional accessible Google location id; defaults to the selected location."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessFoodMenusUpdateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessFoodMenusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Google Business food menus","tags":["accounts"]}},"/v1/accounts/{accountId}/gmb-location-details":{"get":{"description":"Returns the selected location with Zernio-compatible readMask filtering. A supplied locationId targets another location accessible to the same Google account.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessLocationDetails","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"readMask","required":false,"in":"query","schema":{"type":"string","description":"Comma-separated Google Location fields. title and the derived location summary are always returned."}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"description":"Optional accessible Google location id; defaults to the selected location."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessLocationDetailsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business location details","tags":["accounts"]},"put":{"description":"Writes an exact desired state for the seven safe Zernio location fields. Omitting a field named by updateMask clears it; fields outside the mask are rejected.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGoogleBusinessLocationDetails","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"description":"Optional accessible Google location id; defaults to the selected location."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessLocationUpdateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessLocationUpdateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Google Business location details","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-performance":{"get":{"description":"Reads exact int64 daily values for the selected location. The date range defaults to the latest 30 days and is limited to the latest 18 calendar months.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessAccountPerformanceLegacy","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-(0[1-9]|1[0-2])-([0-2]\\d|3[01])$"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-(0[1-9]|1[0-2])-([0-2]\\d|3[01])$"}},{"name":"metrics","required":false,"in":"query","schema":{"type":"string","description":"Comma-separated metric names; defaults to every supported metric."}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessPerformanceDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read Google Business daily performance metrics","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-search-keywords":{"get":{"description":"Pages exact and privacy-thresholded keyword impressions for the selected location. The month range defaults to three months ago through the current month.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessSearchKeywords","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"endMonth","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"startMonth","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessSearchKeywordPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Business monthly search keywords","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-posts":{"get":{"description":"Pages provider LocalPosts for the exact connected location. The opaque cursor is bound to the account identity, credential revision, mode, and page size.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessPosts","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessPostPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Business local posts","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-posts/{postId}":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessPost","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessPostDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Google Business local post","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-reviews":{"get":{"description":"Pages provider reviews for the exact connected location. The opaque cursor is also bound to orderBy and page size.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessReviews","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"orderBy","required":false,"in":"query","schema":{"type":"string","default":"updateTime desc","enum":["updateTime desc","rating","rating desc"]}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":50}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessReviewPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Business reviews","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-reviews/{reviewId}":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessReviewNative","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessReviewDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Google Business review","tags":["accounts"]}},"/v1/accounts/{accountId}/google-business-reviews/{reviewId}/reply":{"put":{"description":"Sets the exact desired owner reply. Replaying the same PUT body is safe.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"upsertGoogleBusinessReviewReplyLegacy","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessReviewReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessReviewReplyDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create or replace a Google Business review reply","tags":["accounts"]},"delete":{"description":"Deletes the current owner reply. Replaying this DELETE is safe.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"deleteGoogleBusinessReviewReplyLegacy","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessReviewReplyDeleteDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Google Business review reply","tags":["accounts"]}},"/v1/accounts/{accountId}/gmb-verifications":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessVerifications","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","minLength":1,"pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business verification state and history","tags":["gmb-verifications"]},"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"startGoogleBusinessVerification","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","minLength":1,"pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationStartInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start a Google Business verification","tags":["gmb-verifications"]}},"/v1/accounts/{accountId}/gmb-verifications/options":{"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"fetchGoogleBusinessVerificationOptions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","minLength":1,"pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationOptionsInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationOptionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Fetch eligible Google Business verification options","tags":["gmb-verifications"]}},"/v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete":{"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"completeGoogleBusinessVerification","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"verificationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","minLength":1,"pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationCompleteInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessVerificationMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete a Google Business verification","tags":["gmb-verifications"]}},"/v1/analytics/googlebusiness/performance":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessPerformance","parameters":[{"name":"endDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-(0[1-9]|1[0-2])-([0-2]\\d|3[01])$"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-(0[1-9]|1[0-2])-([0-2]\\d|3[01])$"}},{"name":"metrics","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPerformanceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business performance metrics","tags":["analytics"]}},"/v1/analytics/googlebusiness/search-keywords":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessSearchKeywords","parameters":[{"name":"endMonth","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"startMonth","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessSearchKeywordsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business search keywords","tags":["analytics"]}},"/v1/accounts/{accountId}/gmb-attributes":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessAttributes","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business attributes","tags":["gmb-attributes"]},"put":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGoogleBusinessAttributes","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributesUpdateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Google Business attributes","tags":["gmb-attributes"]}},"/v1/accounts/{accountId}/gmb-attribute-metadata":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGmbAttributeMetadata","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"pageToken","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":200}},{"name":"languageCode","required":false,"in":"query","schema":{"type":"string"}},{"name":"regionCode","required":false,"in":"query","schema":{"type":"string"}},{"name":"categoryName","required":false,"in":"query","schema":{"type":"string"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributeMetadataResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business attribute metadata","tags":["gmb-attributes"]}},"/v1/accounts/{accountId}/gmb-reviews":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessReviews","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"pageToken","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":50}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business reviews","tags":["gmb-reviews"]}},"/v1/accounts/{accountId}/gmb-reviews/{reviewId}":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessReview","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Google Business review","tags":["gmb-reviews"]}},"/v1/accounts/{accountId}/gmb-reviews/batch":{"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"batchGetGoogleBusinessReviews","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewBatchInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewBatchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Batch get Google Business reviews","tags":["gmb-reviews"]}},"/v1/accounts/{accountId}/gmb-reviews/{reviewId}/reply":{"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"replyToGoogleBusinessReview","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewReplyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Post or update a Google Business review reply","tags":["gmb-reviews"]},"delete":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"deleteGoogleBusinessReviewReply","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewReplyDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Google Business review reply","tags":["gmb-reviews"]}},"/v1/accounts/{accountId}/gmb-place-actions":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessPlaceActions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"pageToken","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Business place-action links","tags":["gmb-place-actions"]},"post":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"createGoogleBusinessPlaceAction","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionCreateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Google Business place-action link","tags":["gmb-place-actions"]},"patch":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGoogleBusinessPlaceAction","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionUpdateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a Google Business place-action link","tags":["gmb-place-actions"]},"delete":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"deleteGoogleBusinessPlaceAction","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"name","required":true,"in":"query","schema":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/placeActionLinks/[A-Za-z0-9_-]{1,256}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Google Business place-action link","tags":["gmb-place-actions"]}},"/v1/accounts/{accountId}/gmb-services":{"get":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"getGoogleBusinessServices","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessServicesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Google Business services","tags":["gmb-services"]},"put":{"description":"TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"updateGoogleBusinessServices","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"locationId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessServicesUpdateInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZernioGoogleBusinessServicesUpdateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Replace Google Business services","tags":["gmb-services"]}},"/v1/accounts/{accountId}/instagram/audio":{"get":{"description":"Searches Meta Instagram Audio for an account connected through Facebook Login. Classic Instagram Login receives instagram_audio_requires_facebook_login.","operationId":"searchInstagramAudio","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"q","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"audioType","required":true,"in":"query","schema":{"type":"string","enum":["music","original_sound"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramAudioSearchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search Instagram audio","tags":["instagram"]}},"/v1/accounts/{accountId}/instagram/audio/{audioId}":{"get":{"operationId":"getInstagramAudio","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"audioId","required":true,"in":"path","schema":{"type":"string","pattern":"^\\d{1,30}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramAudioResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Instagram audio metadata","tags":["instagram"]}},"/v1/analytics/instagram/account-insights":{"get":{"description":"Returns Meta account-level totals, a reach time series, or compatible total-value breakdowns for at most 90 days.","operationId":"getInstagramAccountInsights","parameters":[{"name":"breakdown","required":false,"in":"query","schema":{"enum":["media_product_type","follow_type","follower_type","contact_button_type"],"type":"string"}},{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"reach,views,accounts_engaged,total_interactions","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramAccountInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Instagram account insights","tags":["analytics"]}},"/v1/analytics/instagram/demographics":{"get":{"description":"Returns Meta audience demographics, expanding each requested dimension into one provider insights read.","operationId":"getInstagramDemographics","parameters":[{"name":"timeframe","required":false,"in":"query","schema":{"type":"string","default":"this_month","enum":["this_week","this_month"]}},{"name":"breakdown","required":false,"in":"query","description":"Comma-separated unique dimensions. Defaults to all dimensions.","schema":{"example":"age,city,country,gender","type":"string"}},{"name":"metric","required":false,"in":"query","schema":{"type":"string","default":"follower_demographics","enum":["follower_demographics","engaged_audience_demographics"]}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramDemographicsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Instagram audience demographics","tags":["analytics"]}},"/v1/accounts/{accountId}/instagram/publishing-limit":{"get":{"description":"Reads the provider-owned rolling publishing quota for one active Instagram account.","operationId":"getInstagramPublishingLimit","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramPublishingLimitDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get the current Instagram publishing limit","tags":["accounts"]}},"/v1/inbox/comments/{postId}/{commentId}":{"patch":{"description":"Edit the body of a comment the connected account posted. Supported on Reddit only. Reddit keeps the same comment id after an edit. Reddit exposes no API to edit a post title, and a link post has no editable body. To edit a published post's body, use POST /v1/posts/{postId}/edit.","operationId":"editInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^(?:t3_)?[a-z0-9]{1,32}$"},"description":"Reddit post id that the comment sits under, with or without its t3_ prefix."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","pattern":"^(?:t1_)?[a-z0-9]{1,32}$"},"description":"Reddit comment id to edit, with or without its t1_ prefix."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentEditRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentEditResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Edit comment","tags":["comments","reddit"]}},"/v1/inbox/comments/{postId}/{commentId}/like":{"post":{"description":"Likes one comment with the selected account. Supported for Bluesky and Reddit; every other platform is rejected with 400 rather than silently ignored. On Bluesky a comment is itself an app.bsky.feed.post record, so commentId is its AT URI and cid is required; the like is a separate record and its likeUri is returned because zumpo stores nothing and only that uri can undo the like. On Reddit the like is an upvote on the t1_ comment fullname, which is not a record and therefore has no likeUri.","operationId":"likeInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$"},"description":"Platform post id that owns the comment. Required by the published contract; neither Bluesky nor Reddit needs it to address the like."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$"},"description":"Bluesky: the canonical AT URI of the comment record (percent-encoded in the path). Reddit: the t1_ comment fullname or its bare id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentLikeRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentLikeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Like a comment","tags":["comments","bluesky","reddit"]},"delete":{"description":"Removes a like from one comment with the selected account. Supported for Bluesky and Reddit; every other platform is rejected with 400. On Bluesky the like is its own record, so likeUri is required and must be the uri returned by the like. On Reddit the vote is simply cleared, so likeUri does not apply and is rejected.","operationId":"unlikeInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$"},"description":"Platform post id that owns the comment. Required by the published contract; neither Bluesky nor Reddit needs it to address the like."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$"},"description":"Bluesky: the canonical AT URI of the comment record (percent-encoded in the path). Reddit: the t1_ comment fullname or its bare id."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"likeUri","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$"},"description":"Bluesky only, and required there: the AT URI of the like record to delete, exactly as returned by likeInboxComment."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentUnlikeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove a comment like","tags":["comments","bluesky","reddit"]}},"/v1/inbox/comments":{"get":{"description":"Returns published post targets whose latest durable analytics observation contains a comment count. Unknown counts are omitted rather than represented as zero.","operationId":"listInboxComments","parameters":[{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string","enum":["date","comments"],"default":"date"}},{"name":"since","required":false,"in":"query","schema":{"type":"string","format":"date-time"}},{"name":"minComments","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":9007199254740991}},{"name":"platform","required":false,"in":"query","schema":{"type":"string","enum":["facebook","instagram","twitter","bluesky","threads","youtube","linkedin","reddit","metaads"]}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List commented posts","tags":["comments"],"x-resource-group":"engagement"}},"/v1/inbox/conversations":{"post":{"description":"Opens a Slack direct message with a workspace member and sends the first message. Pass the member id as participantId; list candidates with GET /v1/accounts/{accountId}/slack-members. The member must belong to the connected workspace. Only Slack is supported: an account on any other platform returns 400. The direct-message open converges, but Slack offers no idempotency key for the send, so an ambiguous result must not be retried blindly.","operationId":"createInboxConversation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationCreateInputDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationCreateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create conversation","tags":["inbox","slack"]},"get":{"description":"Reads conversation threads live from every eligible connected account in one request. Omit accountId to fan out across all eligible accounts; supply it to read a single account. An account is eligible only when its platform adapter implements conversation listing, so a platform without that capability is skipped rather than reported as a failure. A per-account failure does not fail the request: it is counted in meta.accountsFailed and named in meta.failedAccounts, and the remaining accounts are still returned.","operationId":"listInboxConversations","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Opaque cursor returned by this endpoint. It encodes one resume position per account and is only valid for the query that produced it."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"description":"Order by last message time. Conversations with no known last message always sort last, in both directions."},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","archived"]},"description":"Conversation status filter. Only active is supported today; archived returns 400 because no connected platform exposes archived conversations here."},{"name":"platform","required":false,"in":"query","schema":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"description":"Restrict the fan-out to accounts on one platform."},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Restrict the fan-out to accounts on one profile."},{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Restrict the fan-out to one account. Omit to read every eligible account."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List conversations","tags":["inbox","messages"]}},"/v1/inbox/conversations/search":{"get":{"description":"Searches durable Facebook, Instagram, Telegram, and WhatsApp inbox projections. Message text uses case/accent-insensitive exact tokens; identity uses a case/accent-insensitive name or WhatsApp phone substring. Direction disables identity matching. Slack and SMS are rejected because this service has no durable searchable message projection for them.","operationId":"searchInboxConversations","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":2048}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"platform","required":false,"in":"query","description":"Target-compatible filter values. SMS and Slack return a typed 501 until a durable local message projection exists.","schema":{"type":"string","enum":["facebook","instagram","telegram","whatsapp","sms","slack"]}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}},{"name":"direction","required":false,"in":"query","schema":{"type":"string","enum":["incoming","outgoing"]}},{"name":"query","required":true,"in":"query","schema":{"type":"string","minLength":2,"maxLength":200}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationSearchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search conversations","tags":["messages"],"x-resource-group":"messages"}},"/v1/inbox/conversations/{conversationId}":{"get":{"description":"Reads Slack through its connected adapter and Facebook/Instagram/Telegram/WhatsApp from the signed, durable inbox projection.","operationId":"getInboxConversation","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationDetailsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get conversation","tags":["inbox","messages"]},"put":{"description":"Slack applies the connected provider operation. Facebook/Instagram/Telegram/WhatsApp persist active/archived state only in the durable local inbox projection.","operationId":"updateInboxConversation","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxConversationRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxConversationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update conversation status","tags":["inbox","messages"]}},"/v1/inbox/conversations/{conversationId}/messages":{"get":{"description":"Reads without changing read state. Slack provider cursors and Facebook/Instagram/Telegram/WhatsApp durable cursors are returned only inside an authenticated, context-bound opaque envelope. sortOrderApplied reports the exact delivered order.","operationId":"getInboxConversationMessages","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationMessagesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List messages","tags":["inbox","messages"]},"post":{"description":"Sends exactly one text message to an existing Slack, Telegram, WhatsApp, Facebook, or Instagram conversation. Non-Slack providers require a canonically retained active conversation; this endpoint never invents a participant. Facebook and Instagram also require a retained incoming message from this participant within the last 24 hours. Authenticated history uses the original provider send time; importing it does not reset the reply window. Credential-scoped Idempotency-Key values replay completed responses for 24 hours. These providers expose no provider-side idempotency key, so an ambiguous outcome keeps its claim and must not be retried with a new key.","operationId":"sendInboxMessage","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^(?:D[A-Z0-9]{8,31}|-?[1-9][0-9]{0,19}|[1-9][0-9]{0,31})$"},"description":"Existing provider conversation id retained for this account."},{"name":"Idempotency-Key","in":"header","description":"Credential-scoped key retained for 24 hours. Reusing it with the same request replays the original response.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackInboxMessageInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackInboxMessageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send a text-only message to an existing inbox conversation","tags":["inbox","slack","telegram","whatsapp","facebook","instagram"]}},"/v1/inbox/conversations/{conversationId}/messages/{messageId}/attachments/{index}":{"get":{"description":"Returns only an attachment URL actually retained or resolved by the connected adapter. A missing retained attachment is 404 and is never synthesized.","operationId":"getMessageAttachment","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","maxLength":2054}},{"name":"index","required":true,"in":"path","schema":{"type":"integer","minimum":0}},{"name":"format","required":false,"in":"query","schema":{"type":"string","enum":["redirect","json"],"default":"redirect"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMessageAttachmentResponseDto"}}}},"302":{"description":"Redirect to the resolved media URL."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resolve message attachment","tags":["inbox","messages"]}},"/v1/inbox/conversations/{conversationId}/read":{"post":{"description":"Slack applies the connected provider operation. Facebook/Instagram/Telegram/WhatsApp update only the durable local read watermark; the response does not claim an upstream provider read receipt.","operationId":"markConversationRead","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkInboxConversationReadRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkInboxConversationReadResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Mark a conversation as read","tags":["inbox","messages"]}},"/v1/inbox/posts/{postId}/like":{"post":{"description":"Likes a post with the connected account. Supported for YouTube (videos.rate) and Bluesky (an app.bsky.feed.like record). Reddit returns 400 and points at POST /v1/accounts/{accountId}/reddit-vote, which covers upvote, downvote and clear on both posts and comments; every other platform returns 400 as well. Bluesky requires cid and returns likeUri, which unlikePost then requires: nothing about the like is persisted here.","operationId":"likePost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,512}$"},"description":"Zumpo post ID or the platform native post ID. A Bluesky native id is the canonical at:// feed-post URI and must be percent-encoded here."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxPostLikeRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxPostLikeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Like a post","tags":["inbox","bluesky","youtube"]},"delete":{"description":"Clears the like on a post. YouTube writes rating=none, which is set-to-value and therefore safe to replay. Bluesky deletes the like record named by likeUri, so likeUri is required there and must be the value likePost returned; nothing is persisted here. Reddit returns 400 and points at POST /v1/accounts/{accountId}/reddit-vote; every other platform returns 400.","operationId":"unlikePost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,512}$"},"description":"Zumpo post ID or the platform native post ID. A Bluesky native id is the canonical at:// feed-post URI and must be percent-encoded here."},{"name":"likeUri","required":false,"in":"query","schema":{"type":"string","pattern":"^at://did:[a-z]{1,32}:[A-Za-z0-9._:%-]{1,256}/app\\.bsky\\.feed\\.like/[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$"},"description":"Bluesky only, and required there: the likeUri returned by likePost. Rejected with 400 for a youtube account."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Zumpo account id whose like is being cleared."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxPostUnlikeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unlike a post","tags":["inbox","bluesky","youtube"]}},"/v1/inbox/reviews":{"get":{"description":"Reads reviews live from every eligible connected account in one request. Omit accountId to fan out across all eligible accounts; supply it to read a single account. Only Google Business has a shipped review pipeline today, so an account on any other platform is skipped rather than reported as a failure. A per-account failure does not fail the request: it is counted in meta.accountsFailed and named in meta.failedAccounts, and the remaining accounts are still returned.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so no Google Business account can be connected in live mode and none is eligible for this fan-out there. In live mode this operation reads zero accounts and returns 200 with an empty data array and meta.accountsQueried 0 -- it does not fail. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listInboxReviews","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Opaque cursor returned by this endpoint. It encodes one resume position per account and is only valid for the query that produced it."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":25}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"description":"Sort direction. sortBy=date supports desc only and returns 400 for asc; sortBy=rating supports both."},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string","enum":["date","rating"],"default":"date"},"description":"date orders by the time Google last updated the review, which is the only date order Google exposes; the published created field is the creation time and the two differ only for an edited review. date is available in descending order only."},{"name":"hasReply","required":false,"in":"query","schema":{"type":"boolean"},"description":"Keep only reviews that already have a reply, or only those that do not."},{"name":"maxRating","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":5},"description":"Drop reviews rated above this many stars."},{"name":"minRating","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":5},"description":"Drop reviews rated below this many stars."},{"name":"platform","required":false,"in":"query","schema":{"type":"string","enum":["facebook","googlebusiness"]},"description":"Restrict the fan-out to accounts on one platform. facebook is accepted but returns no reviews: it has no review pipeline here."},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Restrict the fan-out to accounts on one profile."},{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Restrict the fan-out to one account. Omit to read every eligible account."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReviewsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List reviews","tags":["reviews"]}},"/v1/inbox/reviews/{reviewId}/reply":{"post":{"description":"Provider-backed Google Business subset. reviewId must be the URL-encoded full review resource name returned by Google Business.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"replyToInboxReview","parameters":[{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","maxLength":1024}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReviewReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReviewReplyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Reply to a Google Business review","tags":["reviews"]},"delete":{"description":"Provider-backed Google Business subset. reviewId must be the URL-encoded full review resource name returned by Google Business.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"deleteInboxReviewReply","parameters":[{"name":"reviewId","required":true,"in":"path","schema":{"type":"string","maxLength":1024}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReviewReplyDeleteInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReviewReplyDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Google Business review reply","tags":["reviews"]}},"/v1/inbox/mentions/reply":{"post":{"description":"Reply to a mention of the connected account. Supported on Instagram only.\n\nTwo shapes, selected by whether `commentId` is present. Comment mention: pass both `mediaId` and `commentId`, and the reply is posted under that comment. Caption mention: pass `mediaId` only, and the reply is posted as a comment on the media.\n\nStory mentions are not supported by Instagram. Source `mediaId` and `commentId` from Instagram's comments webhook.","operationId":"replyToMention","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMentionReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMentionReplyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Reply to a mention","tags":["mentions"]}},"/v1/inbox/comments/{postId}/{commentId}/private-reply":{"post":{"description":"Send a private message to the author of a comment. Supported on Instagram and Facebook only.\n\nMeta allows one reply per comment within a 7-day window. Both are provider-side state and are not pre-checked here; a violation is returned as the provider classified it.\n\nOptionally attach interactive elements: `quickReplies` (chips above the keyboard) or `buttons` (inline buttons in the same bubble). They are mutually exclusive. Buttons are recommended for cold reach since chips do not render in the Instagram Message Requests folder. `phone` buttons are Facebook only.","operationId":"sendPrivateReplyToComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","maxLength":64}},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxPrivateReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxPrivateReplyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send private reply","tags":["comments"]}},"/v1/inbox/mentions":{"get":{"description":"Returns mentions of your connected organization accounts, delivered via platform webhooks. Currently supports LinkedIn organization mentions.\n\nMentions are served from local storage, not from a provider fan-out, so this endpoint does not consult the platform at request time.","operationId":"listInboxMentions","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMentionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List mentions","tags":["mentions"]}},"/v1/accounts/{accountId}/instagram/stories":{"get":{"description":"Returns the connected Instagram professional account stories that remain active in Meta’s 24-hour window. Live videos and reshared stories are excluded by Meta.","operationId":"listInstagramStories","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramActiveStoriesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List active Instagram stories","tags":["instagram"]}},"/v1/accounts/{accountId}/instagram/stories/{storyId}/insights":{"get":{"description":"Returns live Meta metrics for an active story, a persisted webhook final state when available, or explicit unavailable zeroes.","operationId":"getInstagramStoryInsights","parameters":[{"name":"accountId","required":true,"in":"path","description":"The internal id of the connected Instagram account.","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"storyId","required":true,"in":"path","description":"The numeric Instagram media id of the story.","schema":{"type":"string","pattern":"^[1-9]\\d{0,31}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramStoryInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Instagram story insights","tags":["instagram"]}},"/v1/analytics/linkedin/org-aggregate-analytics":{"get":{"description":"Returns organization share, follower-gain, and page-view analytics for at most 89 days.","operationId":"getLinkedInOrgAggregateAnalytics","parameters":[{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"impressions,clicks,engagement_rate,organic_followers_gained,followers_gained,followers_lost","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationAggregateAnalyticsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get LinkedIn org analytics","tags":["analytics"]}},"/v1/accounts/{accountId}/linkedin-aggregate-analytics":{"get":{"description":"Returns TOTAL or DAILY analytics across posts published through Zernio for a personal LinkedIn account.","operationId":"getLinkedInAggregateAnalytics","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"IMPRESSION,REACTION,COMMENT,POST_SAVE,POST_SEND","type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"aggregation","required":false,"in":"query","schema":{"type":"string","default":"TOTAL","enum":["TOTAL","DAILY"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LinkedInAggregateAnalyticsTotalResponseDto"},{"$ref":"#/components/schemas/LinkedInAggregateAnalyticsDailyResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get LinkedIn aggregate stats","tags":["analytics"]}},"/v1/accounts/{accountId}/linkedin-post-analytics":{"get":{"description":"Returns available analytics for one LinkedIn share or UGC Post without fabricating unsupported counters.","operationId":"getLinkedInPostAnalytics","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"urn","required":true,"in":"query","schema":{"pattern":"^urn:li:(share|ugcPost):[1-9][0-9]{0,19}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInPostAnalyticsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get LinkedIn post stats","tags":["analytics"]}},"/v1/accounts/{accountId}/linkedin-post-reactions":{"get":{"description":"Returns one offset-paginated page of organization-post reactions without inventing unavailable reactor profile fields.","operationId":"getLinkedInPostReactions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"urn","required":true,"in":"query","schema":{"pattern":"^urn:li:(share|ugcPost|activity):[0-9]+$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInPostReactionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get LinkedIn post reactions","tags":["analytics"]}},"/v1/accounts/{accountId}/linkedin-mentions":{"get":{"description":"Resolves a LinkedIn person or organization vanity URL to a safe ready-to-use mention format.","operationId":"getLinkedInMentions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"displayName","required":false,"in":"query","schema":{"minLength":1,"maxLength":256,"type":"string"}},{"name":"url","required":true,"in":"query","schema":{"maxLength":2048,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInMentionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resolve LinkedIn mention","tags":["analytics","linkedin-mentions"]}},"/v1/ads/targeting/bid-pricing":{"post":{"operationId":"getLinkedInBidPricing","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInBidPricingRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInBidPricingResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Suggested LinkedIn bid and budget bounds","tags":["ad-targeting"]}},"/v1/ads/targeting/supply-forecast":{"post":{"operationId":"getLinkedInSupplyForecast","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInSupplyForecastRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInSupplyForecastResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Forecast LinkedIn ad supply","tags":["ad-targeting"]}},"/v1/accounts/{accountId}/linkedin-organizations":{"get":{"description":"Returns LinkedIn organizations the connected account can administer and publish for.","operationId":"getLinkedInOrganizations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List LinkedIn orgs","tags":["connect"]}},"/v1/accounts/{accountId}/linkedin-organization":{"put":{"description":"Switch an existing LinkedIn account between a person and a verified organization.","operationId":"updateLinkedInOrganization","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationUpdateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationUpdateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Switch LinkedIn account type","tags":["connect"]}},"/v1/accounts/{accountId}/reddit-vote":{"post":{"description":"Proxies one explicit human vote action. Automated or agent-decided voting is prohibited by Reddit.","operationId":"voteRedditThing","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditVoteInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditEngagementSuccessDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Vote on a Reddit post or comment","tags":["connect"]}},"/v1/accounts/{accountId}/reddit-flairs":{"post":{"description":"Applies a selectable link-flair template to a post owned by the connected Reddit account.","operationId":"setRedditPostFlair","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditPostFlairInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditEngagementSuccessDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set Reddit post flair","tags":["connect"]},"get":{"description":"Returns the caller-selectable link-flair templates for one subreddit using the connected Reddit account.","operationId":"getRedditFlairs","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"subreddit","required":true,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditFlairListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List selectable Reddit link flairs","tags":["accounts"]}},"/v1/reddit/feed":{"get":{"operationId":"getRedditFeed","parameters":[{"name":"t","required":false,"in":"query","schema":{"type":"string","enum":["hour","day","week","month","year","all"]}},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^t3_[a-z0-9]{1,32}$","maxLength":35}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["hot","new","top","rising"],"default":"hot"}},{"name":"subreddit","required":false,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditReadPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read a connected Reddit account feed","tags":["reddit"]}},"/v1/reddit/search":{"get":{"operationId":"searchReddit","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^t3_[a-z0-9]{1,32}$","maxLength":35}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["relevance","hot","top","new","comments"],"default":"new"}},{"name":"restrict_sr","required":false,"in":"query","schema":{"type":"string","enum":["0","1"]}},{"name":"subreddit","required":false,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64}},{"name":"q","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditReadPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search Reddit with a connected account","tags":["reddit"]}},"/v1/accounts/{accountId}/reddit-subreddits/{subreddit}/rules":{"get":{"description":"Returns the provider-ordered subreddit posting rules and Reddit site-wide rules for one connected Reddit account.","operationId":"getSubredditRules","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"subreddit","required":true,"in":"path","schema":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$"},"description":"Subreddit name without an r/ prefix."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditSubredditRulesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get subreddit rules","tags":["connect"]}},"/v1/accounts/{accountId}/reddit-subreddits":{"get":{"description":"With query, preserves bounded autocomplete suggestions. Without query, pages the connected account's official contributor listing and includes its explicit durable default.","operationId":"getRedditSubreddits","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"query","required":false,"in":"query","schema":{"type":"string","pattern":"^[^\\x00-\\x1F\\x7F-\\x9F]{1,25}$","minLength":1,"maxLength":25}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":2048},"description":"Opaque no-query contributor discovery cursor."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"No-query contributor discovery only."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditSubredditListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Discover Reddit subreddits","tags":["accounts"],"x-zumpo-sdk-operation-aliases":["searchRedditSubreddits"]},"put":{"description":"Stores an explicit account- and provider-identity-bound default. Retries with the same value are idempotent.","operationId":"updateRedditSubreddits","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRedditDefaultSubredditDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedditDefaultSubredditResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set the Reddit default subreddit","tags":["accounts"],"x-zumpo-sdk-operation-aliases":["setRedditDefaultSubreddit"]}},"/v1/tools/validate/subreddit":{"get":{"description":"Looks the subreddit up through the connected Reddit account named by accountId. Private, banned and nonexistent subreddits return exists=false.","operationId":"validateSubreddit","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Connected Reddit social-account id used for the OAuth lookup."},{"name":"name","required":true,"in":"query","schema":{"type":"string","pattern":"^(?:[rR]/)?[A-Za-z0-9_]{1,64}$"},"description":"Subreddit name with or without an r/ prefix."}],"responses":{"200":{"description":"Subreddit lookup result.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SubredditExistsResponseDto"},{"$ref":"#/components/schemas/SubredditMissingResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check subreddit existence","tags":["validate"]}},"/v1/accounts/{accountId}/slack-members":{"get":{"description":"Lists human members of the connected Slack workspace that can receive a DM. Omit query for an unfiltered list. Empty local matches can still carry a continuation cursor while later Slack pages remain.","operationId":"listSlackMembers","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Opaque cursor returned by this endpoint; never a raw Slack cursor."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":2000,"default":50}},{"name":"query","required":false,"in":"query","schema":{"type":"string","maxLength":100},"description":"Optional case-insensitive display-name and handle filter."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackMemberPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Slack workspace members","tags":["accounts","slack"]}},"/v1/accounts/{accountId}/telegram-commands":{"get":{"description":"Returns the default, language-neutral commands configured for the bot. Commands are bot-global even though the path selects one connected chat account.","operationId":"getTelegramCommands","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramCommandListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Telegram bot commands","tags":["accounts"]},"put":{"description":"Replaces the bot-global default command list. Replaying the exact request is safe.","operationId":"setTelegramCommands","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTelegramCommandsDto"}}}},"responses":{"200":{"description":"Commands set successfully."},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set Telegram bot commands","tags":["accounts"]},"delete":{"description":"Clears the bot-global default command list. Replaying the request is safe.","operationId":"deleteTelegramCommands","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"Commands deleted successfully."},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete Telegram bot commands","tags":["accounts"]}},"/v1/inbox/conversations/{conversationId}/messages/{messageId}":{"patch":{"description":"Edits the text and/or inline keyboard of a message the bot already sent. Only supported for Telegram; other platforms return 400. The edit writes an absolute desired state, so replaying the identical request is safe.","operationId":"editInboxMessage","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"Platform conversation id. For Telegram this is the connected chat id."},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"The Telegram message id to edit."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxMessageEditRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxMessageEditResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Edit message","tags":["inbox","telegram"]},"delete":{"description":"Deletes a message from a conversation. Telegram deletes the bot's own messages, and other participants' messages when the bot is an administrator. Platforms without a delete capability return 400.","operationId":"deleteInboxMessage","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"Platform conversation id. For Telegram this is the connected chat id."},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"The platform message id to delete."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxAcknowledgementDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete message","tags":["inbox","telegram"]}},"/v1/inbox/conversations/{conversationId}/messages/{messageId}/reactions":{"post":{"description":"Adds one emoji reaction to a message. Telegram accepts a provider-defined subset of Unicode emoji and rejects the rest; platforms without a reaction capability return 400.","operationId":"addMessageReaction","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"Platform conversation id. For Telegram this is the connected chat id."},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"The platform message id to react to."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxReactionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxAcknowledgementDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Add reaction","tags":["inbox","telegram"]},"delete":{"description":"Removes the reaction previously sent on a message. The emoji is not repeated: Telegram clears the reaction by writing an empty reaction set, which makes replaying the identical request safe. Platforms without a reaction capability return 400.","operationId":"removeMessageReaction","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"Platform conversation id. For Telegram this is the connected chat id."},{"name":"messageId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"The platform message id."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxAcknowledgementDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove reaction","tags":["inbox","telegram"]}},"/v1/inbox/conversations/{conversationId}/typing":{"post":{"description":"Shows a typing indicator in a conversation. Telegram shows it for about five seconds. Typing indicators are best-effort: platforms without the capability return 200 with success false, and a failed platform call also returns 200 with success false.","operationId":"sendTypingIndicator","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","pattern":"^[!-~]{1,128}$"},"description":"Platform conversation id. For Telegram this is the connected chat id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxTypingRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramInboxTypingResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send typing indicator","tags":["inbox","telegram"]}},"/v1/accounts/{accountId}/tiktok/creator-info":{"get":{"description":"Reads the provider-owned visibility, duration and interaction constraints for one active TikTok account.","operationId":"getTikTokCreatorInfo","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"mediaType","required":false,"in":"query","schema":{"type":"string","enum":["video","photo"],"default":"video"},"description":"Shapes the applicable interaction settings: photo responses omit duet, stitch and video-duration controls."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokCreatorInfoDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get current TikTok creator posting constraints","tags":["accounts"]}},"/v1/twitter/bookmark":{"post":{"description":"Bookmarks an X Post by ID using the selected connected account.","operationId":"bookmarkPost","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterBookmarkInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterBookmarkDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Bookmark a post","tags":["twitter-engagement"]},"delete":{"description":"Removes the selected connected account bookmark from an X Post.","operationId":"removeBookmark","parameters":[{"name":"tweetId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterRemoveBookmarkDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove a bookmark","tags":["twitter-engagement"]}},"/v1/twitter/follow":{"post":{"description":"Follows an X user, or creates a pending request for a protected account.","operationId":"followUser","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterFollowInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterFollowDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Follow a user","tags":["twitter-engagement"]},"delete":{"description":"Unfollows an X user with the selected connected account.","operationId":"unfollowUser","parameters":[{"name":"targetUserId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterUnfollowDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unfollow a user","tags":["twitter-engagement"]}},"/v1/twitter/search":{"get":{"description":"Searches public X Posts from the last seven days using the connected account.","operationId":"searchTweets","parameters":[{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string","enum":["recency","relevancy"],"default":"recency"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"endTime","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"startTime","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"untilId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9]{1,19}$"}},{"name":"sinceId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9]{1,19}$"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":10,"maximum":100,"default":10}},{"name":"query","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterSearchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"402":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search recent tweets","tags":["twitter-engagement"]}},"/v1/twitter/tweet":{"get":{"description":"Resolves one numeric X Post id or canonical Post URL.","operationId":"getTweet","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterTweetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"402":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Look up a tweet","tags":["twitter-engagement"]}},"/v1/twitter/retweet":{"post":{"description":"Retweets an X Post by ID using the selected connected account.","operationId":"retweetPost","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterRetweetInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterRetweetDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retweet a post","tags":["twitter-engagement"]},"delete":{"description":"Removes the selected connected account retweet from an X Post.","operationId":"undoRetweet","parameters":[{"name":"tweetId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwitterUndoRetweetDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Undo a retweet","tags":["twitter-engagement"]}},"/v1/inbox/comments/{postId}/{commentId}/hide":{"post":{"description":"For Instagram and Facebook, verifies media and comment ownership and requires Idempotency-Key (24-hour replay window). For Threads, resolves the selected post and proves the reply belongs directly to it, and applies one exact hidden desired state. Retry only the identical request when the provider outcome is ambiguous.","operationId":"hideInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^(?:[0-9a-f]{24}|[1-9][0-9]{0,31}(?:_[1-9][0-9]{0,31})?)$"},"description":"Internal post id or provider Threads media id."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,31}(?:_[1-9][0-9]{0,31})?$"}},{"name":"Idempotency-Key","in":"header","description":"Required for Instagram and Facebook writes.","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsInboxCommentVisibilityRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ThreadsInboxCommentVisibilityResponseDto"},{"$ref":"#/components/schemas/MetaCommentVisibilityResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Hide a post comment","tags":["comments","threads","instagram","facebook"]},"delete":{"description":"For Instagram and Facebook, verifies media and comment ownership and requires Idempotency-Key (24-hour replay window). For Threads, resolves the selected post and proves the reply belongs directly to it, and applies one exact visible desired state. Retry only the identical request when the provider outcome is ambiguous.","operationId":"unhideInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^(?:[0-9a-f]{24}|[1-9][0-9]{0,31}(?:_[1-9][0-9]{0,31})?)$"},"description":"Internal post id or provider Threads media id."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,31}(?:_[1-9][0-9]{0,31})?$"}},{"name":"Idempotency-Key","in":"header","description":"Required for Instagram and Facebook writes.","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ThreadsInboxCommentVisibilityResponseDto"},{"$ref":"#/components/schemas/MetaCommentVisibilityResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unhide a post comment","tags":["comments","threads","instagram","facebook"]}},"/v1/accounts/{accountId}/threads-posts/{postId}/pending-replies":{"get":{"description":"Pages Meta pending_replies for an owned Thread created with reply approvals enabled. Omit approvalStatus to include both pending and ignored replies.","operationId":"listThreadsPendingReplies","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"approvalStatus","required":false,"in":"query","schema":{"enum":["pending","ignored"],"type":"string"}},{"name":"reverse","required":false,"in":"query","schema":{"type":"boolean","default":true}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPendingReplyPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List pending or ignored replies awaiting Threads approval","tags":["accounts"]}},"/v1/accounts/{accountId}/threads-replies/{replyId}/approval":{"post":{"description":"Dispatches Meta manage_pending_reply once. Meta does not document idempotency, so clients must not automatically replay an ambiguous response. Ignored replies remain in the queue and can later be approved.","operationId":"decideThreadsPendingReply","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"replyId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPendingReplyDecisionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPendingReplyDecisionResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Approve or ignore a pending Threads reply","tags":["accounts"]}},"/v1/accounts/{accountId}/threads-replies/{replyId}/hidden":{"put":{"description":"Hides a top-level reply under a Thread owned by the connected profile. Nested replies follow the top-level state. Replaying this exact PUT is safe.","operationId":"hideThreadsReply","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"replyId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsReplyVisibilityDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Hide a Threads reply","tags":["accounts"]},"delete":{"description":"Restores a previously hidden top-level reply and its nested replies. Replaying this exact DELETE is safe.","operationId":"unhideThreadsReply","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"replyId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsReplyVisibilityDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unhide a Threads reply","tags":["accounts"]}},"/v1/accounts/{accountId}/threads-posts/{postId}/replies":{"get":{"description":"Returns only immediate child replies. Use hasReplies and call this endpoint with a reply ID to traverse deeper levels.","operationId":"listThreadsPostReplies","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"reverse","required":false,"in":"query","schema":{"type":"boolean","default":true}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsReplyPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List immediate replies to a Threads post or reply","tags":["accounts"]}},"/v1/accounts/{accountId}/threads-posts/{postId}/conversation":{"get":{"description":"Returns all visible top-level and nested replies. Meta accepts only a root-level Thread ID on this surface.","operationId":"listThreadsPostConversation","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"reverse","required":false,"in":"query","schema":{"type":"boolean","default":true}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsReplyPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List a flattened Threads reply conversation","tags":["accounts"]}},"/v1/accounts/{accountId}/threads-replies":{"get":{"description":"Pages Meta /me/replies for the exact connected profile. This is distinct from replies received under one owned Thread.","operationId":"listThreadsAuthoredReplies","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsReplyPageDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List replies authored by the connected Threads profile","tags":["accounts"]}},"/v1/whatsapp/templates":{"post":{"description":"Creates one bounded custom template or imports one pre-approved UTILITY template from Meta Template Library on the credential WABA. The request is dispatched once and is never retried automatically; an ambiguous result must be reconciled by exact name and language. Custom mode and library mode are mutually exclusive. Supported text and authentication copy-code components accept canonical Meta uppercase values and Zernio lowercase aliases. Media headers, carousel/LTO, custom URL or phone buttons, named parameters, and one-tap OTP remain deliberately unsupported.","operationId":"createWhatsAppTemplate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateCreateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateCreateResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a WhatsApp message template","tags":["whatsapp"]},"get":{"description":"Pages provider-owned template lifecycle state for the connected WhatsApp Business Account.","operationId":"getWhatsAppTemplates","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Opaque cursor returned by the immediately preceding page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List WhatsApp message templates","tags":["whatsapp"]}},"/v1/whatsapp/templates/id/{templateId}":{"get":{"description":"Addresses exactly one language variant by the Meta id that every variant carries on its own, which is also the id the template status webhook reports. The id is first resolved to its identity and the response is then read WABA-bound, so an id outside the account WhatsApp Business Account is reported as not found.","operationId":"getWhatsAppTemplateById","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one WhatsApp template variant by its Meta id","tags":["whatsapp"]},"patch":{"description":"Replaces the bounded component set of exactly one language variant. Name, language and category are not accepted: Meta treats all three as immutable, and they are resolved from the id rather than restated by the caller. The provider POST is never replayed blindly; ambiguous outcomes are reconciled by exact id.","operationId":"updateWhatsAppTemplateById","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateByIdRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update one WhatsApp template variant by its Meta id","tags":["whatsapp"]},"delete":{"description":"Deletes exactly one language variant; other languages sharing the name are untouched. Family-wide deletion is unreachable from this operation by construction, because a Meta id addresses a single variant. The operation is dispatched once and is never retried automatically.","operationId":"deleteWhatsAppTemplateById","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateDeleteResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete one WhatsApp template variant by its Meta id","tags":["whatsapp"]}},"/v1/whatsapp/templates/{templateName}":{"get":{"description":"Requires templateId or language as a safety extension because a Meta template name can identify multiple language variants.","operationId":"getWhatsAppTemplate","parameters":[{"name":"templateName","required":true,"in":"path","schema":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","minLength":1,"maxLength":512}},{"name":"language","required":false,"in":"query","description":"Exact language variant. Required when templateId is omitted.","schema":{"enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"],"type":"string"}},{"name":"templateId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"description":"Language-specific Meta template id. Required when language is omitted."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one exact WhatsApp template language variant","tags":["whatsapp"]},"patch":{"description":"Requires the exact template id, language and immutable category before replacing the bounded component set. Supported text and authentication copy-code components accept canonical Meta uppercase values and Zernio lowercase aliases. The provider POST is never replayed blindly; ambiguous outcomes are reconciled by exact id.","operationId":"updateWhatsAppTemplate","parameters":[{"name":"templateName","required":true,"in":"path","schema":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","minLength":1,"maxLength":512}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update one exact WhatsApp template language variant","tags":["whatsapp"]},"delete":{"description":"Requires the language-specific Meta templateId as a deliberate safety extension. Name-only deletion is unsupported because Meta would delete every language variant sharing that name. The operation is dispatched once and is never retried automatically.","operationId":"deleteWhatsAppTemplate","parameters":[{"name":"templateName","required":true,"in":"path","schema":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","minLength":1,"maxLength":512}},{"name":"templateId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"description":"Language-specific Meta template id; Meta accepts no language parameter on deletion."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateDeleteResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete one WhatsApp template language variant","tags":["whatsapp"]}},"/v1/whatsapp/calling":{"get":{"operationId":"getWhatsAppCallingConfig","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingAccountConfigResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get calling config for an account","tags":["whatsapp-calling"]}},"/v1/whatsapp/call-permissions":{"get":{"operationId":"getWhatsAppCallPermissions","parameters":[{"name":"to","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallPermissionsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check call permission","tags":["whatsapp-calling"]}},"/v1/whatsapp/calls":{"post":{"operationId":"initiateWhatsAppCall","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallInitiateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallInitiateResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Initiate outbound call","tags":["whatsapp-calling"]},"get":{"operationId":"listWhatsAppCalls","parameters":[{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":200,"type":"number"}},{"name":"before","required":false,"in":"query","schema":{"type":"string","format":"date-time"}},{"name":"until","required":false,"in":"query","schema":{"type":"string","format":"date-time"}},{"name":"since","required":false,"in":"query","schema":{"type":"string","format":"date-time"}},{"name":"direction","required":false,"in":"query","schema":{"enum":["inbound","outbound"],"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["ringing","answered","ended","failed"],"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List call history for an account","tags":["whatsapp-calling"]}},"/v1/whatsapp/calls/estimate":{"get":{"operationId":"getWhatsAppCallEstimate","parameters":[{"name":"recording","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"minutes","required":false,"in":"query","schema":{"minimum":1,"maximum":120,"type":"number"}},{"name":"to","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallEstimateResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Estimate per-minute cost","tags":["whatsapp-calling"]}},"/v1/whatsapp/calls/{id}":{"get":{"operationId":"getWhatsAppCall","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a single call","tags":["whatsapp-calling"]}},"/v1/whatsapp/calls/{id}/recording":{"get":{"operationId":"getWhatsAppCallRecording","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"as","required":false,"in":"query","schema":{"enum":["json"],"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallRecordingResponseDto"}}}},"302":{"description":"Redirect to a signed recording URL."},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a call recording","tags":["whatsapp-calling"]}},"/v1/whatsapp/phone-numbers/{id}/calling":{"post":{"deprecated":true,"operationId":"enableWhatsAppCallingLegacy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingEnableRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingEnableResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Enable calling on a number","tags":["whatsapp-calling"]},"patch":{"deprecated":true,"operationId":"updateWhatsAppCallingLegacy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingUpdateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update calling config","tags":["whatsapp-calling"]},"delete":{"deprecated":true,"operationId":"disableWhatsAppCallingLegacy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Disable calling on a number","tags":["whatsapp-calling"]}},"/v1/phone-numbers/{id}/whatsapp/calling":{"get":{"operationId":"getWhatsAppCalling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingNumberConfigResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get calling config for a number","tags":["whatsapp-calling"]},"post":{"operationId":"enableWhatsAppCalling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingEnableRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingEnableResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Enable calling on a number","tags":["whatsapp-calling"]},"patch":{"operationId":"updateWhatsAppCalling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingUpdateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update calling config","tags":["whatsapp-calling"]},"delete":{"operationId":"disableWhatsAppCalling","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallingMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Disable calling on a number","tags":["whatsapp-calling"]}},"/v1/phone-numbers/{id}/whatsapp/caller-id-verification":{"post":{"operationId":"startWhatsAppCallerIdVerification","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallerIdVerificationStartRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallerIdVerificationStartResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start caller-ID verification for a customer-brought number","tags":["whatsapp-calling"]}},"/v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify":{"post":{"operationId":"verifyWhatsAppCallerId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallerIdVerificationConfirmRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCallerIdVerificationConfirmResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Confirm the caller-ID verification code","tags":["whatsapp-calling"]}},"/v1/whatsapp/flows":{"get":{"operationId":"listWhatsAppFlows","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List flows","tags":["whatsapp-flows"]},"post":{"operationId":"createWhatsAppFlow","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppFlowDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create flow","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/send":{"post":{"operationId":"sendWhatsAppFlowMessage","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppFlowMessageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppFlowMessageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send flow message","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}":{"get":{"operationId":"getWhatsAppFlow","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":1024}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowDetailsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get flow","tags":["whatsapp-flows"]},"patch":{"operationId":"updateWhatsAppFlow","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppFlowDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update flow","tags":["whatsapp-flows"]},"delete":{"operationId":"deleteWhatsAppFlow","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete flow","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}/json":{"get":{"operationId":"getWhatsAppFlowJson","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowAssetsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get flow JSON asset","tags":["whatsapp-flows"]},"put":{"operationId":"uploadWhatsAppFlowJson","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadWhatsAppFlowJsonDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadWhatsAppFlowJsonResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload flow JSON","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}/preview":{"get":{"operationId":"getWhatsAppFlowPreview","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"invalidate","required":false,"in":"query","schema":{"type":"boolean","default":false}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowPreviewDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get flow preview URL","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}/versions":{"get":{"operationId":"listWhatsAppFlowVersions","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowVersionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List flow versions","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}/publish":{"post":{"operationId":"publishWhatsAppFlow","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Publish flow","tags":["whatsapp-flows"]}},"/v1/whatsapp/flows/{flowId}/deprecate":{"post":{"operationId":"deprecateWhatsAppFlow","parameters":[{"name":"flowId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Deprecate flow","tags":["whatsapp-flows"]}},"/v1/whatsapp/flow-responses":{"get":{"operationId":"listWhatsAppFlowResponses","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"flowId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppFlowResponsesDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List flow responses","tags":["whatsapp-flows"]}},"/v1/whatsapp/wa-groups":{"get":{"operationId":"listWhatsAppGroupChats","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","maxLength":2048}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1024,"default":25}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List active groups","tags":["whatsapp"]},"post":{"operationId":"createWhatsAppGroupChat","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppGroupDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupCreateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create group","tags":["whatsapp"]}},"/v1/whatsapp/wa-groups/{groupId}":{"get":{"operationId":"getWhatsAppGroupChat","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get group info","tags":["whatsapp"]},"post":{"operationId":"updateWhatsAppGroupChat","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update group settings","tags":["whatsapp"]},"delete":{"operationId":"deleteWhatsAppGroupChat","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete group","tags":["whatsapp"]}},"/v1/whatsapp/wa-groups/{groupId}/participants":{"post":{"operationId":"addWhatsAppGroupParticipants","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupParticipantsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Add participants","tags":["whatsapp"]},"delete":{"operationId":"removeWhatsAppGroupParticipants","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupParticipantsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove participants","tags":["whatsapp"]}},"/v1/whatsapp/wa-groups/{groupId}/invite-link":{"post":{"operationId":"createWhatsAppGroupInviteLink","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupInviteLinkResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create invite link","tags":["whatsapp"]}},"/v1/whatsapp/wa-groups/{groupId}/join-requests":{"get":{"operationId":"listWhatsAppGroupJoinRequests","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupJoinRequestsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List join requests","tags":["whatsapp"]},"post":{"operationId":"approveWhatsAppGroupJoinRequests","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupParticipantsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Approve join requests","tags":["whatsapp"]},"delete":{"operationId":"rejectWhatsAppGroupJoinRequests","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string","minLength":8,"maxLength":512}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupParticipantsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppGroupMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Reject join requests","tags":["whatsapp"]}},"/v1/accounts/{accountId}/whatsapp/register":{"post":{"operationId":"registerWhatsAppNumber","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterWhatsAppNumberRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterWhatsAppNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Register a connected WhatsApp number on the Cloud API","tags":["whatsapp"]}},"/v1/whatsapp/media/{mediaId}":{"get":{"operationId":"getWhatsAppMedia","parameters":[{"name":"mediaId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"The bounded media binary. Content-Type is the provider type when it is on the WhatsApp media allowlist, otherwise application/octet-stream; always served as an attachment.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Download WhatsApp media","tags":["whatsapp"]}},"/v1/whatsapp/template-library":{"get":{"operationId":"getWhatsAppLibraryTemplate","parameters":[{"name":"language","required":false,"in":"query","schema":{"type":"string","pattern":"^[a-z]{2,3}(?:_[A-Z]{2})?$"},"description":"Preferred language variant. Falls back to the first available variant."},{"name":"name","required":true,"in":"query","schema":{"type":"string","pattern":"^[a-z0-9_]{1,512}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppLibraryTemplateResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Look up a library template","tags":["whatsapp"]}},"/v1/whatsapp/account-events":{"get":{"operationId":"listWhatsAppAccountEvents","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppAccountEventsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Meta-originated WhatsApp account events","tags":["whatsapp"]}},"/v1/whatsapp/block-users/status":{"get":{"operationId":"getWhatsAppBlockStatus","parameters":[{"name":"user","required":true,"in":"query","schema":{"type":"string","pattern":"^\\+?[1-9][0-9]{1,14}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBlockStatusResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check if a user is blocked","tags":["whatsapp"]}},"/v1/whatsapp/block-users":{"get":{"operationId":"getWhatsAppBlockedUsers","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","maxLength":2048}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBlockedUsersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List blocked users","tags":["whatsapp"]},"post":{"operationId":"blockWhatsAppUsers","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBlockUsersRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBlockUsersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Block users","tags":["whatsapp"]},"delete":{"operationId":"unblockWhatsAppUsers","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBlockUsersRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppUnblockUsersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unblock users","tags":["whatsapp"]}},"/v1/whatsapp/dataset":{"get":{"operationId":"getWhatsAppDataset","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppDatasetResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get CTWA conversions dataset","tags":["whatsapp"]},"post":{"operationId":"createWhatsAppDataset","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppDatasetRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppDatasetProvisionResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Provision CTWA dataset","tags":["whatsapp"]}},"/v1/whatsapp/conversions":{"get":{"operationId":"listWhatsAppConversions","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConversionsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List conversion events","tags":["whatsapp"]},"post":{"operationId":"sendWhatsAppConversion","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppConversionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppConversionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send WhatsApp conversion event","tags":["whatsapp"]}},"/v1/phone-numbers":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"listPhoneNumbers","parameters":[{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["provisioning","verifying","pending_payment","pending_regulatory","regulatory_declined","active","suspended","releasing","released"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPhoneNumbersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List phone numbers","tags":["phone-numbers"]}},"/v1/phone-numbers/purchase":{"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"purchasePhoneNumber","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseWhatsAppPhoneNumberDto"}}}},"responses":{"200":{"description":"Provisioned, checkout, or idempotent prior purchase.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PurchaseWhatsAppCheckoutResponseDto"},{"$ref":"#/components/schemas/PurchaseWhatsAppProvisionedResponseDto"},{"$ref":"#/components/schemas/PurchaseWhatsAppAlreadyPurchasedResponseDto"}]}}}},"202":{"description":"Regulated country requires KYC.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseWhatsAppKycRequiredResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"402":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Purchase phone number","tags":["phone-numbers"]}},"/v1/phone-numbers/countries":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"listPhoneNumberCountries","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberCountriesResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List offerable number countries","tags":["phone-numbers"]}},"/v1/phone-numbers/available":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"searchAvailablePhoneNumbers","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","default":20,"maximum":100}},{"name":"contains","required":false,"in":"query","schema":{"type":"string"}},{"name":"locality","required":false,"in":"query","schema":{"type":"string"}},{"name":"prefix","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"country","required":false,"in":"query","schema":{"type":"string","default":"US"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableWhatsAppNumbersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search available numbers","tags":["phone-numbers"]}},"/v1/phone-numbers/availability":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"checkPhoneNumberAvailability","parameters":[{"name":"sms","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"numberType","required":false,"in":"query","schema":{"enum":["local","mobile","national","toll_free"],"type":"string"}},{"name":"country","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberAvailabilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check country availability","tags":["phone-numbers"]}},"/v1/phone-numbers/kyc":{"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"submitPhoneNumberKyc","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWhatsAppNumberKycDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWhatsAppNumberKycResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Submit KYC","tags":["phone-numbers"]}},"/v1/phone-numbers/kyc/upload-document":{"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"uploadPhoneNumberKycDocument","parameters":[{"name":"X-Filename","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppKycDocumentUploadResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload a KYC document","tags":["phone-numbers"]}},"/v1/phone-numbers/kyc/validate-address":{"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"validatePhoneNumberKycAddress","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateWhatsAppNumberKycAddressDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateWhatsAppNumberKycAddressResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pre-validate KYC address","tags":["phone-numbers"]}},"/v1/phone-numbers/kyc/share":{"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"createPhoneNumberKycLink","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppNumberKycLinkDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppNumberKycLinkResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a hosted KYC link","tags":["phone-numbers"]}},"/v1/phone-numbers/{id}/remediate":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"getPhoneNumberRemediation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberRemediationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get declined requirements","tags":["phone-numbers"]},"post":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"remediatePhoneNumber","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemediateWhatsAppNumberDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemediateWhatsAppNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resubmit a declined number","tags":["phone-numbers"]}},"/v1/phone-numbers/{id}":{"get":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"getPhoneNumber","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWhatsAppPhoneNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get phone number","tags":["phone-numbers"]},"delete":{"description":"Canonical provider-backed phone-number surface. The durable WhatsApp provisioning/KYC subset is available; live mode fails closed unless a carrier provider is configured.","operationId":"releasePhoneNumber","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseWhatsAppPhoneNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Release phone number","tags":["phone-numbers"]}},"/v1/whatsapp/phone-numbers":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"getWhatsAppPhoneNumbers","parameters":[{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["provisioning","verifying","pending_payment","pending_regulatory","regulatory_declined","active","suspended","releasing","released"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPhoneNumbersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List phone numbers","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/purchase":{"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"purchaseWhatsAppPhoneNumber","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseWhatsAppPhoneNumberDto"}}}},"responses":{"200":{"description":"Provisioned, checkout, or idempotent prior purchase.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PurchaseWhatsAppCheckoutResponseDto"},{"$ref":"#/components/schemas/PurchaseWhatsAppProvisionedResponseDto"},{"$ref":"#/components/schemas/PurchaseWhatsAppAlreadyPurchasedResponseDto"}]}}}},"202":{"description":"Regulated country requires KYC.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseWhatsAppKycRequiredResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"402":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Purchase phone number","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/countries":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"listWhatsAppNumberCountries","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberCountriesResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List offerable number countries","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/available":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"searchAvailableWhatsAppNumbers","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","default":20,"maximum":100}},{"name":"contains","required":false,"in":"query","schema":{"type":"string"}},{"name":"locality","required":false,"in":"query","schema":{"type":"string"}},{"name":"prefix","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"country","required":false,"in":"query","schema":{"type":"string","default":"US"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableWhatsAppNumbersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search available numbers","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/availability":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"checkWhatsAppNumberAvailability","parameters":[{"name":"sms","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"numberType","required":false,"in":"query","schema":{"enum":["local","mobile","national","toll_free"],"type":"string"}},{"name":"country","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberAvailabilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check country availability","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/kyc":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"getWhatsAppNumberKycForm","parameters":[{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}},{"name":"country","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberKycFormResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get KYC form spec","tags":["whatsapp-phone-numbers"]},"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"submitWhatsAppNumberKyc","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWhatsAppNumberKycDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWhatsAppNumberKycResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Submit KYC","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/kyc/upload-document":{"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"uploadWhatsAppNumberKycDocument","parameters":[{"name":"X-Filename","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppKycDocumentUploadResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload a KYC document","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/kyc/validate-address":{"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"validateWhatsAppNumberKycAddress","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateWhatsAppNumberKycAddressDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateWhatsAppNumberKycAddressResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pre-validate KYC address","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/kyc/share":{"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"createWhatsAppNumberKycLink","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppNumberKycLinkDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppNumberKycLinkResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a hosted KYC link","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/{id}/profile":{"patch":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"moveWhatsAppNumberToProfile","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveWhatsAppNumberToProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveWhatsAppNumberToProfileResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Move a number to another profile","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/{id}/remediate":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"getWhatsAppNumberRemediation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberRemediationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get declined requirements","tags":["whatsapp-phone-numbers"]},"post":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"remediateWhatsAppNumber","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemediateWhatsAppNumberDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemediateWhatsAppNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resubmit a declined number","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/phone-numbers/{phoneNumberId}":{"get":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"getWhatsAppPhoneNumber","parameters":[{"name":"phoneNumberId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWhatsAppPhoneNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get phone number","tags":["whatsapp-phone-numbers"]},"delete":{"description":"Carrier provisioning/KYC is a non-Meta provider boundary. Live mode fails closed unless an explicit carrier provider is configured.","operationId":"releaseWhatsAppPhoneNumber","parameters":[{"name":"phoneNumberId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseWhatsAppPhoneNumberResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Release phone number","tags":["whatsapp-phone-numbers"]}},"/v1/whatsapp/sandbox/sessions":{"get":{"operationId":"listWhatsAppSandboxSessions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWhatsAppSandboxSessionsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List your sandbox sessions","tags":["whatsapp-sandbox"]},"post":{"operationId":"createWhatsAppSandboxSession","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppSandboxSessionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppSandboxSessionResponseDto"}}}},"400":{"description":"Invalid phone, conflict, or provider rejection"},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start a sandbox activation","tags":["whatsapp-sandbox"]}},"/v1/whatsapp/sandbox/sessions/{sessionId}":{"delete":{"operationId":"deleteWhatsAppSandboxSession","parameters":[{"name":"sessionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWhatsAppSandboxSessionResponseDto"}}}},"400":{"description":"Invalid or unknown session id"},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Revoke a sandbox session","tags":["whatsapp-sandbox"]}},"/v1/whatsapp/business-profile":{"get":{"operationId":"getWhatsAppBusinessProfile","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBusinessProfileResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a WhatsApp business profile","tags":["whatsapp"]},"post":{"operationId":"updateWhatsAppBusinessProfile","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppBusinessProfileDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMessageResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a WhatsApp business profile","tags":["whatsapp"]}},"/v1/whatsapp/business-profile/photo":{"post":{"description":"Accepts one JPEG/PNG file up to 5 MiB or fetches one direct public HTTPS URL without redirects.","operationId":"uploadWhatsAppProfilePhoto","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppProfilePhotoUrlDto"}},"multipart/form-data":{"schema":{"type":"object","additionalProperties":false,"required":["accountId","file"],"properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"file":{"type":"string","format":"binary","description":"JPEG or PNG, maximum 5 MiB."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMessageResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload a WhatsApp business profile photo","tags":["whatsapp"]}},"/v1/whatsapp/business-profile/display-name":{"get":{"operationId":"getWhatsAppDisplayName","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppDisplayNameResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a WhatsApp display name","tags":["whatsapp"]},"post":{"operationId":"updateWhatsAppDisplayName","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppDisplayNameDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppDisplayNameResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Submit a WhatsApp display-name change","tags":["whatsapp"]}},"/v1/whatsapp/business-profile/username":{"get":{"operationId":"getWhatsappBusinessUsername","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppUsernameResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a WhatsApp business username","tags":["whatsapp"]},"post":{"operationId":"setWhatsappBusinessUsername","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetWhatsAppUsernameDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetWhatsAppUsernameResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set a WhatsApp business username","tags":["whatsapp"]},"delete":{"operationId":"deleteWhatsappBusinessUsername","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWhatsAppUsernameDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWhatsAppUsernameResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a WhatsApp business username","tags":["whatsapp"]}},"/v1/whatsapp/business-profile/username/suggestions":{"get":{"operationId":"getWhatsappBusinessUsernameSuggestions","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppUsernameSuggestionsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get WhatsApp username suggestions","tags":["whatsapp"]}},"/v1/whatsapp/number-info":{"get":{"operationId":"getWhatsAppNumberInfo","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberInfoResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get live WhatsApp phone and WABA information","tags":["whatsapp-phone-numbers"]}},"/v1/inbox/comments/{postId}":{"delete":{"description":"For Instagram and Facebook, verifies the owned media and comment before deletion; Idempotency-Key is required with a 24-hour replay window. For YouTube, makes the selected comment absent when its author is the connected YouTube channel. The post selects and fences the account/video context; YouTube does not expose parent-video identity on this delete operation, so no parent-video correlation beyond that context is claimed. Repeating the identical target is safe.","operationId":"deleteInboxComment","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"Internal post id or provider YouTube video id."},{"name":"Idempotency-Key","in":"header","description":"Required for Instagram and Facebook writes.","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"commentId","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]{1,256}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCommentDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a post comment","tags":["comments","youtube","instagram","facebook"]},"post":{"description":"Replies to a YouTube, Instagram or Facebook comment selected by accountId. commentId is required. Meta requires Idempotency-Key (24-hour replay window), verifies comment and media ownership, and never automatically retries ambiguous writes. Meta reply text is limited to 2200 characters. YouTube retains channel-bound parent verification.","operationId":"replyToInboxPost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"Internal post id or provider YouTube video id."},{"name":"Idempotency-Key","in":"header","description":"Required for Instagram and Facebook comment writes. Reuse the same key and request after a timeout.","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCommentReplyInputDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCommentReplyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Reply to a post comment","tags":["comments","youtube","instagram","facebook"]},"get":{"description":"Returns one owned YouTube, Instagram or Facebook post comment page. The account determines the platform. Internal posts resolve to a unique published account target; Meta verifies provider media ownership. Meta fields withheld by the provider remain null.","operationId":"getInboxPostComments","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"Internal post id or provider YouTube, Instagram or Facebook post id."},{"name":"moderationStatus","required":false,"in":"query","schema":{"type":"string","enum":["published","heldForReview","likelySpam"]},"description":"Optional YouTube owner moderation-queue filter."},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Opaque context-bound cursor returned by this endpoint."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/YoutubeInboxCommentsResponseDto"},{"$ref":"#/components/schemas/MetaInboxCommentsResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get post comments","tags":["comments","youtube","instagram","facebook"]}},"/v1/inbox/comments/{postId}/{commentId}/moderation":{"post":{"description":"Applies one exact desired moderation state to a YouTube comment. The request is bound to the selected account and owned video context. YouTube may not make rejected comments readable, so no discovery preflight is claimed. If an outcome is ambiguous, retry only the identical commentId, moderationStatus and banAuthor value.","operationId":"setCommentModeration","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"Internal post id or provider YouTube video id."},{"name":"commentId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]{1,256}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCommentModerationRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCommentModerationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set a YouTube comment moderation status","tags":["comments","youtube"]}},"/v1/accounts/{accountId}/youtube-captions":{"get":{"description":"Returns an owned video caption track as plain text plus either timed cues or SRT. Uploaded tracks take precedence over auto-generated tracks. Provider track metadata is revalidated on every request; refresh=true also re-downloads the transcript.","operationId":"getYoutubeCaptions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"refresh","required":false,"in":"query","schema":{"type":"boolean","default":false}},{"name":"format","required":false,"in":"query","schema":{"type":"string","enum":["json","srt"],"default":"json"}},{"name":"language","required":false,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9]{1,8}(?:-[A-Za-z0-9]{1,8}){0,7}$"}},{"name":"videoId","required":true,"in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeCaptionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a YouTube video transcript","tags":["accounts","youtube"]}},"/v1/accounts/{accountId}/youtube-playlists":{"get":{"description":"Returns the complete bounded directory of playlists owned by one active YouTube account and its explicit client-side default preference.","operationId":"getYoutubePlaylists","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubePlaylistsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List playlists owned by a connected YouTube channel","tags":["accounts","youtube"]},"put":{"description":"Stores an explicit account- and channel-identity-bound client preference. Publishing does not apply this default automatically.","operationId":"updateYoutubeDefaultPlaylist","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetYoutubeDefaultPlaylistDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeDefaultPlaylistResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set the default YouTube playlist preference","tags":["accounts","youtube"]}},"/v1/posts/{postId}/update-metadata":{"post":{"description":"Updates caller-selected fields without re-uploading the video. Use a stored Zumpo post id, or \"_\" with accountId and videoId for a video created elsewhere. playlistId may be sent alone or with metadata. Combined requests acquire both provider quotas and revalidate the source before dispatch; exact desired-state metadata runs first, followed by one at-most-once playlist membership operation.","operationId":"updatePostMetadata","parameters":[{"name":"postId","required":true,"in":"path","schema":{"oneOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"string","enum":["_"]}]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeVideoMetadataUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeVideoMetadataUpdateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update published YouTube video metadata","tags":["posts"]}},"/v1/accounts/{accountId}/slack-settings":{"get":{"description":"Returns the connected Slack channel details and default per-message identity. The app's own Slack profile remains workspace-global.","operationId":"getSlackSettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackSettingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Slack account settings","tags":["accounts"]},"patch":{"description":"Sets or clears the default message identity. Empty strings clear fields; per-post username/iconUrl values override these defaults.","operationId":"updateSlackSettings","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSlackSettingsDto"}}}},"responses":{"200":{"description":"Updated settings"},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update Slack account settings","tags":["accounts"]}},"/v1/discord/guilds/{guildId}/members":{"get":{"operationId":"listDiscordGuildMembers","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildMembersResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Discord guild members","tags":["discord"]}},"/v1/discord/guilds/{guildId}/members/search":{"get":{"operationId":"searchDiscordGuildMembers","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":25}},{"name":"query","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildMemberSearchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search Discord guild members","tags":["discord"]}},"/v1/discord/guilds/{guildId}/members/{userId}":{"get":{"operationId":"getDiscordGuildMember","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordGuildMemberResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Discord guild member","tags":["discord"]}},"/v1/discord/guilds/{guildId}/members/{userId}/roles/{roleId}":{"put":{"operationId":"addDiscordMemberRole","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"roleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordMemberRoleAssignedResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Add a Discord member role","tags":["discord"]},"delete":{"operationId":"removeDiscordMemberRole","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"roleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordMemberRoleRemovedResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove a Discord member role","tags":["discord"]}},"/v1/discord/guilds/{guildId}/events":{"get":{"operationId":"listDiscordScheduledEvents","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"withUserCount","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Discord scheduled events","tags":["discord"]},"post":{"operationId":"createDiscordScheduledEvent","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventCreateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Discord scheduled event","tags":["discord"]}},"/v1/discord/guilds/{guildId}/events/{eventId}":{"get":{"operationId":"getDiscordScheduledEvent","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"eventId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Discord scheduled event","tags":["discord"]},"patch":{"operationId":"updateDiscordScheduledEvent","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"eventId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventUpdateRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a Discord scheduled event","tags":["discord"]},"delete":{"operationId":"deleteDiscordScheduledEvent","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"eventId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscordScheduledEventDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a Discord scheduled event","tags":["discord"]}},"/v1/accounts/{accountId}/instagram-ice-breakers":{"get":{"description":"Get the ice breaker configuration for an Instagram account.","operationId":"getInstagramIceBreakers","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramIceBreakersResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get IG ice breakers","tags":["account-settings"]},"put":{"description":"Set ice breakers for an Instagram account. Max 4 ice breakers, question max 80 chars.","operationId":"setInstagramIceBreakers","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetInstagramIceBreakersDto"}}}},"responses":{"200":{"description":"Ice breakers set successfully."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set IG ice breakers","tags":["account-settings"]},"delete":{"description":"Removes the ice breaker questions from an Instagram account's Messenger experience.","operationId":"deleteInstagramIceBreakers","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"Ice breakers deleted."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete IG ice breakers","tags":["account-settings"]}},"/v1/analytics/facebook/page-insights":{"get":{"description":"Returns current Facebook Page counters, follower deltas, and optional unscaled daily monetization metrics for at most 89 days.","operationId":"getFacebookPageInsights","parameters":[{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"page_media_view,page_post_engagements,page_follows,followers_gained,followers_lost","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPageInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Facebook Page insights","tags":["analytics"]}},"/v1/accounts/{accountId}/follow-status/{userId}":{"get":{"description":"Resolve a messaging-scoped Instagram user profile and follow relationship. Unresolvable users return 200 with null relationship fields and an unavailableReason.","operationId":"getInstagramFollowStatus","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,31}$"}},{"name":"refresh","required":false,"in":"query","description":"Bypass the brief cached result and query Meta again.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramFollowStatusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Check whether an Instagram user follows the account","tags":["accounts"]}},"/v1/analytics/instagram/follower-history":{"get":{"description":"Returns the locally captured daily follower count and derived daily gains/losses for at most 90 days.","operationId":"getInstagramFollowerHistory","parameters":[{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"follower_count,followers_gained,followers_lost","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramAccountInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get Instagram follower history","tags":["analytics"]}},"/v1/connect/tiktok-ads":{"patch":{"description":"Uploads a public brand image and creates an immutable TikTok Ads CUSTOMIZED_USER identity.","operationId":"configureTikTokAdsBrandIdentity","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureTikTokAdsBrandIdentityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokAdsBrandIdentityResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set TikTok brand identity","tags":["connect"]}},"/v1/accounts/{accountId}/blogs":{"get":{"operationId":"listBlogs","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Shopify blogs","tags":["blogs"]},"post":{"description":"A required Idempotency-Key retains the completed create outcome (the provider resource ID) for 24 hours. Every retry reads the current Shopify resource, so a later edit or deletion can change the representation or return a typed read error, but it never starts a second create. If the provider may have committed but its response was lost, retries return 409 idempotency_key_outcome_unknown instead of creating a duplicate.","operationId":"createBlog","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"Idempotency-Key","in":"header","description":"Required client-generated retry key for this exact create request.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Shopify blog","tags":["blogs"]}},"/v1/accounts/{accountId}/blogs/{blogId}":{"get":{"operationId":"getBlog","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Shopify blog","tags":["blogs"]},"patch":{"operationId":"updateBlog","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogUpdateDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a Shopify blog","tags":["blogs"]},"delete":{"operationId":"deleteBlog","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Permanently delete a Shopify blog and its articles","tags":["blogs"]}},"/v1/accounts/{accountId}/blogs/{blogId}/articles":{"get":{"operationId":"listBlogArticles","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":2048}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Shopify blog articles","tags":["blogs"]},"post":{"description":"A required Idempotency-Key retains the completed create outcome (the provider resource ID) for 24 hours. Every retry reads the current Shopify article, so later content changes or deletion can change the representation or return a typed read error, but it never starts a second create. An ambiguous provider outcome is fenced and returns 409 on retry.","operationId":"createBlogArticle","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}},{"name":"Idempotency-Key","in":"header","description":"Required client-generated retry key for this exact create request.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleCreateDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create or natively schedule a Shopify article","tags":["blogs"]}},"/v1/accounts/{accountId}/blogs/{blogId}/articles/{articleId}":{"get":{"operationId":"getBlogArticle","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}},{"name":"articleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Shopify blog article","tags":["blogs"]},"patch":{"operationId":"updateBlogArticle","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}},{"name":"articleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleWriteDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyBlogArticleResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a Shopify blog article","tags":["blogs"]},"delete":{"operationId":"deleteBlogArticle","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"blogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}},{"name":"articleId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"The connected adapter does not support Shopify Blog operations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Permanently delete a Shopify blog article","tags":["blogs"]}},"/v1/account-groups":{"get":{"operationId":"listAccountGroups","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["name","-name"],"default":"name"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List account groups","tags":["account-groups"]},"post":{"operationId":"createAccountGroup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountGroupDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create an account group","tags":["account-groups"]}},"/v1/account-groups/{id}":{"get":{"operationId":"getAccountGroup","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve an account group","tags":["account-groups"]}},"/v1/account-groups/{groupId}":{"put":{"operationId":"updateAccountGroup","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update an account group","tags":["account-groups"]},"patch":{"deprecated":true,"operationId":"patchAccountGroup","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountGroupDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update an account group (legacy PATCH)","tags":["account-groups"]},"delete":{"operationId":"deleteAccountGroup","parameters":[{"name":"groupId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGroupDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete an account group","tags":["account-groups"]}},"/v1/custom-fields":{"get":{"operationId":"listCustomFields","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["name","-name"],"default":"name"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the definitions of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List custom field definitions","tags":["custom-fields"]},"post":{"operationId":"createCustomField","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a custom field definition","tags":["custom-fields"]}},"/v1/custom-fields/{fieldId}":{"get":{"operationId":"getCustomField","parameters":[{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a custom field definition","tags":["custom-fields"]},"patch":{"operationId":"updateCustomField","parameters":[{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a custom field definition","tags":["custom-fields"]},"delete":{"description":"Deletes the definition. Stored values are not part of this API version; when the value plane ships they are removed with the definition.","operationId":"deleteCustomField","parameters":[{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a custom field definition","tags":["custom-fields"]}},"/v1/contacts":{"get":{"operationId":"listContacts","parameters":[{"name":"isSubscribed","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"},"description":"Case-insensitive substring search over displayName, email and company."},{"name":"tag","required":false,"in":"query","schema":{"type":"string"},"description":"A single tag; if it is supplied together with `tags` the two are MERGED."},{"name":"tags","required":false,"in":"query","schema":{"type":"string"},"description":"Comma separated tag list, OR semantics. Case insensitive."},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the contacts of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List contacts","tags":["contacts"]},"post":{"operationId":"createContact","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a contact","tags":["contacts"]}},"/v1/contacts/bulk":{"post":{"description":"Per-row failures are reported in errors[] under a 200. A row whose channel already belongs to another contact is skipped and its tags are merged onto that contact.","operationId":"bulkCreateContacts","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateContactsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCreateContactsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Import contacts in bulk","tags":["contacts"]}},"/v1/contacts/{contactId}":{"get":{"operationId":"getContact","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a contact","tags":["contacts"]},"patch":{"description":"Only provided fields change; sending null clears a nullable field. isBlocked is a tenant-side suppression flag and never calls a provider block API.","operationId":"updateContact","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a contact","tags":["contacts"]},"delete":{"description":"Permanently deletes the contact together with its channels, tag links and custom field values. There is no soft-delete window in this API version.","operationId":"deleteContact","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a contact","tags":["contacts"]}},"/v1/contacts/{contactId}/channels":{"get":{"description":"Returns the account bindings only. Conversation identity and last-active timestamps belong to the Messages area and are not part of this API version.","operationId":"getContactChannels","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactChannelListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List a contact's channels","tags":["contacts"]}},"/v1/contacts/{contactId}/fields/{slug}":{"put":{"operationId":"setContactFieldValue","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}},{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetContactFieldValueDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFieldValueDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set a custom field value on a contact","tags":["contacts"]},"delete":{"description":"Removes the stored value. The field definition is untouched.","operationId":"clearContactFieldValue","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}},{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFieldValueDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Clear a custom field value on a contact","tags":["contacts"]}},"/v1/broadcasts":{"get":{"description":"Offset pagination with skip/limit. This endpoint does not accept a cursor.","operationId":"listBroadcasts","parameters":[{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["draft","scheduled","sending","completed","failed","cancelled"]}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the records of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List broadcasts","tags":["broadcasts"]},"post":{"description":"Creates a draft. Compile its audience with POST /v1/broadcasts/{broadcastId}/recipients before scheduling or sending.","operationId":"createBroadcast","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBroadcastDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a broadcast","tags":["broadcasts"]}},"/v1/broadcasts/{broadcastId}":{"get":{"operationId":"getBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a broadcast","tags":["broadcasts"]},"patch":{"description":"Only provided fields change; sending null clears a nullable field. profileId, accountId, platform and status are immutable. Editing is only allowed while the broadcast is a draft or scheduled: once sending has started the audience is frozen and changing the body would change what part of that audience receives.","operationId":"updateBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBroadcastDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a broadcast","tags":["broadcasts"]},"delete":{"description":"Permanently deletes the broadcast and its recipient rows. There is no soft-delete window. A broadcast that is currently sending cannot be deleted: cancel it first.","operationId":"deleteBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a broadcast","tags":["broadcasts"]}},"/v1/broadcasts/{broadcastId}/recipients":{"post":{"description":"Compiles recipients into concrete rows and FREEZES them (PRD 11.4: the audience is frozen at compile time, not at send time). Sources combine: contactIds, raw phones, and useSegment which compiles the broadcast stored segmentFilters. Re-sending the same request is harmless - duplicate addresses are skipped and counted. Only allowed while the broadcast is a draft or scheduled.","operationId":"addBroadcastRecipients","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddBroadcastRecipientsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddBroadcastRecipientsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Add recipients to a broadcast","tags":["broadcasts"]},"get":{"description":"Offset pagination with skip/limit, oldest first (this is a delivery queue, not a history). This endpoint does not accept a cursor.","operationId":"listBroadcastRecipients","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"status","required":false,"in":"query","schema":{"enum":["pending","sent","delivered","read","failed"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastRecipientListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List broadcast recipients","tags":["broadcasts"]}},"/v1/broadcasts/{broadcastId}/schedule":{"post":{"description":"Records a future send time. Requires a non-empty frozen audience and a message or template. The durable runtime moves it to sending when due and never resolves new recipients at delivery time.","operationId":"scheduleBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBroadcastDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Schedule a broadcast over its frozen audience","tags":["broadcasts"]}},"/v1/broadcasts/{broadcastId}/send":{"post":{"description":"Moves the broadcast into the sending state over its already frozen audience; it never resolves new recipients. The durable runtime delivers pending recipients and writes recipient plus broadcast terminal states. Calling this again on an already sending broadcast is a no-op.","operationId":"sendBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start durable broadcast delivery","tags":["broadcasts"]}},"/v1/broadcasts/{broadcastId}/cancel":{"post":{"description":"Cancels a draft, scheduled or sending broadcast. Recipients that were already sent stay sent and recipients that were never attempted stay pending - there is no recipient-level cancelled state, and marking them failed would claim an attempt that never happened. Cancelling an already cancelled broadcast is a no-op; a completed or failed broadcast cannot be cancelled.","operationId":"cancelBroadcast","parameters":[{"name":"broadcastId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Cancel a broadcast","tags":["broadcasts"]}},"/v1/comment-automations":{"get":{"description":"Offset pagination with skip/limit. This endpoint does not accept a cursor. Active rules are evaluated by the durable comment.received worker.","operationId":"listCommentAutomations","parameters":[{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":25}},{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the records of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List comment automations","tags":["comment-automations"]},"post":{"description":"Stores an active-by-default rule. The durable comment.received worker matches eligible Instagram/Facebook comments, sends a private reply through the provider adapter and records a terminal log.","operationId":"createCommentAutomation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentAutomationDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a comment automation","tags":["comment-automations"]}},"/v1/comment-automations/{automationId}":{"get":{"operationId":"getCommentAutomation","parameters":[{"name":"automationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a comment automation","tags":["comment-automations"]},"patch":{"description":"Only provided fields change; sending null clears a nullable field. profileId and accountId are immutable. isActive controls whether the durable comment.received worker can match the rule.","operationId":"updateCommentAutomation","parameters":[{"name":"automationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCommentAutomationDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a comment automation","tags":["comment-automations"]},"delete":{"description":"Permanently deletes the rule and its execution log rows (the log table cascades). There is no soft-delete window in this API version.","operationId":"deleteCommentAutomation","parameters":[{"name":"automationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a comment automation","tags":["comment-automations"]}},"/v1/comment-automations/{automationId}/logs":{"get":{"description":"Lists rule match/private-reply outcomes written by the durable comment.received worker. Offset pagination with skip/limit; no cursor.","operationId":"listCommentAutomationLogs","parameters":[{"name":"automationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"status","required":false,"in":"query","schema":{"enum":["pending","sent","failed","skipped","gated"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentAutomationLogListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List durable comment automation execution logs","tags":["comment-automations"]}},"/v1/sequences":{"get":{"operationId":"listSequences","parameters":[{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["draft","active","paused"]}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the sequences of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List sequences","tags":["sequences"]},"post":{"description":"The sequence is always created as a draft. Contacts can only be enrolled after activateSequence, which requires at least one step and content on every step.","operationId":"createSequence","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSequenceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}":{"get":{"operationId":"getSequence","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a sequence with its steps","tags":["sequences"]},"patch":{"description":"Only provided fields change; sending null clears a nullable field. Sending steps replaces the whole list and is only allowed while the sequence is a draft.","operationId":"updateSequence","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSequenceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a sequence","tags":["sequences"]},"delete":{"description":"Permanently deletes the sequence together with its steps and every enrollment, including active ones. There is no soft-delete window in this API version.","operationId":"deleteSequence","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}/activate":{"post":{"description":"Requires at least one step and content (message or template) on every step. Idempotent: activating an already active sequence returns it unchanged.","operationId":"activateSequence","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Activate a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}/pause":{"post":{"description":"New enrollments are refused while paused. Existing enrollments keep their status and their due date; nothing advances them in this API version anyway.","operationId":"pauseSequence","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}/enroll":{"post":{"description":"Per-contact outcomes are reported in enrolled[], skipped[] and errors[] under a 200. A contact that already has a live enrollment is skipped, never reset: resetting would resend step 1 to someone in the middle of the drip. The sequence must be active.","operationId":"enrollContacts","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollContactsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollContactsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Enroll contacts into a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}/enroll/{contactId}":{"delete":{"description":"Ends the live enrollment (status becomes exited with exitReason manual). The row is kept so the progress history survives and the contact can be enrolled again later.","operationId":"unenrollContact","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}},{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnenrollContactResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Unenroll a contact from a sequence","tags":["sequences"]}},"/v1/sequences/{sequenceId}/enrollments":{"get":{"operationId":"listSequenceEnrollments","parameters":[{"name":"sequenceId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","completed","exited","paused"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceEnrollmentListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List a sequence's enrollments","tags":["sequences"]}},"/v1/workflows":{"get":{"operationId":"listWorkflows","parameters":[{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["draft","active","paused"]}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"},"description":"If omitted, the workflows of ALL profiles the key can reach are returned."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List workflows","tags":["workflows"]},"post":{"description":"The workflow is always created as a draft with no published version. It can only be triggered after activateWorkflow, which requires at least one node, an entryNodeId and a structurally valid graph.","operationId":"createWorkflow","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}":{"get":{"description":"Returns the WORKING graph — the one being edited. While the workflow is active this is byte-identical to the graph of currentVersion; the API refuses graph edits on an active workflow precisely to keep that true.","operationId":"getWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a workflow with its graph","tags":["workflows"]},"patch":{"description":"Only provided fields change; sending null clears a nullable field. Graph fields (nodes, edges, entryNodeId) are only accepted while the workflow is a draft or paused — pause it first. Updating never creates a version.","operationId":"updateWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a workflow","tags":["workflows"]},"delete":{"description":"Permanently deletes the workflow together with every version, execution and execution event, including executions that have not finished. There is no soft-delete window in this API version.","operationId":"deleteWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}/activate":{"post":{"description":"Publishes the working graph as a new version and makes it live. Requires at least one node, an entryNodeId and a structurally valid graph. Idempotent: activating a workflow whose graph is already the live version returns it unchanged and does NOT create a second version.","operationId":"activateWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Activate a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}/pause":{"post":{"description":"New triggers are refused while paused, and the graph becomes editable again. Executions that already exist are left exactly as they are; nothing advances them in this API version anyway.","operationId":"pauseWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}/duplicate":{"post":{"description":"Copies the working graph into a new draft workflow named '<name> (copy)'. Version history and executions are NOT copied: they record what the original published and what actually ran, and attributing them to a workflow that never did either would be false. Takes no request body; rename with updateWorkflow.","operationId":"duplicateWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Duplicate a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}/executions":{"get":{"description":"Every execution carries the version it was pinned to when triggered. The durable worker advances waiting executions through running to a terminal status without switching their pinned graph.","operationId":"listWorkflowExecutions","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["running","waiting","completed","exited","failed"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExecutionListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List a workflow's durable executions","tags":["workflows"]},"post":{"description":"Creates a waiting execution pinned to the workflow's current version and entry node. The durable worker claims and advances it; message/send_message nodes send their text through the linked account to conversationId (or to as fallback) behind an at-most-once delivery fence. Later edits or restores never move an existing execution to another version. The workflow must be active.","operationId":"triggerWorkflow","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExecutionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create and enqueue a durable workflow execution","tags":["workflows"]}},"/v1/workflows/{workflowId}/executions/{executionId}/events":{"get":{"description":"Events are returned oldest first. triggerWorkflow writes execution.created; the durable worker appends node.started, node.completed and a terminal execution event with a monotonically increasing sequence.","operationId":"listWorkflowExecutionEvents","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExecutionEventListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List an execution's ordered runtime events","tags":["workflows"]}},"/v1/workflows/{workflowId}/versions":{"get":{"description":"Newest version first. A version is created when a workflow is activated with a graph that differs from the live one, and when a version is restored. Updating a workflow does NOT create a version. Graphs are omitted here; fetch one with getWorkflowVersion.","operationId":"listWorkflowVersions","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"skip","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":100000}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowVersionListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List a workflow's versions","tags":["workflows"]}},"/v1/workflows/{workflowId}/versions/{version}":{"get":{"description":"Returns the frozen graph of that version — the exact graph every execution pinned to it will run. A version is never modified after it is written.","operationId":"getWorkflowVersion","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowVersionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve one version of a workflow","tags":["workflows"]}},"/v1/workflows/{workflowId}/versions/{version}/restore":{"post":{"description":"Copies that version's graph back onto the working graph and records it as a NEW version whose restoredFromVersion names the source; version numbers never move backwards. EXECUTIONS ALREADY CREATED ARE NOT AFFECTED — each one keeps running the version it was pinned to. The status is unchanged: restoring a paused workflow leaves it paused. Idempotent on graph identity, like activateWorkflow.","operationId":"restoreWorkflowVersion","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"version","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Restore a workflow version","tags":["workflows"]}},"/v1/platforms":{"get":{"operationId":"listPlatforms","parameters":[{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Optional owned active account whose provider-backed capability is requested."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlatformCapabilityDto"}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List platform capabilities","tags":["platforms"]}},"/v1/webhooks/settings":{"get":{"operationId":"getWebhookSettings","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSettingsListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List webhook settings","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"},"post":{"operationId":"createWebhookSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookSettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSettingsCreateResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create webhook settings","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"},"put":{"operationId":"updateWebhookSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookSettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSettingsMutationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update webhook settings","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"},"delete":{"operationId":"deleteWebhookSettings","parameters":[{"name":"id","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete webhook settings","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks/logs":{"get":{"operationId":"getWebhookLogs","parameters":[{"name":"eventId","required":false,"in":"query","description":"Filter by stable webhook event ID","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"webhookId","required":false,"in":"query","description":"Filter by webhook configuration ID","schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"status","required":false,"in":"query","description":"Filter by delivery outcome","schema":{"type":"string","enum":["success","failed"]}},{"name":"skip","required":false,"in":"query","description":"Number of logs to skip","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}},{"name":"limit","required":false,"in":"query","description":"Maximum number of logs to return","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanonicalWebhookLogsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List webhook delivery logs","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks/test":{"post":{"description":"Zumpo delivers asynchronously; a successful response means queued, not delivered.","operationId":"testWebhook","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanonicalWebhookTestDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Queue a test webhook delivery","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks":{"post":{"operationId":"createWebhookEndpoint","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreatedDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a webhook endpoint","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"},"get":{"operationId":"listWebhookEndpoints","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["id","-id"],"default":"id"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List webhook endpoints","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks/{id}/logs":{"get":{"operationId":"listWebhookDeliveries","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["created_at","-created_at"],"default":"-created_at"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryLogListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List webhook delivery attempts","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks/{id}/test":{"post":{"operationId":"sendWebhookTest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send a test webhook delivery","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/webhooks/{id}":{"get":{"operationId":"getWebhookEndpoint","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a webhook endpoint","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"},"delete":{"operationId":"deleteWebhookEndpoint","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a webhook endpoint","tags":["webhooks"],"x-zumpo-api-key-scope":"full-profile-coverage"}},"/v1/connect/allowed-redirects":{"get":{"operationId":"listAllowedRedirects","parameters":[{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["redirect_uri","-redirect_uri"],"default":"redirect_uri"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedRedirectListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the OAuth redirect URIs registered for this team","tags":["connect"]},"post":{"description":"The URI is stored normalized and matched exactly when a connect flow starts. Scheme and host are lowercased; the path stays case-sensitive.","operationId":"createAllowedRedirect","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAllowedRedirectDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedRedirectDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Register an OAuth redirect URI","tags":["connect"]},"delete":{"operationId":"deleteAllowedRedirect","parameters":[{"name":"redirectUri","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove a registered OAuth redirect URI","tags":["connect"]}},"/v1/connect/bluesky/credentials":{"post":{"description":"Connect a Bluesky account using identifier (handle or email) and an app password.","operationId":"connectBlueskyCredentials","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskyCredentialsRequestDto"}}}},"responses":{"200":{"description":"Bluesky connected successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskyCredentialsResponseDto"}}}},"400":{"description":"Invalid request - missing fields or invalid state format"},"401":{"description":"Unauthorized"},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Internal error"},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect Bluesky account","tags":["connect"]}},"/v1/connect/shopify":{"get":{"description":"Starts an OAuth flow for a single-label myshopify.com store with read_content and write_content. Reconnecting the same store refreshes the existing account credential in place.","operationId":"getShopifyConnectUrl","parameters":[{"name":"redirect_url","required":false,"in":"query","description":"An exact allowlisted post-connect redirect URL or a relative path.","schema":{"type":"string","format":"uri","minLength":1,"maxLength":2048}},{"name":"shop","required":true,"in":"query","description":"A bare Shopify store label or its canonical single-label myshopify.com domain.","schema":{"type":"string","pattern":"^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[Mm][Yy][Ss][Hh][Oo][Pp][Ii][Ff][Yy]\\.[Cc][Oo][Mm])?$","minLength":1,"maxLength":77}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyOAuthAuthorizeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a Shopify OAuth connection URL","tags":["connect"],"x-resource-group":"accounts"}},"/v1/connect/shopify/token":{"post":{"description":"Validates a merchant-owned Admin API token with write_content (which includes content read access) or write_online_store_pages before storing it. Reconnecting the same store replaces the token on the existing account.","operationId":"connectShopifyWithToken","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyTokenConnectDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyTokenConnectResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect a Shopify store with a custom-app Admin token","tags":["connect"]}},"/v1/connect/result":{"post":{"operationId":"readConnectAttempt","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAttemptDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAttemptResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read an OAuth result without exchanging the code again","tags":["connect"]}},"/v1/connect/authorize":{"post":{"operationId":"authorizeConnect","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAuthorizeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectAuthorizeResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start an OAuth connect flow","tags":["connect"]}},"/v1/connect/complete":{"post":{"operationId":"completeConnect","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCompleteDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectCompleteResponseDto"},{"$ref":"#/components/schemas/ConnectPendingResponseDto"}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete an OAuth connect flow","tags":["connect"]}},"/v1/connect/pending/{id}/resources":{"get":{"description":"Pages the immutable provider resource snapshot captured when the pending connection was created. This endpoint does not call the provider.","operationId":"listPendingConnectionResources","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"},"description":"Opaque cursor returned by this pending connection resource list."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectPendingResourcePageDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List resources stored for a pending connection","tags":["connect"]}},"/v1/connect/pending/{id}/complete":{"post":{"operationId":"completePendingConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectPendingCompleteDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCompleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select a resource for a pending connection","tags":["connect"]}},"/v1/connect/credentials":{"post":{"operationId":"connectCredentials","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCredentialsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectCompleteResponseDto"},{"$ref":"#/components/schemas/ConnectPendingResponseDto"}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect an account with direct credentials","tags":["connect"]}},"/v1/connect/googlebusiness/locations":{"get":{"description":"Lists the bounded immutable location snapshot captured by Zumpo during OAuth completion. Direct tempToken, provider search, raw filters, and X-Connect-Token authentication are not supported.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"listGoogleBusinessLocations","parameters":[{"name":"pendingDataToken","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessLocationsCompatibilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List stored Google Business locations","tags":["connect"]}},"/v1/connect/googlebusiness/select-location":{"post":{"description":"Completes a Zumpo pending Google Business connection. The compatibility subset accepts a pendingDataToken backed by a tenant-scoped pending row and an optional redirect_url returned with the connection params appended; tempToken and X-Connect-Token are not implemented.\n\nTEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so a Google Business account cannot be connected in live mode and this operation fails closed there rather than returning partial data. Setting a live-mode environment flag does not change this. Use test mode for this vertical.","operationId":"selectGoogleBusinessLocation","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessSelectLocationCompatibilityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessSelectLocationCompatibilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select a stored Google Business location","tags":["connect"]}},"/v1/connect/{platform}/ads":{"get":{"description":"Starts a dedicated Google Ads or TikTok for Business OAuth connection. Zumpo deliberately requires an exact allowlisted HTTPS redirect_url and does not copy posting-account credentials or create parent links.","operationId":"connectAds","parameters":[{"name":"platform","required":true,"in":"path","schema":{"type":"string","enum":["googleads","tiktok"]}},{"name":"redirect_url","required":true,"in":"query","schema":{"type":"string","format":"uri"},"description":"Exact team-allowlisted HTTPS OAuth return URL."},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectUrlCompatibilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Start a separate-token ads OAuth flow","tags":["connect"]}},"/v1/connect/{platform}":{"get":{"description":"Zernio-compatible subset backed by Zumpo OAuth state. Requires headless=true and an exact allowlisted redirect_url; hosted selection redirects are not implemented.","operationId":"getConnectUrl","parameters":[{"name":"platform","required":true,"in":"path","schema":{"type":"string","enum":["facebook","instagram","linkedin","twitter","tiktok","youtube","threads","reddit","pinterest","bluesky","googlebusiness","telegram","snapchat","discord","slack","whatsapp","googleads","tiktokads"]}},{"name":"loginMethod","required":false,"in":"query","schema":{"type":"string","enum":["instagram_login","facebook_login"],"default":"instagram_login"},"description":"Instagram only. Selects Instagram Login or Facebook Login."},{"name":"headless","required":true,"in":"query","schema":{"type":"boolean","enum":[true]}},{"name":"redirect_url","required":true,"in":"query","schema":{"type":"string","format":"uri"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectUrlCompatibilityResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a headless OAuth connect URL","tags":["connect"]},"post":{"description":"Exchanges a code only when the path platform and profileId match the immutable Zumpo OAuth state. Mismatches leave the state available for a correct retry.","operationId":"handleOAuthCallback","parameters":[{"name":"platform","required":true,"in":"path","schema":{"type":"string","enum":["facebook","instagram","linkedin","twitter","tiktok","youtube","threads","reddit","pinterest","bluesky","googlebusiness","telegram","snapchat","discord","slack","whatsapp","googleads","tiktokads"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCallbackCompatibilityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectCompleteResponseDto"},{"$ref":"#/components/schemas/ConnectPendingCompatibilityResponseDto"}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete a bound headless OAuth callback","tags":["connect"]}},"/v1/connect/discord":{"post":{"description":"Dedicated compatibility facade over the real Zumpo bound OAuth callback. It accepts state, code and profileId, fixes the platform to Discord, and returns a tenant-scoped pendingDataToken when channel selection is required. Select the channel through the authenticated pending-connection endpoints; this route does not expose provider tokens or accept an unbound guild/channel pair.","operationId":"connectDiscordChannel","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCallbackCompatibilityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectCompleteResponseDto"},{"$ref":"#/components/schemas/ConnectPendingCompatibilityResponseDto"}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete a bound Discord OAuth callback","tags":["connect"]}},"/v1/connect/slack":{"post":{"description":"Dedicated compatibility facade over the real Zumpo bound OAuth callback. It accepts state, code and profileId, fixes the platform to Slack, and returns a tenant-scoped pendingDataToken when channel selection is required. Select the channel through the authenticated pending-connection endpoints; this route does not expose provider tokens or silently reuse another account credential.","operationId":"connectSlackChannel","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCallbackCompatibilityDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectCompleteResponseDto"},{"$ref":"#/components/schemas/ConnectPendingCompatibilityResponseDto"}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete a bound Slack OAuth callback","tags":["connect"]}},"/v1/connect/facebook/select-page":{"get":{"description":"Returns the Facebook Pages available during a short-lived OAuth flow.","operationId":"listFacebookPages","parameters":[{"name":"tempToken","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}},{"name":"X-Connect-Token","in":"header","description":"Short-lived connect token from the OAuth redirect.","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPageSelectionListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Facebook pages","tags":["connect"]},"post":{"description":"Complete the connection using the selected Facebook Page.","operationId":"selectFacebookPage","parameters":[{"name":"X-Connect-Token","in":"header","description":"Short-lived connect token from the OAuth redirect.","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPageSelectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacebookPageSelectionResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select Facebook page","tags":["connect"]}},"/v1/connect/instagram/select-account":{"get":{"description":"Lists the immutable Facebook Page selection bound to a short-lived Zumpo pending handle. Provider access tokens are never returned.","operationId":"listInstagramPages","parameters":[{"name":"tempToken","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}},{"name":"X-Connect-Token","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramFacebookLoginPagesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Pages with a linked Instagram account","tags":["connect"]},"post":{"operationId":"selectInstagramAccount","parameters":[{"name":"X-Connect-Token","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramFacebookLoginSelectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramFacebookLoginSelectionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select the Page whose Instagram account to connect","tags":["connect"]}},"/v1/connect/linkedin/organizations":{"get":{"description":"Fetch organization details for a bounded pending OAuth flow.","operationId":"listLinkedInOrganizations","parameters":[{"name":"orgIds","required":true,"in":"query","schema":{"type":"string"}},{"name":"tempToken","required":true,"in":"query","schema":{"type":"string"}},{"name":"X-Connect-Token","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List LinkedIn orgs","tags":["connect"]}},"/v1/connect/linkedin/select-organization":{"post":{"description":"Complete the pending LinkedIn connection as a person or organization.","operationId":"selectLinkedInOrganization","parameters":[{"name":"X-Connect-Token","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select LinkedIn org","tags":["connect"]}},"/v1/connect/pinterest/select-board":{"get":{"description":"Returns the Pinterest boards available during a short-lived headless OAuth flow.","operationId":"listPinterestBoardsForSelection","parameters":[{"name":"tempToken","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192},"description":"Temporary Pinterest access token from the OAuth callback."},{"name":"profileId","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"X-Connect-Token","in":"header","description":"Short-lived connect token from the OAuth redirect.","required":true,"schema":{"type":"string","minLength":1,"maxLength":2048}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardSelectionResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Pinterest boards","tags":["connect"]},"post":{"description":"Complete the Pinterest connection flow by saving the selected board.","operationId":"selectPinterestBoard","parameters":[{"name":"X-Connect-Token","in":"header","description":"Short-lived connect token from the OAuth redirect.","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardSelectionCompleteRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinterestBoardSelectionCompleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select Pinterest board","tags":["connect"]}},"/v1/connect/pending-data":{"get":{"description":"Atomically reads a one-time, ten-minute LinkedIn organization, Pinterest board, or Snapchat profile selection projection. Provider access and refresh tokens remain sealed and are never returned by this endpoint.","operationId":"getPendingOAuthData","parameters":[{"name":"token","required":true,"in":"query","description":"Opaque pendingDataToken from the OAuth completion redirect.","schema":{"type":"string","minLength":43,"maxLength":43,"pattern":"^[A-Za-z0-9_-]{43}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingOAuthDataResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Get pending OAuth data","tags":["connect"],"x-resource-group":"public"}},"/v1/connect/snapchat/select-profile":{"get":{"description":"Returns the Snapchat Public Profile available during a short-lived headless OAuth flow.","operationId":"listSnapchatProfiles","parameters":[{"name":"tempToken","required":true,"in":"query","schema":{"type":"string","minLength":1,"maxLength":8192}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"X-Connect-Token","in":"header","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapchatProfileSelectionResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Snapchat profiles","tags":["connect"]},"post":{"description":"Completes the Snapchat connection flow with the selected Public Profile.","operationId":"selectSnapchatProfile","parameters":[{"name":"X-Connect-Token","in":"header","required":false,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapchatProfileSelectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapchatProfileSelectionCompleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Select Snapchat profile","tags":["connect"]}},"/v1/connect/telegram":{"post":{"description":"Connects a Telegram channel or group after verifying that the platform bot is an administrator.","operationId":"initiateTelegramConnect","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramConnectDirectRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramConnectDirectResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect Telegram directly","tags":["connect"]}},"/v1/connect/whatsapp/embedded-signup":{"post":{"description":"Consumes the one-time code returned by Meta Embedded Signup without a redirect URI.","operationId":"connectWhatsAppEmbeddedSignup","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppEmbeddedSignupRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConnectResponseDto"}}}},"400":{"description":"Invalid Embedded Signup input"},"401":{"description":"Invalid or expired Meta code"},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"WhatsApp number ownership or identity conflict"},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect WhatsApp from Embedded Signup","tags":["connect"],"x-resource-group":"accounts"}},"/v1/connect/whatsapp/credentials":{"post":{"operationId":"connectWhatsAppCredentials","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCredentialsConnectRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConnectResponseDto"}}}},"400":{"description":"Invalid WhatsApp credential input"},"401":{"description":"Invalid or expired Meta access token"},"403":{"description":"Profile or Meta permission denied"},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"WhatsApp number ownership conflict"},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect WhatsApp via credentials","tags":["connect"]}},"/v1/connect/whatsapp/select-phone-number":{"get":{"operationId":"listWhatsAppPhoneNumbers","parameters":[{"name":"tempToken","required":true,"in":"query","schema":{"type":"string"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}},{"name":"X-Connect-Token","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":2048}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPhoneNumberListResponseDto"}}}},"400":{"description":"Missing or invalid list parameters"},"401":{"description":"Invalid or expired temporary token"},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Failed to fetch phone numbers"},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List numbers for selection","tags":["connect"]},"post":{"operationId":"completeWhatsAppPhoneSelection","parameters":[{"name":"X-Connect-Token","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":2048}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppPhoneSelectionRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppConnectResponseDto"}}}},"400":{"description":"Invalid WhatsApp phone selection"},"401":{"description":"Invalid or expired temporary token"},"403":{"description":"Profile or Meta permission denied"},"404":{"description":"Selected phone number was not found"},"409":{"description":"Selection or number ownership conflict"},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Failed to bind phone number"},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete number selection","tags":["connect"]}},"/v1/posts":{"get":{"operationId":"listPosts","parameters":[{"name":"platform","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"]}}},{"name":"accountId","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},{"name":"profileId","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},{"name":"status","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","enum":["draft","scheduled","queued","publishing","published","partial","failed","cancelled"]}}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["created_at","-created_at","scheduled_for","-scheduled_for"],"default":"-created_at"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string","enum":["scheduled-desc","scheduled-asc","created-desc","created-asc"]},"description":"Zernio-compatible aliases for the supported created/scheduled sort orders. Mutually exclusive with sort."},{"name":"search","required":false,"in":"query","schema":{"type":"string","maxLength":10000},"description":"Case-insensitive literal substring search over post content."},{"name":"source","required":false,"in":"query","schema":{"type":"string","enum":["zernio","external"],"default":"zernio"},"description":"zernio reads posts authored through this API. external reads the provider history reported through POST /v1/posts/sync-external, which lives in its own table and never appears in a zernio read. External rows carry no lifecycle status and no scheduled_for, so status and scheduled sorts are rejected for them."},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100000,"default":1},"description":"One-based compatibility page. Mutually exclusive with cursor; cursor remains the preferred stable pagination mode."},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":25},"description":"Page size. The legacy cursor default remains 25; the bounded maximum is Zernio-compatible."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List posts","tags":["posts"]},"post":{"operationId":"createPost","parameters":[{"name":"Idempotency-Key","in":"header","description":"Five-minute replay key scoped by team and execution mode. Takes precedence over x-request-id, so an SDK retry that reuses the key replays the original response instead of creating a second post.","required":false,"schema":{"type":"string","maxLength":255}},{"name":"x-request-id","in":"header","description":"Five-minute replay key scoped by team and execution mode. Used only when Idempotency-Key is absent.","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_-]{1,200}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostDto"}}}},"responses":{"200":{"description":"Existing post replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostResponseDto"}}}},"201":{"description":"Draft created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostResponseDto"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a post","tags":["posts"]}},"/v1/posts/bulk":{"post":{"description":"Each CSV data row is exactly one POST /v1/posts body; column names match the JSON field names. Always answers 207 when the file was parsed — read the per-row `status`. Whole-request failures (bad file, too many rows) answer 4xx.","operationId":"createPostsBulk","parameters":[{"name":"x-request-id","in":"header","description":"Five-minute replay key. Each row derives its own key as \"<requestId>:<row>\", so replaying the same file replays each row instead of duplicating it.","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_-]{1,200}$"}},{"name":"dryRun","required":false,"in":"query","schema":{"type":"string","enum":["true","false"]},"description":"Validate every row against the real code path and persist nothing. Rows are validated INDEPENDENTLY: two rows that would collide with each other (same account, same content) both pass here but the second one gets 409 for real."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"CSV file. Header columns: content, targets OR platforms, mediaIds, isDraft, publishNow, exactTiming, scheduledFor, timezone, queuedFromProfile, queueId, skipDuplicateCheck. Each row requires non-blank content or at least one mediaId. An empty content cell means the field is ABSENT and is valid only with media. Max 500 data rows."}}}}}},"responses":{"207":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPostsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"415":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create many posts from a CSV file","tags":["posts"]}},"/v1/posts/bulk-upload":{"post":{"description":"Zernio-compatible response projection over the same tenant-scoped create-post validation and idempotency path as POST /v1/posts. Every CSV row is isolated. All-success and all-failure batches return 200; mixed batches return 207.","operationId":"bulkUploadPosts","parameters":[{"name":"x-request-id","in":"header","description":"Five-minute replay key. A deterministic per-row key is derived as \"<requestId>:<row>\".","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_-]{1,200}$"}},{"name":"dryRun","required":false,"in":"query","schema":{"type":"boolean","default":false},"description":"Run every row through the real create path, including tenant, account, media, queue, adapter, replay, and dedup checks, then roll back every write."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","additionalProperties":false,"properties":{"file":{"type":"string","format":"binary","description":"UTF-8 CSV in the multipart part named file. Supported headers are content, platforms, isDraft, publishNow, scheduledFor, timezone, queuedFromProfile, and queueId. platforms is a JSON array using the POST /v1/posts target shape. Unsupported columns reject the whole file with 400; at most 500 data rows and 2 MiB are accepted."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUploadPostsResponseDto"}}}},"207":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUploadPostsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"415":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Bulk upload from CSV","tags":["posts"]}},"/v1/posts/sync-external":{"post":{"description":"PUSH direction: the customer declares posts they published outside zumpo and zumpo stores a read-only mirror. zumpo makes NO provider request here. Idempotency is STATE-based, not request-based: the natural key is (account, platformPostId) and an exact re-submission returns every item as \"unchanged\" and emits no webhooks — the five-minute x-request-id replay fence used by POST /v1/posts does NOT apply. post.external.deleted carries source: 'client_assertion' because the deletion is asserted by you, not observed by zumpo.","operationId":"syncExternalPosts","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncExternalPostsBodyDto"}}}},"responses":{"207":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncExternalPostsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Declare posts published outside zumpo","tags":["posts"]}},"/v1/posts/{id}/recycle":{"post":{"description":"Creates an INDEPENDENT new post from a published one: content, media and targets are copied, the schedule comes from the request. The source post is not modified and the two are not linked afterwards — the link lives only in the post.recycled event. This endpoint itself is a one-shot manual action; automatic weekly/monthly copies are configured separately through the recycling field on POST/PUT /v1/posts.","operationId":"recyclePost","parameters":[{"name":"id","required":true,"in":"path","schema":{"example":"a1b2c3d4e5f6a7b8c9d0e1f2","type":"string"}},{"name":"x-request-id","in":"header","description":"Five-minute replay key scoped by team and execution mode.","required":false,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_-]{1,200}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecyclePostDto"}}}},"responses":{"200":{"description":"Replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecyclePostResponseDto"}}}},"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecyclePostResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Republish a published post as a new post","tags":["posts"]}},"/v1/posts/{postId}":{"put":{"operationId":"updatePost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchPostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a post","tags":["posts"]},"patch":{"deprecated":true,"description":"Deprecated transport alias for PUT /v1/posts/{postId}. Existing raw PATCH clients remain supported.","operationId":"patchPostLegacy","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchPostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a post (legacy PATCH)","tags":["posts"]},"delete":{"operationId":"deletePost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a draft post","tags":["posts"]},"get":{"operationId":"getPost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPostResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a post","tags":["posts"]}},"/v1/posts/{postId}/targets/{targetId}/held-decisions/{decisionId}/resume":{"post":{"operationId":"resumeHeldTarget","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"targetId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"decisionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resume a held post target","tags":["posts"]}},"/v1/posts/{postId}/targets/{targetId}/held-decisions/{decisionId}/cancel":{"post":{"operationId":"cancelHeldTarget","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"targetId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"decisionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Cancel a held post target","tags":["posts"]}},"/v1/posts/{id}/cancel-pending":{"post":{"operationId":"cancelPendingTargets","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Cancel pending targets of a post","tags":["posts"]}},"/v1/posts/{postId}/retry":{"post":{"operationId":"retryPost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryPostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetailResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retry failed targets of a post","tags":["posts"]}},"/v1/posts/{postId}/edit":{"post":{"operationId":"editPost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPostResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Edit a published platform post","tags":["posts"]}},"/v1/posts/{postId}/unpublish":{"post":{"operationId":"unpublishPost","parameters":[{"name":"postId","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"description":"Selects one platform. The original bodyless all-target call remains accepted only as a backward-compatible v1 migration path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpublishPostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpublishPostResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove a published post from its platform","tags":["posts"]}},"/v1/queues":{"get":{"operationId":"listQueues","parameters":[{"name":"profileId","required":false,"in":"query","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["created_at","-created_at"],"default":"-created_at"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueListDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List queues","tags":["queues"]},"post":{"operationId":"createQueue","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQueueDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a queue","tags":["queues"]}},"/v1/queues/{id}":{"get":{"operationId":"getQueue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Retrieve a queue","tags":["queues"]},"patch":{"operationId":"updateQueue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQueueDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a queue","tags":["queues"]},"delete":{"operationId":"deleteQueue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"204":{"description":""},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a queue","tags":["queues"]}},"/v1/queue/slots":{"get":{"operationId":"listQueueSlots","parameters":[{"name":"all","required":false,"in":"query","schema":{"enum":["true","false"],"type":"string"}},{"name":"queueId","required":false,"in":"query","schema":{"type":"string"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/QueueSlotsResponseDto"},{"$ref":"#/components/schemas/QueueSchedulesResponseDto"}]}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List schedules","tags":["queue"]},"post":{"operationId":"createQueueSlot","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQueueScheduleRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueScheduleMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create schedule","tags":["queue"]},"put":{"operationId":"updateQueueSlot","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQueueScheduleRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueScheduleMutationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update schedule","tags":["queue"]},"delete":{"operationId":"deleteQueueSlot","parameters":[{"name":"queueId","required":false,"in":"query","schema":{"type":"string"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueScheduleDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete schedule","tags":["queue"]}},"/v1/queue/preview":{"get":{"operationId":"previewQueue","parameters":[{"name":"count","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"queueId","required":false,"in":"query","schema":{"type":"string"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueSchedulePreviewResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Preview upcoming slots","tags":["queue"]}},"/v1/queue/next-slot":{"get":{"operationId":"getNextQueueSlot","parameters":[{"name":"queueId","required":false,"in":"query","schema":{"type":"string"}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueScheduleNextSlotResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get next available slot","tags":["queue"]}},"/v1/media/upload-direct":{"post":{"description":"Uploads one bounded file and returns a bearer-free signed URL. The durable media-retention worker automatically deletes the object after seven days.","operationId":"uploadMediaDirect","parameters":[],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","additionalProperties":false,"required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file to upload (max 25MB)."},"contentType":{"type":"string","description":"Optional MIME override. The file bytes must match it."}}}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectMediaUploadResponseDto"}}}},"400":{"description":"No file, invalid file, or file too large"},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload media file","tags":["media"],"x-resource-group":"publishing"}},"/v1/media/upload":{"post":{"operationId":"uploadMedia","parameters":[],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}},"video/mp4":{"schema":{"type":"string","format":"binary"}},"video/quicktime":{"schema":{"type":"string","format":"binary"}},"video/webm":{"schema":{"type":"string","format":"binary"}},"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/zip":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload a media file","tags":["media"]}},"/v1/media/presign":{"post":{"description":"Creates a tenant-owned media record and a bounded presigned PUT URL. Complete the upload with POST /v1/media/{id}/complete; this operation does not publish an anonymous temporary public-media lifecycle.","operationId":"getMediaPresignedUrl","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignMediaDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignMediaResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a presigned media upload","tags":["media"],"x-zumpo-sdk-operation-aliases":["presignMedia"]}},"/v1/media/{id}/complete":{"post":{"operationId":"completeMedia","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Complete a presigned media upload","tags":["media"]}},"/v1/media/{id}":{"delete":{"operationId":"deleteMedia","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a media object","tags":["media"]}},"/v1/tools/validate/media":{"post":{"description":"Checks a public media URL with an SSRF-safe HEAD request and a tiny bounded range GET fallback. Redirect targets are revalidated; platform limits come from the selected adapter registry.","operationId":"validateMedia","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateMediaRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateMediaResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Validate media URL","tags":["validate"]}},"/v1/tools/validate/post-length":{"post":{"description":"X uses the official twitter-text weighted algorithm, including t.co URL length and Unicode weights. Other counts use JavaScript string length; limits come from the selected adapter registry capabilities.","operationId":"validatePostLength","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePostLengthRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePostLengthResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Validate weighted post length across platforms","tags":["validate"]}},"/v1/tools/validate/post":{"post":{"description":"Canonical callers use the required platforms array. The former single-platform body remains accepted during migration and is documented on the deprecated /v1/validate/post alias.","operationId":"validatePost","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePostDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatePostResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Validate a post against platform rules","tags":["validate"]}},"/v1/validate/post":{"post":{"deprecated":true,"description":"Deprecated transport alias for POST /v1/tools/validate/post.","operationId":"validatePostLegacy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyValidatePostRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyValidatePostResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Validate a post against platform rules (legacy route)","tags":["validate"]}},"/v1/status":{"get":{"operationId":"getStatus","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Public platform status page","tags":["status"]}},"/v1/logs":{"get":{"description":"Publish attempts, NOT a ledger of the API requests you made. The only writer is the publish worker, which appends one row per post target whose provider call produced exactly one observation. Requests you send to this API are not recorded here, and neither is connection, webhook or messaging activity. CONSTANT FIELDS: method, path and status are written as \"POST\", \"/v1/posts\" and 202 on every row - they name the call that created the post, not the attempt being logged, so filtering or grouping by them separates nothing. The fields that actually vary per row are id, requestId (the idempotency key of the post being published, which is what you correlate on), platform, upstreamStatus, upstreamError, durationMs, attempts and createdAt. FILTERS: platform, request_id, from, to and days narrow the result; they compose as an intersection. THESE FIVE ARE THE ONLY FILTERS, and any other query parameter is REJECTED with 400 unknown_parameter rather than ignored - so a filter you send is either applied or named back to you in the error, never silently dropped. Pagination parameters (skip, page, offset) are refused with their own code, because this endpoint paginates with limit and cursor. RETENTION: rows are kept for 30 days and anything older is deleted by partition retention, so this endpoint is a rolling window, not a full archive. Export what you need to keep. \"days\" therefore has no default and no value above 30: omitting it returns every row still retained, and a longer window is refused with 400 invalid_days rather than accepted and answered from data that no longer exists. Retention drops whole monthly partitions, so a row slightly older than 30 days may still be present; 30 days is the guarantee, not the maximum age you will ever observe.","operationId":"listLogs","parameters":[{"name":"days","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":30},"description":"Trailing window in days (createdAt >= now() - days). No default: omitting it searches every row still retained. The maximum is 30 because rows are deleted after 30 days; a larger value is refused with 400 invalid_days instead of returning a window the data cannot fill. Combines with \"from\" as an intersection, so the effective lower bound is the later of the two."},{"name":"to","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Exclusive upper bound (createdAt < value), RFC 3339 UTC."},{"name":"from","required":false,"in":"query","schema":{"type":"string","format":"date-time"},"description":"Inclusive lower bound (createdAt >= value), RFC 3339 UTC."},{"name":"request_id","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":255},"description":"Correlation id: returns every publish attempt spawned by one create-post request. This is the idempotency key of the post, the value carried in the requestId response field."},{"name":"platform","required":false,"in":"query","schema":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","all"]},"description":"Filter by platform. \"all\" applies no filter. Rows whose platform is unknown (null) are excluded whenever a concrete platform is given."},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestLogListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List provider publish attempts","tags":["logs"]}},"/v1/usage":{"get":{"description":"Returned from the accounting ledger of your own consumption, and this ledger is a LOWER BOUND: it can undercount, it NEVER overcounts. The three cases that can drop a row of the ledger are listed ONE BY ONE in the `unitsUsed` description; start there if you are reconciling. The counters are PER PROFILE: if the same platform account is linked to more than one profile in the same team, each profile sees ONLY ITS OWN consumption; the spend of a profile outside the scope of the key DOES NOT ENTER the response. On shared pool models a \"remaining\" number IS NOT RETURNED: because the pool is shared across all tenants, a per-team remainder computation would promise a capacity that does not exist, and the real remainder of the pool would leak cross-tenant traffic. This endpoint enforces no quota; it only makes the accounting visible. The response carries EVERY account in scope and is not silently truncated: if the scope ceiling is exceeded the request returns 400 with `account_scope_too_large`, and the way out is a more narrowly scoped API key.","operationId":"getUsage","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSnapshotDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Quota usage snapshot for the current UTC day","tags":["usage"]}},"/v1/usage-stats":{"get":{"deprecated":true,"description":"Deprecated path alias of a bare GET /v1/usage call. It returns the same durable snapshot from the tenant, mode, account, and profile-scoped quota ledger. Zumpo has no cached external subscription snapshot, so reconcile does not change the read; this compatibility endpoint does not invent plan or payment fields that are not present in local durable data.","operationId":"getUsageStats","parameters":[{"name":"reconcile","required":false,"in":"query","schema":{"type":"boolean"},"description":"Accepted for target compatibility. The local quota ledger is read directly on every request and therefore has no cached plan state to reconcile."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSnapshotDto"}}}},"400":{"description":"Invalid or unknown query parameter"},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get quota usage snapshot","tags":["usage"],"x-resource-group":"billing"}},"/v1/billing":{"get":{"description":"The PREPAID balance of the calling team. Amounts are INTEGER micro-USD; the scale is DECLARED through `microsPerUnit`, because for X the unit price is BELOW a cent ($0.015) and a cent based integer could not have represented that item at all. A team that has NEVER TOPPED UP gets a zero balance, NOT a 404: the balance is the sum of the ledger and the sum of an empty ledger is zero; the information \"no movement ever happened\" is carried by `updatedAt: null`. The balance CAN also be NEGATIVE - escrow reservation is deliberately absent and concurrent publishes can produce a bounded overdraw. WHAT HAPPENS IF THE BALANCE IS NOT ENOUGH, and THE ASYMMETRY: publishing stops only on METERED platforms (today the single item is X). None of the other publish platforms are metered, so on them publishing is NEVER blocked and nothing is deducted from the balance. Both lists are in the response (`insufficientBalance`) and together they cover ALL generic publish platforms; Ads/Blog account platforms are not in these publish lists; the error code that stops it is there as well (`errorCode`). A ZERO BALANCE DOES NOT MEAN \"exempt\": a team that has never topped up CANNOT publish on a metered platform. Whether the rule is enforced TODAY is written in a separate field (`enforcement`); we do not declare an unenforced rule as if it were in force. This endpoint DOES NOT RETURN PAYMENT METHOD, CARD, INVOICE, collection history or the Stripe customer id.","operationId":"getBilling","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Prepaid balance and the insufficient-balance rule","tags":["billing"]}},"/v1/billing/x-pricing":{"get":{"description":"The per-operation tariff of X publishes, machine-readable (PRD \"16. Faturalandirma\" -> transparency bar). The numbers come from the SAME expression as the value actually deducted on the publish path; that the declared price and the charged price cannot diverge is the sole reason this endpoint exists. Amounts are INTEGER micro-USD (`microsPerUnit`), because $0.015 cannot be represented exactly in floating point and the sum of thousands of rows drifts. THERE ARE TWO TARIFFS and there is more than a 13-FOLD difference between them; the link detection that determines which one applies is DECLARED under `rule`. The detector is BROAD and the direction is DELIBERATE: a narrow detector under-bills us and we pay the difference, a broad detector may charge the customer too much but it is VISIBLE - the name of the applied tariff is written both into the metadata field of the billable event and defined here, so the customer CAN DISPUTE it. `rule.examples` shows the rule with runnable examples and does not hide the accepted false positive class. There is NO metered platform BESIDES X; publishing on other platforms is not billed (see `GET /v1/billing`).","operationId":"getXApiPricing","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XPricingDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Machine-readable X (twitter) pricing and the tariff rule","tags":["billing"]}},"/v1/billing/checkout":{"post":{"description":"Starts a top-up of the PREPAID balance and returns the Stripe Checkout address the customer is redirected to. THIS ENDPOINT DOES NOT CHANGE THE BALANCE: the balance increases only after the payment completes, through the Stripe signed webhook. So calling this endpoint twice opens two sessions but the customer earns credit only for the session(s) they actually paid for. PANEL-ONLY: it cannot be called with an API key (403 actor_not_allowed); the billing:manage permission is required; it is open to the owner, admin and billing_admin roles. If Stripe is not configured in this deployment the endpoint returns 404 - so that the declaration and the behavior cannot diverge, the endpoint of a configuration that does not exist does not exist either.","operationId":"createBillingCheckout","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingCheckoutDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutSessionDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Start a Stripe Checkout session to top up the prepaid balance","tags":["billing"]}},"/v1/incoming/telegram/{bindingId}":{"post":{"operationId":"receiveTelegramIncoming","parameters":[{"name":"bindingId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Receive a signed Telegram incoming event","tags":["incoming"]}},"/v1/analytics":{"get":{"description":"Reads each published Pinterest, X, Facebook, Instagram or Threads target through its connected account. Only provider-backed metrics are returned; unsupported fields are omitted instead of being filled with invented zeroes.","operationId":"getAnalytics","parameters":[{"name":"postId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnalyticsDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"504":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read metrics for one published post","tags":["analytics"]}},"/v1/analytics/best-time":{"get":{"description":"Groups complete provider-backed engagement snapshots by publication weekday and UTC hour. Returns an empty slots array until honest coverage exists. Without fromDate/toDate the endpoint reads a default 180-day publication window. The requested fromDate/toDate range cannot exceed 365 days. A window matching more than 50000 underlying rows is refused with 400 analytics_window_too_large rather than aggregated from a truncated set; narrow it by raising fromDate or by adding a platform, profileId or accountId filter.","operationId":"getBestTimeToPost","parameters":[{"name":"source","required":false,"in":"query","schema":{"default":"all","enum":["all","late","external"],"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","googlebusiness","snapchat","mastodon"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BestTimeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get best times to post","tags":["analytics"]}},"/v1/analytics/content-decay":{"get":{"description":"Calculates observed engagement accumulation from durable cumulative snapshots. Sparse or incomplete histories are omitted rather than converted to zero. Without fromDate/toDate the endpoint reads a default 180-day publication window. The requested fromDate/toDate range cannot exceed 365 days. A window matching more than 50000 underlying rows is refused with 400 analytics_window_too_large rather than aggregated from a truncated set; narrow it by raising fromDate or by adding a platform, profileId or accountId filter.","operationId":"getContentDecay","parameters":[{"name":"source","required":false,"in":"query","schema":{"default":"all","enum":["all","late","external"],"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","googlebusiness","snapchat","mastodon"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentDecayResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get content performance decay","tags":["analytics"]}},"/v1/analytics/post-timeline":{"get":{"description":"Returns the latest durable provider metrics for each UTC day. Internal post IDs, external-post IDs and provider post IDs are resolved within the caller scope.","operationId":"getPostTimeline","parameters":[{"name":"toDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"postId","required":true,"in":"query","schema":{"minLength":1,"maxLength":512,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTimelineResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get post analytics timeline","tags":["analytics"]}},"/v1/analytics/posting-frequency":{"get":{"description":"Groups fully covered UTC calendar weeks by platform and publication count. Incomplete weeks are omitted instead of lowering their averages with invented zeroes. Without fromDate/toDate the endpoint reads a default 180-day publication window. The requested fromDate/toDate range cannot exceed 365 days. A window matching more than 50000 underlying rows is refused with 400 analytics_window_too_large rather than aggregated from a truncated set; narrow it by raising fromDate or by adding a platform, profileId or accountId filter.","operationId":"getPostingFrequency","parameters":[{"name":"source","required":false,"in":"query","schema":{"default":"all","enum":["all","late","external"],"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","googlebusiness","snapchat","mastodon"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostingFrequencyResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get frequency vs engagement","tags":["analytics"]}},"/v1/analytics/daily-metrics":{"get":{"description":"Returns durable publication counts for Zumpo and imported external posts. Provider engagement fields are omitted because Zumpo does not persist historical metric snapshots. Without fromDate/toDate the endpoint reads a default 180-day publication window. The requested fromDate/toDate range cannot exceed 365 days. A window matching more than 50000 underlying rows is refused with 400 analytics_window_too_large rather than aggregated from a truncated set; narrow it by raising fromDate or by adding a platform, profileId or accountId filter.","operationId":"getDailyMetrics","parameters":[{"name":"attribution","required":false,"in":"query","schema":{"default":"publish","enum":["publish","received"],"type":"string"}},{"name":"source","required":false,"in":"query","schema":{"default":"all","enum":["all","late","external"],"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"fromDate","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","googlebusiness","snapchat","mastodon"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyMetricsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get daily publication metrics","tags":["analytics"]}},"/v1/analytics/inbox/volume":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. Max date range is 365 days.","operationId":"getInboxVolume","parameters":[{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"source","required":false,"in":"query","schema":{"enum":["human","workflow","sequence","broadcast","comment_automation","api","contact","platform"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxVolumeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get inbox messaging volume","tags":["inbox-analytics"],"x-resource-group":"analytics"}},"/v1/analytics/inbox/heatmap":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. Buckets are sparse and use UTC; dow is 1 Monday through 7 Sunday.","operationId":"getInboxHeatmap","parameters":[{"name":"action","required":false,"in":"query","schema":{"default":"all","enum":["message.received","message.sent","message.read","all"],"type":"string"}},{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"source","required":false,"in":"query","schema":{"enum":["human","workflow","sequence","broadcast","comment_automation","api","contact","platform"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxHeatmapResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get day by hour inbox heatmap","tags":["inbox-analytics"],"x-resource-group":"analytics"}},"/v1/analytics/inbox/source-breakdown":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. Only proven platform and api lineage rows are returned.","operationId":"getInboxSourceBreakdown","parameters":[{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSourceBreakdownResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get inbox source breakdown","tags":["inbox-analytics"],"x-resource-group":"analytics"}},"/v1/analytics/inbox/response-time":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. A sample exists only when the same retained conversation has a received event followed by a sent event.","operationId":"getInboxResponseTime","parameters":[{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResponseTimeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get inbox response-time stats","tags":["inbox-analytics"],"x-resource-group":"analytics"}},"/v1/analytics/inbox/top-accounts":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. Account labels come from the current account row or the retained event projection.","operationId":"getInboxTopAccounts","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"source","required":false,"in":"query","schema":{"enum":["human","workflow","sequence","broadcast","comment_automation","api","contact","platform"],"type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxTopAccountsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get top accounts by inbox volume","tags":["inbox-analytics"],"x-resource-group":"analytics"}},"/v1/analytics/inbox/conversations":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. Pagination and sorting apply to conversations with at least one retained event in the range.","operationId":"listInboxConversationAnalytics","parameters":[{"name":"order","required":false,"in":"query","schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"default":"lastMessageAt","enum":["lastMessageAt","firstMessageAt","totalMessages","received","sent","read","failed"],"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"profileId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"enum":["facebook","instagram","telegram","slack","whatsapp"],"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"source","required":false,"in":"query","schema":{"enum":["human","workflow","sequence","broadcast","comment_automation","api","contact","platform"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationAnalyticsListResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List conversation analytics","tags":["inbox-analytics"],"x-resource-group":"messages"}},"/v1/analytics/inbox/conversations/{conversationId}":{"get":{"description":"Results are projections of retained durable message events; phone-number management, SMS, calls, and voice are outside this surface. Terminal outbox events have a finite retention window, so an older accepted range can be sparse or empty. Read and failed counts come only from retained provider lifecycle events. The path accepts an internal durable conversation id or a platform conversation id.","operationId":"getInboxConversationAnalytics","parameters":[{"name":"conversationId","required":true,"in":"path","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"toDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"fromDate","required":true,"in":"query","schema":{"format":"date","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationAnalyticsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get conversation analytics","tags":["inbox-analytics"],"x-resource-group":"messages"}},"/v1/analytics/youtube/channel-insights":{"get":{"description":"Returns YouTube Analytics API v2 channel totals or daily values. The provider query is clamped to three days ago because recent data may not be finalized; requested tail days remain present as zeroes.","operationId":"getYouTubeChannelInsights","parameters":[{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"views,estimatedMinutesWatched,subscribersGained,subscribersLost","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeChannelInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeAnalyticsScopeMissingResponseDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get YouTube channel insights","tags":["analytics"]}},"/v1/analytics/youtube/daily-views":{"get":{"description":"Returns one owned video's YouTube Analytics API v2 daily metrics. The default end date excludes YouTube's three-day processing window; an explicit recent endDate is honored and marked provisional.","operationId":"getYouTubeDailyViews","parameters":[{"name":"endDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"videoId","required":true,"in":"query","schema":{"minLength":1,"maxLength":128,"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeDailyViewsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeAnalyticsScopeMissingResponseDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get YouTube daily views","tags":["analytics"]}},"/v1/analytics/youtube/video-retention":{"get":{"description":"Returns up to 100 official elapsed-video-time retention segments for one owned video.","operationId":"getYouTubeVideoRetention","parameters":[{"name":"endDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"videoId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeVideoRetentionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeAnalyticsScopeMissingResponseDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get YouTube video retention","tags":["analytics"]}},"/v1/analytics/youtube/demographics":{"get":{"description":"Returns requested age/gender viewer percentages and country view counts for a channel or owned video.","operationId":"getYouTubeDemographics","parameters":[{"name":"endDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"breakdown","required":false,"in":"query","schema":{"example":"age,gender,country","type":"string"}},{"name":"videoId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeDemographicsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoutubeAnalyticsScopeMissingResponseDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get YouTube audience demographics","tags":["analytics"]}},"/v1/analytics/tiktok/account-insights":{"get":{"description":"Reads TikTok public account counters. Metrics without retained daily snapshots are explicitly reported as unavailable, never fabricated as zero.","operationId":"getTikTokAccountInsights","parameters":[{"name":"metricType","required":false,"in":"query","schema":{"type":"string","default":"total_value","enum":["time_series","total_value"]}},{"name":"until","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"since","required":false,"in":"query","schema":{"format":"date","type":"string"}},{"name":"metrics","required":false,"in":"query","schema":{"example":"follower_count,likes_count,video_count,followers_gained,followers_lost","type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"pattern":"^[0-9a-f]{24}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokAccountInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"412":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokAccountInsightsScopeMissingDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get TikTok account-level insights","tags":["analytics"]}},"/v1/ads/management/capabilities":{"get":{"operationId":"getAdvertisingCapabilities","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingCapabilitiesDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read live advertising management capabilities","tags":["ads"]}},"/v1/ads/management/accounts":{"get":{"operationId":"listAdvertisingAccounts","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":4096}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingAccountsDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List advertising accounts authorized by a connection","tags":["ads"]}},"/v1/ads/management/entities":{"get":{"operationId":"listAdvertisingEntities","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":4096}},{"name":"parentId","required":false,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"level","required":true,"in":"query","schema":{"enum":["campaign","ad_group","ad"],"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingEntityPageDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read current campaigns, ad groups or ads from the provider","tags":["ads"]},"patch":{"description":"Requires the latest entity revision and an Idempotency-Key. Returns 409 if the entity changed. Budget units and currency are resolved from the existing provider object.","operationId":"updateAdvertisingEntity","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}},{"name":"level","required":true,"in":"query","schema":{"enum":["campaign","ad_group","ad"],"type":"string"}},{"name":"entityId","required":true,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingPatchDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingUpdatedDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update supported name, status or budget fields","tags":["ads"]}},"/v1/ads/management/insights":{"get":{"operationId":"getAdvertisingInsights","parameters":[{"name":"endDate","required":true,"in":"query","schema":{"type":"string","format":"date"}},{"name":"startDate","required":true,"in":"query","schema":{"type":"string","format":"date"}},{"name":"level","required":true,"in":"query","schema":{"enum":["campaign","ad_group","ad"],"type":"string"}},{"name":"entityId","required":true,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","maxLength":255}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvertisingInsightsDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read current entity performance for a bounded date range","tags":["ads"]}},"/v1/ads/accounts":{"get":{"description":"Enumerates the platform ad accounts that the connected social account token can reach. Ad accounts are read live from the platform on every call; none of this is stored.","operationId":"listAdAccounts","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000},"description":"Maximum number of ad accounts to return."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Filter the response to a single platform ad account id; returns at most one item."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"The connected social account whose token resolves the ad accounts."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the ad accounts reachable from a connected account","tags":["ads"]},"patch":{"description":"Writes the default DSA beneficiary and payor to the ad account (EU DSA, Article 26). Set them once and every EU-targeted call to /v1/ads/create, /v1/ads/boost and /v1/ads/ctwa on that ad account may omit `dsaBeneficiary`/`dsaPayor`: the platform fills them in.\n\nTHE VALUES GO STRAIGHT TO THE PLATFORM AND NOTHING IS STORED HERE. Defaults already set in the platform's ads manager work identically. THIS API NEVER GUESSES THEM: beneficiary and payor are legal disclosures shown to EU users, so the entity names must be given explicitly. Use GET /v1/ads/dsa-recommendations to offer suggestions in your UI -- and let a human choose.\n\nIF `defaultDsaPayor` IS OMITTED, THE BENEFICIARY IS WRITTEN AS THE PAYOR TOO, which covers the common case where one entity both benefits from and pays for the ads. Omitting it does NOT mean \"leave the existing payor alone\", and null is rejected: there is no operation for clearing a disclosure.\n\nThe response is RE-READ from the platform after the write, not echoed back from the request, so what you get is what the ad account now holds.\n\nNo `Idempotency-Key` is accepted; the published contract declares none here while declaring one explicitly for other write endpoints. Sending the same body twice is harmless: it creates no object, it drives two fields to a stated end state.\n\nOnly served for Meta ad accounts; another platform answers 501.","operationId":"updateAdAccount","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdAccountDsaDefaultsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdDsaDefaultsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set the default DSA beneficiary and payor on an ad account","tags":["ads"]}},"/v1/ads/authorizations":{"get":{"operationId":"listMetaAdsAuthorizations","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":1024}},{"name":"profileId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaAdsAuthorizationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Meta user grants and compatible Facebook connections","tags":["ads"]}},"/v1/ads/connections":{"get":{"operationId":"listMetaAdsBindings","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","maxLength":1024}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaAdsBindingsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List saved Meta Ads connections","tags":["ads"]},"post":{"operationId":"connectMetaAdsBinding","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectMetaAdsBindingDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaAdsBindingDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Connect or replace the Meta Ads account for a profile","tags":["ads"]}},"/v1/ads/connections/{id}":{"delete":{"operationId":"disconnectMetaAdsBinding","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectMetaAdsBindingDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Disconnect Meta Ads while keeping the Facebook connection","tags":["ads"]}},"/v1/ads/businesses":{"get":{"description":"Enumerates the Meta Business Manager portfolios reachable from the connected social account token. The listing is token-scoped, so no ad account is involved, and it is read live from Meta on every call; none of this is stored.","operationId":"listMetaBusinesses","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Opaque cursor taken from the previous page's `paging.after`. Absent on the first page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Maximum number of businesses to return."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"The connected social account whose token resolves the businesses."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaBusinessesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the Meta Business Manager portfolios the connected user belongs to","tags":["ads"]}},"/v1/ads/campaigns":{"get":{"description":"Campaigns are not stored: they are virtual aggregations over ad documents grouped by platform campaign id, with metrics summed over the requested date range and status derived from child ad statuses. The `coverage` block reports how much of the requested range is actually backed by synced data, so partial totals cannot be mistaken for complete ones.","operationId":"listAdCampaigns","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"End of the metrics range (inclusive). Defaults to today (UTC)."},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Start of the metrics range (inclusive). Defaults to 90 days before toDate."},{"name":"source","required":false,"in":"query","schema":{"type":"string","enum":["zernio","all"],"default":"all"},"description":"`all` returns both locally created ads and those discovered from the platform's ad manager; `zernio` returns only locally created ones."},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"]},"description":"Filter by derived campaign status (applied AFTER aggregation)."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id, e.g. act_123 for Meta."},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"},"description":"Restrict to campaigns whose ads resolve through this social account."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List ad campaigns as aggregations over ad documents","tags":["ads"]},"post":{"description":"Creates the campaign shell without its first ad set or ad. The campaign materializes in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.\n\nCampaign-level (CBO) budgeting is NOT accepted: `budgetAmount`, `budgetType`, `bidStrategy`, `bidAmount` and `roasAverageFloor` are rejected rather than ignored. Use ABO instead -- each ad set carries its own budget.\n\nAn `Idempotency-Key` header is accepted: a retry carrying the same key replays the first response instead of creating a second campaign.","operationId":"createAdCampaign","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdCampaignDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdCampaignResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a standalone campaign (ODAX shell, no budget)","tags":["ads"]}},"/v1/ads/campaigns/{campaignId}/status":{"put":{"description":"Sets the delivery status of every non-terminal ad in the campaign with ONE platform call, because status cascades through the campaign hierarchy. Ads in a terminal status (rejected, completed, cancelled) are skipped and counted, with a reason per status.\n\nWhen no ad is actionable the platform is not called at all and the response carries `message`.\n\nThe stored ad documents keep their previous status until the next sync discovery pass; `updated` describes what the cascade covers on the platform, not rows changed here.","operationId":"updateAdCampaignStatus","parameters":[{"name":"campaignId","required":true,"in":"path","description":"The platform's own campaign id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCampaignStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCampaignStatusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause or resume a campaign","tags":["ads"]}},"/v1/ads/campaigns/bulk-status":{"post":{"description":"Up to 50 campaigns in one call. A row that fails does NOT fail the batch: its result carries an `error` code and `totals.failed` counts it. Rows run concurrently but with a bounded fan-out -- 50 calls at once would exhaust the account's own outbound window and return rate limits the caller would misread as platform refusals.\n\nA repeated (platform, campaign) pair is rejected up front rather than run twice or silently collapsed.","operationId":"bulkUpdateAdCampaignStatus","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateAdCampaignStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateAdCampaignStatusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause or resume many campaigns","tags":["ads"]}},"/v1/ads/campaigns/{campaignId}":{"delete":{"description":"Deletes the campaign on the platform, which cascades to its ad sets and ads, then marks every stored ad document for it `cancelled`.\n\nA campaign the platform reports as already gone counts as deleted: delete is idempotent, and answering \"failed\" to a retry after a partial failure would leave the caller unable to finish.\n\nAn EMPTY campaign (zero ads) has no stored document to resolve a token from, so send `accountId` to delete one. It is ignored when the campaign has ads.","operationId":"deleteAdCampaign","parameters":[{"name":"campaignId","required":true,"in":"path","description":"The platform's own campaign id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdCampaignDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdCampaignResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a campaign","tags":["ads"]},"put":{"description":"Renames the campaign on the platform and refreshes the name stored on its ad documents.\n\n`platform` is REQUIRED -- platform campaign ids are not globally unique -- and only Meta (facebook, instagram) is served: anything else is a 501 before the platform is called.\n\nBeyond `platform` only `name` is accepted. `accountId`, `budget`, `bidStrategy`, `bidAmount`, `roasAverageFloor` and `platformSpecificData` are REJECTED with a per-field reason rather than dropped -- campaign-level (CBO) budgeting is not wired on this edge, the bid fields are an ad-set concern on Meta, and the empty-campaign `accountId` escape is not wired here yet (it is on DELETE).","operationId":"updateAdCampaign","parameters":[{"name":"campaignId","required":true,"in":"path","description":"The platform's own campaign id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCampaignDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCampaignResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Rename a campaign","tags":["ads"]}},"/v1/ads/campaigns/{campaignId}/duplicate":{"post":{"description":"Copies the campaign with Meta's own `/copies` edge, including its ad sets, ads, creatives and targeting when `deepCopy` is true.\n\nThe copy is created PAUSED by default. `ACTIVE` -- or `INHERITED_FROM_SOURCE` over an active source -- starts a SECOND front of spend the moment the clone goes live.\n\nNo local row is written: the copied hierarchy only truly exists on the platform, so `syncAfter` brings the owning account's next discovery run forward instead of inventing one. `startTime`, `endTime` and `raw` are NOT part of this implementation; the DTO says why.","operationId":"duplicateAdCampaign","parameters":[{"name":"campaignId","required":true,"in":"path","description":"Source platform campaign id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. Strongly recommended here: the copy edge does NOT deduplicate, so a retried call without a key creates a second copy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdCampaignDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdCampaignResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Duplicate a campaign","tags":["ads"]}},"/v1/ads/tree":{"get":{"description":"A two-stage aggregation over the same ad documents: ads group into ad sets, ad sets into campaigns, and metrics roll up from the leaves so a parent's totals are its children's totals by construction. Ads the platform reported without a campaign or ad set fall into synthetic `ungrouped:none` buckets within each account and currency. Pagination is at the campaign level. A complete page may contain at most 5000 ads and 8388608 UTF-8 response bytes; larger trees return 400 ad_tree_result_too_large. Reduce limit or filter by account/profile, or use the paginated /v1/ads endpoint for a larger campaign.","operationId":"getAdTree","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"source","required":false,"in":"query","schema":{"type":"string","enum":["zernio","all"],"default":"all"}},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdTreeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Campaign > ad set > ad hierarchy with rolled-up metrics","tags":["ads"]}},"/v1/ads/timeline":{"get":{"description":"Returns daily aggregate metrics across all ads in a SocialAccount as a single time series -- one row per calendar day in the requested range. Use this for dashboards that draw a daily-spend or daily-conversions chart, instead of calling `/v1/ads/tree` once per day. `accountId` is required.\n\nDate range defaults to the last 90 days. Capped at 730 days. Ranges older than the ingested history return a `202` immediately with the covered part and `backfillPending: true` while the rest is backfilled in the background; repeat the request shortly until it returns 200 with full data.","operationId":"getAdsTimeline","parameters":[{"name":"platform","required":false,"in":"query","description":"Restrict to one platform. Values this API does not ingest ads for return an empty series rather than an error.","schema":{"type":"string","enum":["facebook","instagram","tiktok","linkedin","pinterest","google","twitter","openai"]}},{"name":"toDate","required":false,"in":"query","description":"Inclusive end of the metrics range. Defaults to today. Max 730-day range.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","description":"Inclusive start of the metrics range. Defaults to 90 days ago.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"adAccountId","required":false,"in":"query","description":"Optional platform ad account id. Use when the connection wraps multiple platform ad accounts and the chart should show one only.","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"}},{"name":"accountId","required":true,"in":"query","description":"Social account id whose ads are aggregated.","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsTimelineResponseDto"}}}},"202":{"headers":{"Retry-After":{"description":"Suggested delay before repeating this request, in seconds. It is the wait until the next scheduled ad sync for `accountId`, which is the earliest moment the coverage -- and therefore this answer -- can change. It is a LOWER BOUND, not an estimate of when the backfill completes: the run itself takes additional time, and a long backfill spans several runs. Omitted when the account has no scheduled ad sync yet.","schema":{"type":"integer","minimum":60,"maximum":86400}}},"description":"Historical data is incomplete and backfill remains pending. The body is the same shape as 200 with `backfillPending: true`, and `rows` covers only the ingested part of the range. A `Retry-After` header carries the suggested wait when this account has a scheduled ad sync.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsTimelineResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get daily account metrics","tags":["ads"]}},"/v1/ads/campaigns/{campaignId}/analytics":{"get":{"description":"Summary metrics for one campaign and a daily series summed across the campaign's ads, both over the requested range. Days with no delivery are omitted rather than zero-filled; `coverage` says which part of the range is actually backed by synced data. Demographic breakdowns are NOT returned -- they require live per-dimension calls to the platform and are not derivable from stored data.","operationId":"getCampaignAnalytics","parameters":[{"name":"campaignId","required":true,"in":"path","description":"The platform's own campaign id.","schema":{"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignAnalyticsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Campaign totals plus a day-by-day timeline","tags":["ads"]}},"/v1/ads/ad-sets/{adSetId}/duplicate":{"post":{"description":"Duplicates the ad set through the platform's own copy edge, including its ads and creatives by default. The source graph is NOT walked and recreated: doing that would need a mapping for every field, and every field the mapping missed would be dropped in silence.\n\nThe copy is created PAUSED by default so a caller can review before it spends.\n\n`startTime` and `endTime` ARE accepted here -- unlike the campaign duplicate endpoint, which rejects them by name because scheduling lives on the ad set, not the campaign. They must carry a UTC offset: without one the platform reads them in the AD ACCOUNT's timezone, which this endpoint cannot show you, and delivery would shift by hours.\n\n`campaignId` retargets the copy into another campaign; omitted, the copy stays under the source's own campaign.\n\nNothing is written to stored ad documents -- the real shape of the copied subtree is only known to the platform. `syncAfter` instead pulls the account's next discovery pass forward. A `discovery` of `failed` does NOT mean the copy failed.\n\nRetries are NOT deduplicated by the platform: the same call twice leaves TWO copies. Send an `Idempotency-Key`.","operationId":"duplicateAdSet","parameters":[{"name":"adSetId","required":true,"in":"path","description":"Source platform ad set id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Strongly recommended here: this operation is not idempotent on the platform side.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdSetDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Duplicate an ad set","tags":["ads"]}},"/v1/ads/ad-sets/{adSetId}":{"put":{"description":"Ad-set-level writes: ABO budget, delivery status, rename and bid strategy. At least one updatable field is required.\n\nMONEY IS TAKEN IN WHOLE CURRENCY UNITS (19.99 = $19.99) and converted to the integer minor-unit value Meta expects using the platform's own published currency offset. More decimal places than the currency supports is a 400, not a silent rounding. If the ad account currency is not in the platform's published table the amount is REFUSED rather than guessed.\n\nBid strategy rules: `LOWEST_COST_WITH_BID_CAP` and `COST_CAP` require `bidAmount`; `LOWEST_COST_WITHOUT_CAP` forbids it. `LOWEST_COST_WITH_MIN_ROAS` requires `roasAverageFloor`; its decimal multiplier is sent as `bid_constraints.roas_average_floor` multiplied by 10,000.\n\n`platformSpecificData` updates Meta optimization/billing, schedule and promoted-object settings through the same real ad-set primitive used at creation. Unknown nested fields are rejected; campaign-objective compatibility remains Meta's live decision and its error is passed through. Phone/SMS delivery settings are intentionally out of scope.\n\nIf the parent campaign uses campaign budget optimisation, a budget write is rejected by Meta and its error is passed through: this API stores no campaign row to preflight the budget level from, and guessing would be worse than the platform's own answer.\n\nNothing is written to stored ad documents here -- budget and bid live per AD in this store, not per ad set, so the correct row set is ambiguous; the next sync pass reads the real values back.\n\nVALUE RULE SETS. `valueRuleSetId` attaches or replaces the set that adjusts this ad set's bids; sending a different id replaces the previous association, and there is no separate replace call. To DETACH, send `valueRulesApplied: false` and OMIT `valueRuleSetId` -- the two together are a 400 `mutually_exclusive_fields`, because Meta attaches the set whenever `value_rule_set_id` is present and the detach would silently leave the bid adjustments live. Only ad sets on `LOWEST_COST_WITHOUT_CAP` or `COST_CAP` are eligible and Meta enforces that server-side. The sets themselves live at `/v1/ads/value-rule-sets`.","operationId":"updateAdSet","parameters":[{"name":"adSetId","required":true,"in":"path","description":"The platform's own ad set id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdSetDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update an ad set","tags":["ads"]},"delete":{"description":"Deletes the provider ad-set node without deleting its campaign. Every stored ad document under that ad set is then marked `cancelled`; `adCount` reports only rows changed by this request. Provider capability gaps are returned as 501.","operationId":"deleteAdSet","parameters":[{"name":"adSetId","required":true,"in":"path","description":"The platform's own ad set id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete an ad set","tags":["ads"]},"get":{"description":"Reads the ad set LIVE from the platform and returns the body verbatim -- no key is added, renamed or dropped.\n\nThe default projection includes `learning_stage_info` (the learning-phase block), delivery settings, budgets, schedule and targeting. Note that Meta OMITS `learning_stage_info.status` on PAUSED ad sets, so treat that key as optional; its absence is not an error and is not a sign of missing data.\n\n`fields` overrides the projection and supports nested `{}` sub-field selection. It is passed through to the platform, so an unknown field surfaces as the platform's own 400 rather than being silently dropped.\n\n`accountId` is REQUIRED and is a social account id, not an ad account id: it is what resolves the token. Nothing is read from local storage here, which is deliberate -- an ad set created moments ago has no local row yet, and requiring one would 404 exactly the ad sets a caller is most likely to be looking at.","operationId":"getAdSetDetails","parameters":[{"name":"adSetId","required":true,"in":"path","description":"The platform's own ad set id.","schema":{"type":"string"}},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Comma-separated Graph field override; supports nested {} projections."},{"name":"platform","required":false,"in":"query","description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer.","schema":{}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdSetDetailsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Live ad-set details incl. learning phase","tags":["ads"]}},"/v1/ads/ad-sets/{adSetId}/status":{"put":{"description":"Ad-set-scoped pause/resume. It does NOT touch sibling ad sets, which is the whole reason this endpoint exists next to the campaign one: pausing the campaign would stop every ad set under it, including the ones the caller wants to keep spending.\n\nAds in a terminal status (rejected, completed, cancelled) are skipped and counted. When no ad is actionable the platform is not called at all and the response carries `message`.\n\nThe stored ad documents keep their previous status until the next sync discovery pass; `updated` describes what the cascade covers on the platform, not rows changed here.","operationId":"updateAdSetStatus","parameters":[{"name":"adSetId","required":true,"in":"path","description":"The platform's own ad set id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdSetStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdSetStatusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause or resume a single ad set","tags":["ads"]}},"/v1/ads/creatives":{"get":{"description":"Lists the creative library LIVE from the platform; rows are returned verbatim -- no key is added, renamed or dropped. Nothing is stored locally: a cached copy of this library would show creatives that no longer exist the moment it went stale.\n\nThe default projection covers id, name, status, object type, thumbnail, `object_story_spec` / `asset_feed_spec` and `url_tags`. `fields` overrides it and is passed through, so an unknown field surfaces as the platform's own 400 rather than being silently dropped.\n\nAny `id` returned here is reusable when creating an ad.\n\n`paging.after` is derived from the presence of the platform's `next` link, not from its cursor block: the platform returns a cursor on the LAST page too, and following that one would page forever.","operationId":"listAdCreatives","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":2000}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"},"description":"Platform ad account id (act_<n>) whose library is read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdCreativesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"The ad account's creative library","tags":["ads"]},"post":{"description":"Creates a creative in the library WITHOUT an ad. The returned id is reusable when creating an ad.\n\nProvide EXACTLY ONE of `imageUrl`, `imageHash` or `carouselCards`. `imageUrl` needs no separate upload step: the platform fetches the URL and saves it into the ad account's image library itself.\n\nThe Page that acts as the story actor is resolved from `accountId` -- it is never taken from the body, because accepting one would be an attempt to post as a Page the caller may not hold. When the account carries no Page, the answer is 422.\n\nEvery link must be `https`. Carousel cards carry their own call to action whose destination is the card's own `linkUrl`; the platform requires those two to match, so it is not accepted separately.\n\nThis operation is NOT idempotent on the platform: the same body sent twice leaves TWO creatives. An `Idempotency-Key` header is therefore honoured here even though the contract does not declare one.","operationId":"createAdCreative","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Strongly recommended: this operation is not idempotent on the platform side.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdCreativeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdCreativeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a standalone creative","tags":["ads"]}},"/v1/ads/creatives/{creativeId}":{"get":{"description":"Reads one creative LIVE from the platform and returns it verbatim. `fields` overrides the default projection and is passed through.","operationId":"getAdCreative","parameters":[{"name":"creativeId","required":true,"in":"path","description":"The platform's own creative id.","schema":{"type":"string"}},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":2000}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCreativeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"One creative's details","tags":["ads"]},"put":{"description":"Renames a creative. `name` is the only field this endpoint writes.\n\nCONTENT cannot be changed on a creative -- the platform's own update parameter list carries no content fields, so to change what an ad shows you create a NEW creative (POST /v1/ads/creatives) and swap it onto the ad. Its delivery `status` is technically writable on the platform but is not opened here; that would be an additive change.\n\nLeading and trailing whitespace is rejected rather than trimmed: the platform trims silently, so an untrimmed name would read back different from what was sent.\n\nNothing is stored locally; the response echoes the name that was written, because the platform's mutation response carries no state.","operationId":"updateAdCreative","parameters":[{"name":"creativeId","required":true,"in":"path","description":"The platform's own creative id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCreativeDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdCreativeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Rename a creative","tags":["ads"]},"delete":{"description":"Deletes a creative. The platform only allows deleting creatives that NO ad references; when one does, its refusal is passed through verbatim rather than rewritten. That is deliberate: this API does not know which ad holds the reference, and the platform message may carry that detail while ours could not.\n\nUnlike campaign deletion, an \"already gone\" answer is NOT treated as success here -- the platform returns 400 both for a missing creative and for one still in use, and calling the second case a success would report a LIVE creative as deleted.","operationId":"deleteAdCreative","parameters":[{"name":"creativeId","required":true,"in":"path","description":"The platform's own creative id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdCreativeResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a creative from the library","tags":["ads"]}},"/v1/ads/images":{"get":{"description":"Lists the ad account's image library LIVE from the platform; rows are returned verbatim -- no key is added, renamed or dropped. Nothing is stored locally: a cached copy would show images that no longer exist the moment it went stale.\n\nThe default projection covers hash, url, name, dimensions and status. `fields` overrides it and is passed through, so an unknown field surfaces as the platform's own 400 rather than being silently dropped.\n\nAny `hash` returned here is reusable wherever the platform accepts an image hash -- e.g. `imageHash` on POST /v1/ads/creatives.","operationId":"listAdImages","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":2000}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"},"description":"Platform ad account id (act_<n>) whose library is read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdImagesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Ad image library","tags":["ads"]},"post":{"description":"Uploads raw image bytes into the ad account's image library -- for callers whose creatives are not hosted at a public URL. Returns the image `hash` (the platform identifier for the asset) and the platform-hosted `url`.\n\nMax 31457280 bytes DECODED. `imageBase64` takes raw base64 or a full data URL; the `data:image/...;base64,` prefix is stripped before decoding. The payload is validated strictly and a malformed one is rejected here, naming the field -- a lenient base64 decoder drops invalid characters silently and would upload corrupted bytes instead.\n\n`filename` needs a filename extension (the platform rejects `sample` and `sample.tmp`); it defaults to `ad_image.jpg`.\n\nWhether the platform de-duplicates identical bytes is NOT documented, so this operation is treated as NOT idempotent: an `Idempotency-Key` header is honoured here even though the contract does not declare one. The key is scoped by the DECODED bytes, so the same image sent raw and sent as a data URL count as the same request.","operationId":"uploadAdImage","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Strongly recommended: the platform is not documented to de-duplicate repeated uploads.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAdImageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAdImageResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload an ad image from base64","tags":["ads"]}},"/v1/ads/videos":{"post":{"description":"Accepts exactly one source. Public URL downloads are HTTPS-only, DNS and redirect targets are SSRF checked, and both time and bytes are bounded. The call returns only after Meta reports the video ready.","operationId":"uploadAdVideo","parameters":[{"name":"Idempotency-Key","in":"header","description":"Required retry key for this at-most-once video upload.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAdVideoDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAdVideoResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Upload a video into a Meta ad account library","tags":["ads"]},"get":{"operationId":"listAdVideos","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"fields","required":false,"in":"query","schema":{"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdVideosResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Meta ad videos","tags":["ads"]}},"/v1/ads/videos/{videoId}":{"delete":{"operationId":"deleteAdVideo","parameters":[{"name":"videoId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdVideoResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a video through the account-scoped Meta edge","tags":["ads"]}},"/v1/ads/local-services/leads":{"get":{"description":"Reads Local Services leads live from Google Ads; no lead contact data is persisted.","operationId":"listLocalServicesLeads","parameters":[{"name":"pageToken","required":false,"in":"query","schema":{"type":"string"}},{"name":"chargedOnly","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"leadStatus","required":false,"in":"query","schema":{"type":"string"}},{"name":"leadType","required":false,"in":"query","schema":{"type":"string","enum":["PHONE_CALL","MESSAGE","BOOKING"]}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","format":"date"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","format":"date"}},{"name":"customerId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{9}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsLocalServicesLeadListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":""},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Local Services Ads leads","tags":["ads"]}},"/v1/ads/local-services/leads/{leadId}/conversations":{"get":{"description":"Reads phone-call and message entries live from Google Ads; no conversation data is persisted.","operationId":"listLocalServicesLeadConversations","parameters":[{"name":"leadId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"pageToken","required":false,"in":"query","schema":{"type":"string"}},{"name":"customerId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{9}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsLocalServicesConversationListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":""},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List conversations for a Google Local Services lead","tags":["ads"]}},"/v1/ads/keywords":{"get":{"description":"Reads Google Ads live; provider data is not cached or persisted by Zumpo. accountId is required so tenant and credential revision fences can be enforced.","operationId":"listAdKeywords","parameters":[{"name":"pageToken","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":50}},{"name":"search","required":false,"in":"query","schema":{"type":"string","maxLength":200}},{"name":"negative","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"matchType","required":false,"in":"query","schema":{"type":"string","enum":["exact","phrase","broad"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","paused"]}},{"name":"adSetId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"campaignId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{9}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsKeywordListResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List Google Search keywords live","tags":["ads"]}},"/v1/ads/search-terms":{"get":{"operationId":"getAdsSearchTerms","parameters":[{"name":"pageToken","required":false,"in":"query","schema":{"type":"string"}},{"name":"adGroupId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"campaignId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","format":"date"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","format":"date"}},{"name":"customerId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9][0-9]{9}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsSearchTermsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read Google Ads search terms live","tags":["ads"]}},"/v1/ads/keywords/ideas":{"post":{"operationId":"generateKeywordIdeas","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsKeywordIdeasRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsKeywordIdeasResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Generate Google Keyword Planner ideas","tags":["ads"]}},"/v1/ads/keywords/historical-metrics":{"post":{"operationId":"generateKeywordHistoricalMetrics","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsHistoricalMetricsRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsHistoricalMetricsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Generate Google keyword historical metrics","tags":["ads"]}},"/v1/ads/conversions/adjustments":{"post":{"description":"Plaintext email and phone identifiers are normalized and hashed in memory by the adapter. Replay state stores only derived SHA-256 digests, not plaintext; those digests are still treated as personal data and are not claimed to be anonymous.","operationId":"adjustConversions","parameters":[{"name":"Idempotency-Key","in":"header","description":"Required. Ambiguous provider outcomes are fenced for 24 hours.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsConversionAdjustmentsRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsConversionAdjustmentsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Adjust Google Ads conversions","tags":["ads"]}},"/v1/ads/campaigns/{campaignId}/assets":{"post":{"operationId":"attachCampaignAssets","parameters":[{"name":"campaignId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"Idempotency-Key","in":"header","description":"Required. Ambiguous multi-call outcomes are fenced for 24 hours.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsAttachCampaignAssetsRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsAttachCampaignAssetsResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Attach assets to a Google Search campaign","tags":["ads"]}},"/v1/ads/business-centers":{"get":{"description":"Reads one bounded TikTok page live from the dedicated tiktokads account. Zumpo does not copy a posting token or fan out into advertiser assets; advertiserCount is therefore null.","operationId":"listAdsBusinessCenters","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":1000000,"default":1}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokBusinessCentersResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List TikTok Business Centers","tags":["ads"]}},"/v1/ads/insights":{"get":{"description":"Live, flexible insights query. `objectId` selects the node (act_<n>, a campaign, an ad set or an ad) and `level` sets row granularity; caller-chosen `fields`, `breakdowns` and `filtering` are forwarded and the platform's rows come back VERBATIM -- nothing is added, renamed or dropped. Nothing is stored locally: insight numbers are restated by the platform for days after the fact, so a cached copy would be wrong rather than merely stale.\n\nSEMANTIC VALIDATION IS THE PLATFORM'S: an unknown field or an invalid breakdown combination comes back as the platform's own 400, carrying its message. This API validates SHAPE only (types, character set, page size, the date rule) -- enumerating the breakdown list here would mean rejecting a query the platform accepts the day it adds one.\n\nDATES: `datePreset` and `fromDate`+`toDate` are mutually exclusive, the pair is all-or-nothing, and sending NEITHER is legal -- the platform then applies its own documented default rather than one invented here. An explicit pair may span at most 730 days.\n\nFor long ranges or agency-scale accounts prefer the async variant (POST /v1/ads/insights/reports).","operationId":"queryAdInsights","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":25}},{"name":"timeIncrement","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Days per row (1-90), monthly, or all_days."},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"End of range (YYYY-MM-DD); requires fromDate."},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Start of range (YYYY-MM-DD); requires toDate."},{"name":"datePreset","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Platform date preset (e.g. last_7d). Mutually exclusive with fromDate/toDate."},{"name":"filtering","required":false,"in":"query","schema":{"type":"string"},"description":"JSON array of Meta filter objects: [{\"field\", \"operator\", \"value\"}]. Applied server-side by the platform; `value` is forwarded unchanged."},{"name":"useUnifiedAttributionSetting","required":false,"in":"query","schema":{"type":"boolean"},"description":"Use the ad sets' own attribution settings."},{"name":"actionReportTime","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"When actions are counted: impression, conversion or mixed."},{"name":"actionAttributionWindows","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Comma-separated attribution windows (e.g. 7d_click,1d_view). Action values come back keyed per window."},{"name":"actionBreakdowns","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Comma-separated Graph action breakdowns."},{"name":"breakdowns","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Comma-separated Graph breakdowns (e.g. age,gender)."},{"name":"fields","required":false,"in":"query","schema":{"type":"string","maxLength":2000},"description":"Comma-separated Graph insights fields (e.g. spend,impressions). Omitted = the platform's default set."},{"name":"level","required":false,"in":"query","schema":{"type":"string","enum":["ad","adset","campaign","account"]},"description":"Row granularity."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"objectId","required":true,"in":"query","schema":{"type":"string","pattern":"^(?:act_)?[1-9]\\d{0,19}$"},"description":"Insights node: act_<n>, a campaign id, an ad set id or an ad id."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryAdInsightsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Flexible live insights query","tags":["ads"]}},"/v1/ads/insights/reports":{"post":{"description":"Submits an ASYNCHRONOUS insights report. Same query surface as GET /v1/ads/insights, in the JSON body; the platform processes the report server-side, which is the right choice for long ranges or large accounts where the sync query is slow or rate-limited.\n\nThe answer is 202, not 201: what comes back is not a created RESOURCE but an ACCEPTED job. Poll it with GET /v1/ads/insights/reports/{reportRunId}; the rows are read there and never on this response.\n\nThis operation is NOT idempotent on the platform: the same body sent twice starts TWO runs, and the platform bills synchronous and asynchronous insights calls against the SAME budget -- so a retry spends the account's quota twice. An `Idempotency-Key` header is therefore honoured here even though the contract does not declare one.\n\nThe `status` field the contract shows on this response is NOT published: the platform's submit endpoint returns only the run id, so filling it would mean either a second billed call the caller did not ask for, or stating a status we never observed.","operationId":"createAdInsightsReport","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Strongly recommended: the platform starts a second run for a repeated body and charges the same budget.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdInsightsReportDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdInsightsReportResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Submit an async insights report run","tags":["ads"]}},"/v1/ads/insights/reports/{reportRunId}":{"get":{"description":"Status and results for a run created via POST /v1/ads/insights/reports.\n\nONE CALL, UP TO TWO PLATFORM CALLS: the run is polled first, and its rows are read ONLY once the status is \"Job Completed\". Reading rows earlier would return an empty page for a job that is merely unfinished, which reads as a completed-but-empty report.\n\n`data` IS ABSENT while the run is unfinished -- not an empty array. An empty array means \"no rows matched\"; a missing `data` means \"the job is not done\", and those are different facts.\n\nAn UNRECOGNISED status is answered as a normal 200 with the status passed through verbatim, not as an error: the platform documents six values today and may add a seventh, and calling an unknown one a failure would lose a customer a finished report. Poll again.\n\nThe platform expires a run id after 30 days; an expired id and an unknown id are indistinguishable on the wire (both surface as \"Job Skipped\"), which is the platform's gap and not one this API can close.","operationId":"getAdInsightsReport","parameters":[{"name":"reportRunId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The run id returned by POST /v1/ads/insights/reports."},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":25}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token; it must be the same connection that created the run."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdInsightsReportResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Poll an async insights report run","tags":["ads"]}},"/v1/ads/audiences":{"get":{"description":"Lists the ad account's custom audiences, read live from the platform. Nothing is stored locally: this API keeps NO local audience record, so `platformAudienceId` here is the id every other operation on this resource takes in its path.\n\n`limit` and `after` are an ADDITION to the contract this API tracks, which returns a flat array. The platform pages this edge, so a flat array would mean either a silently truncated first page or an unbounded number of internal calls; the bounds match the sibling GET /v1/ads/images so the surface stays consistent with itself.\n\n`type` FILTERS THE RETURNED PAGE. The platform edge takes no subtype filter, so filtering happens after the page is read: a filtered page can be SHORTER than `limit` while more pages remain. Paging still advances correctly, because the cursor is the platform's own. The four types this API does not implement answer 501 rather than an empty list.","operationId":"listAdAudiences","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"type","required":false,"in":"query","schema":{"type":"string","enum":["customer_list","company_list","engagement","meta_engagement","website","website_retargeting","lookalike","saved_targeting"]},"description":"Restrict the page to one audience type. Filtering is applied to the page after it is read, so a filtered page may be shorter than `limit`."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose audiences are listed."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdAudiencesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List custom audiences in an ad account","tags":["ads"]},"post":{"description":"Creates a custom audience on the platform and returns it. No local record is kept; the returned `platformAudienceId` is the id every other operation on this resource takes.\n\nTHIS OPERATION IS NOT IDEMPOTENT and must never be auto-retried: the same body sent twice creates TWO audiences. Send an `Idempotency-Key` if a retry is possible on your side; it is honoured here.\n\nALL EIGHT contract types are RECOGNISED. The four this API does not implement -- `company_list`, `engagement` and `website_retargeting` (LinkedIn audiences; this API serves ads through its Meta adapter) and `saved_targeting` (a stored targeting spec consumed by an operation this API does not serve) -- answer 501 WITH THE REASON, never 400: a real type must stay distinguishable from a typo.\n\nType-specific fields are OPTIONAL here and validated for SHAPE only. Which combination a given type requires is the platform's rule, and enumerating it here would mean rejecting a combination the platform accepts.","operationId":"createAdAudience","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Strongly recommended: creation is not idempotent on the platform and a repeated body creates a second audience.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdAudienceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MutateAdAudienceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a custom audience","tags":["ads"]}},"/v1/ads/audiences/{audienceId}":{"get":{"description":"Reads one custom audience live from the platform.\n\n`{audienceId}` IS THE PLATFORM ID. This API keeps no local audience record -- like the sibling creative, image and document endpoints, and unlike the contract it otherwise tracks, which mints a local id and stores the platform id beside it. There is one id space here, not two.\n\nMembership is never returned: `size` is a count, and the platform does not hand hashed rows back either.","operationId":"getAdAudience","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own audience id."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAudienceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read a custom audience","tags":["ads"]},"put":{"description":"Updates the audience name and/or description on the platform.\n\nAT LEAST ONE of `name` and `description` is required. An empty update is rejected rather than sent: it would spend a platform call, change nothing, and answer 200 to a caller who believes something changed.\n\nMembership is NOT edited here -- use the /users sub-resource.","operationId":"updateAdAudience","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own audience id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdAudienceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MutateAdAudienceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Rename or re-describe a custom audience","tags":["ads"]},"delete":{"description":"Deletes the audience on the platform. Nothing local is removed, because nothing local was ever written.","operationId":"deleteAdAudience","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own audience id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdAudienceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdAudienceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a custom audience","tags":["ads"]}},"/v1/ads/audiences/{audienceId}/companies":{"post":{"description":"Publishes the LinkedIn company-list replacement contract. This release has no real LinkedIn Ads audience primitive, so valid requests return a typed 501 and never pretend provider success.","operationId":"replaceAdAudienceCompanies","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceAdAudienceCompaniesDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceAdAudienceCompaniesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Replace the companies in a LinkedIn audience","tags":["ads"]}},"/v1/ads/audiences/{audienceId}/users":{"post":{"description":"Uploads member rows to a customer-list audience.\n\nSEND RAW IDENTIFIERS, NOT HASHES. Each row is normalised and SHA-256 hashed inside this system; the platform only ever receives the hash, and so does every log, error message and audit record here -- which is to say none of them receives anything at all.\n\nEMAIL ONLY IN THIS RELEASE. The contract this API tracks also allows `phone`; a row carrying one is REJECTED rather than accepted and dropped. The platform requires a country code on every number, this API has no way to learn yours, and assuming one would hash numbers for the wrong country that then match nothing without reporting any error. Rejecting says so; dropping would not.\n\nThe answer carries COUNTS ONLY. `numInvalid` says how many rows had no usable identifier; WHICH row, and why, is deliberately not reported, because reporting it would put a real identifier into an API response and from there into a log. Rows are counted rather than rejected so one bad row cannot fail the other 9999.\n\nRepeating an upload is safe: the platform reconciles members by hash.","operationId":"addUsersToAdAudience","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own audience id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAudienceUsersDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAudienceUsersResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Add members to a customer-list audience","tags":["ads"]},"delete":{"description":"Removes member rows from a customer-list audience. Rows are sent RAW and hashed here, exactly as on the add operation -- the same identifier produces the same hash, which is how the platform finds the member to drop.\n\nTHIS OPERATION IS AN ADDITION to the contract this API tracks, whose /users sub-resource is POST-only. It exists because the platform terms this endpoint operates under impose an ongoing suppression duty: a person who asks to be removed must be removable. An add-only surface cannot satisfy the terms it accepts.\n\nIdentifiers travel in the BODY rather than the query string: a removal can carry as many rows as an upload, and putting real identifiers in a request line would write them into every access log on the way.\n\nEMAIL ONLY IN THIS RELEASE, for the same reason as the add operation. The answer carries COUNTS ONLY.","operationId":"removeAdAudienceUsers","parameters":[{"name":"audienceId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own audience id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAudienceUsersDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAudienceUsersResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove members from a customer-list audience","tags":["ads"]}},"/v1/ads/value-rule-sets":{"get":{"description":"Lists the ad account's value rule sets, read live from the platform. Nothing is stored locally, so `valueRuleSetId` here is the id every other operation on this resource takes in its path.\n\nA value rule set raises or lowers the bid by a percentage for specific audiences. RULES ARE EVALUATED IN ARRAY ORDER and only the FIRST matching rule adjusts the bid for an audience several rules would match, so the order returned here is behaviour, not presentation.\n\nThe platform does not document paging on this edge: `paging.after` comes back null when it omits cursors, which is also what an exhausted page looks like.\n\nValue rule sets only apply to LOWEST_COST_WITHOUT_CAP and COST_CAP ad sets; the platform rejects the rest server-side and this API does not pre-check it.","operationId":"listValueRuleSets","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose value rule sets are listed. It is REQUIRED here and on create, and NOT accepted on read, update or delete -- those resolve from the rule set id alone."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdValueRuleSetsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List value rule sets in an ad account","tags":["ads"]},"post":{"description":"Creates a value rule set in the ad account and returns its id.\n\nRULES ARE EVALUATED IN ARRAY ORDER: only the FIRST matching rule adjusts the bid for an audience that several rules would match, so the order you send is the behaviour you get. Send rules WITHOUT an `id` -- on a create there is nothing to keep.\n\nTHIS OPERATION IS NOT IDEMPOTENT: the same body sent twice creates TWO rule sets. No `Idempotency-Key` is accepted, because the contract this API tracks declares none for this resource while declaring one explicitly for other write endpoints -- the silence is a choice, not an omission. Do not auto-retry a create.\n\nThe platform enforces its own ceiling on how many rule sets an ad account may hold; this API does not pre-check it.","operationId":"createValueRuleSet","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdValueRuleSetDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdValueRuleSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a value rule set","tags":["ads"]}},"/v1/ads/value-rule-sets/{valueRuleSetId}":{"get":{"description":"Reads one value rule set live from the platform.\n\nTHIS IS STEP ONE OF ANY EDIT. The update endpoint is a full replace, so the safe way to change one rule is to read the set here, edit what you got, and send the whole thing back -- keeping the `id` of every rule you want to keep.\n\n`adAccountId` IS NOT ACCEPTED on this operation: the rule set id resolves the account by itself. Sending it is a 400 rather than a silently ignored parameter.\n\nA bad rule set id answers 400, NOT 404. The platform reports it with one error that cannot be told apart from \"no permission\" or \"account not enabled\", and naming one of the three would state a fact this API never observed.","operationId":"getValueRuleSet","parameters":[{"name":"valueRuleSetId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own value rule set id."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdValueRuleSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read a value rule set","tags":["ads"]},"put":{"description":"THIS IS A FULL REPLACE, NOT A PATCH. The body you send BECOMES the rule set. Keep a rule by echoing its `id`; create one by sending the object WITHOUT an `id`; DELETE one by OMITTING it from the array. THERE IS NO WARNING AND NO UNDO. `name` and `rules` are both required for exactly this reason: a partial body would silently destroy every rule left out. Read the set with GET /v1/ads/value-rule-sets/{valueRuleSetId} FIRST and edit what you get back.\n\nRULE ORDER IS BEHAVIOUR: only the FIRST matching rule adjusts the bid for an overlapping audience, and the order you send is the order that is stored and returned.\n\n`adAccountId` IS NOT ACCEPTED here -- the rule set id resolves the account. Sending it is a 400.\n\nAd sets pointing at this rule set are not touched by an update. A bad rule set id answers 400, not 404, for the reason given on the read operation.","operationId":"updateValueRuleSet","parameters":[{"name":"valueRuleSetId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own value rule set id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdValueRuleSetDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdValueRuleSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Replace a value rule set","tags":["ads"]},"delete":{"description":"Deletes the value rule set on the platform. Nothing local is removed, because nothing local was ever written.\n\nAD SETS POINTING AT IT ARE NOT MODIFIED HERE. Detach them first with `valueRulesApplied: false` on PUT /v1/ads/ad-sets/{adSetId}; doing it for you would mean silently editing objects you did not name in this request.\n\nA bad rule set id answers 400, not 404, for the reason given on the read operation.","operationId":"deleteValueRuleSet","parameters":[{"name":"valueRuleSetId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own value rule set id."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdValueRuleSetResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a value rule set","tags":["ads"]}},"/v1/ads/dsa-defaults":{"get":{"description":"Reads the default DSA beneficiary and payor from the ad account, live from the platform (EU DSA, Article 26). NOTHING IS STORED HERE, so defaults set in the platform's own ads manager read back identically and a value changed there is never stale in this answer.\n\nEither field comes back `null` when no default is set. That is not an error: defaults are optional, and without them every EU-targeted /v1/ads/create, /v1/ads/boost and /v1/ads/ctwa call must carry `dsaBeneficiary`/`dsaPayor` itself.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"getDsaDefaults","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose defaults are read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdDsaDefaultsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read the DSA defaults set on an ad account","tags":["ads"]}},"/v1/ads/dsa-recommendations":{"get":{"description":"Returns the legal entity names the platform suggests for this ad account's DSA disclosures.\n\nTHE LIST IS NEVER APPLIED FOR YOU. Beneficiary and payor are legal disclosures shown to EU users, so this API will not pick one: the entries come back as a FLAT, UNLABELLED list -- nothing says which one is a beneficiary and which is a payor -- and choosing the right entity is your user's decision. Offer them in your UI and send the chosen one to PATCH /v1/ads/accounts.\n\nAN EMPTY LIST IS A NORMAL ANSWER, not an error and not a 404: accounts with little activity simply have nothing to suggest.\n\nOnly served for Meta ad accounts; another platform answers 501.","operationId":"getDsaRecommendations","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) the suggestions are read for."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdDsaRecommendationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Suggest legal entity names for an ad account","tags":["ads"]}},"/v1/ads/activity":{"get":{"description":"Reads the ad account's change log -- who changed what, and when -- live from the platform.\n\nROWS ARE FORWARDED VERBATIM: keys are the ones the platform sent, nothing is added, renamed, dropped or coerced. Read them against the platform's own field reference and treat every field as optional. `extra_data` is a JSON STRING holding the before/after values, not an object, and it is forwarded as the string it is.\n\n`objectId` FILTERS THE RETURNED PAGE, NOT THE QUERY. The platform offers no per-object filter on this edge, so the filter runs on the page that came back: combine it with `after` to walk the history of one campaign, ad set or ad. A page whose rows all fail the filter comes back empty WITH a cursor -- that is not the end of the data.\n\n`since`/`until` are calendar days and DO go to the platform. Their order is not enforced: an inverted range simply comes back empty.\n\nThis endpoint pages up to 200 rows at a time, twice its `labels` and `studies` siblings.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"getAdsActivityLog","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer."},{"name":"objectId","required":false,"in":"query","schema":{"type":"string","minLength":1},"description":"Keep only rows whose object is this campaign, ad set or ad. IT FILTERS THE RETURNED PAGE, not the query, so page through the history rather than expecting one call to find every match. No id format is imposed: the value never leaves this API."},{"name":"until","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Newest calendar day to include (YYYY-MM-DD)."},{"name":"since","required":false,"in":"query","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Oldest calendar day to include (YYYY-MM-DD)."},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048},"description":"Opaque cursor from a previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"description":"Rows per page."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose change log is read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsActivityResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the change log of an ad account","tags":["ads"]}},"/v1/ads/labels":{"get":{"description":"Reads the ad account's labels, live from the platform.\n\nROWS ARE FORWARDED VERBATIM: keys are the ones the platform sent, nothing is added, renamed, dropped or coerced. Read them against the platform's own field reference and treat every field as optional.\n\nTHIS EDGE TAKES NO FIELD SELECTION, and that is a limit rather than an omission: the contract declares none, so any projection sent would be this API guessing. The practical consequence is that the platform decides what a row carries and it may hold nothing but `id`.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"listAdLabels","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048},"description":"Opaque cursor from a previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Rows per page."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose labels are read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdLabelsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the ad labels in an ad account","tags":["ads"]}},"/v1/ads/studies":{"get":{"description":"Reads the ad account's A/B studies, live from the platform.\n\nROWS ARE FORWARDED VERBATIM: keys are the ones the platform sent, nothing is added, renamed, dropped or coerced. Read them against the platform's own field reference and treat every field as optional.\n\n`fields` IS A RAW OVERRIDE, not a convenience: send it and you get exactly the projection you asked for, including nested ones such as `cells{id,name,treatment_percentage,control_percentage}`. A FLAT `cells` RETURNS IDS ONLY, so the split percentages need the nested form. Omit `fields` and the default projection is `id,name,type,description,start_time,end_time,updated_time,cells{id,name,treatment_percentage,control_percentage}`.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"listAdStudies","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"fields","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":2000},"description":"Platform field selection, forwarded VERBATIM. Nested projections such as `cells{id,name}` are supported and a flat `cells` returns ids only."},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048},"description":"Opaque cursor from a previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Rows per page."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose studies are read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdStudiesResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the A/B studies in an ad account","tags":["ads"]}},"/v1/ads/accounts/finance":{"get":{"description":"Reads the money side of an ad account live from the platform: balance, lifetime spend, spending cap and funding source.\n\nTHE ANSWER IS FLAT. There is no `data`/`paging` envelope and no paging, because this reads one account rather than a list.\n\nEVERY AMOUNT IS IN WHOLE UNITS of `currency` (the platform keeps them in minor units and they are converted here using its own per-currency offset, so zero-decimal currencies are not off by a factor of a hundred).\n\n`spendCap` IS NULL WHEN THERE IS NO CAP -- the platform expresses that as `0`, and a zero cap would read as \"every delivery blocked\". `fundingSource` is null when none is attached, and its `type` is an integer code the contract declares no enum for.\n\n`balance` and `amountSpent` come back null when the platform did not report them. THAT IS NOT ZERO: an unknown amount and a zero amount are different facts, and this API will not turn one into the other.\n\nThis does NOT overlap GET /v1/ads/accounts, which carries the account's identity, status and budget fields and no money at all.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"getAdAccountFinance","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose figures are read."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountFinanceResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read the balance, spend and funding source of an ad account","tags":["ads"]}},"/v1/ads/catalogs":{"get":{"description":"Reads the product catalogs behind an ad account, live from the platform.\n\nCATALOGS DO NOT LIVE ON THE AD ACCOUNT. They hang off the BUSINESS that owns it, so this endpoint resolves the business first and then reads both the catalogs it owns and the ones a client granted it. The two are merged and de-duplicated by `id`, because the contract does not separate them. An ad account with no business behind it is an error rather than an empty list: \"you have no catalogs\" and \"I could not look\" send a customer to two opposite places.\n\nTHE LIST IS COMPLETE OR IT IS AN ERROR. There is no `limit`, no cursor and no `paging` object: the platform pages this data internally and this API walks it to the end. When a list is larger than that walk can carry, the answer is a named 502 rather than a first page that would look complete.\n\n`name` and `productCount` CAN COME BACK NULL. The platform does not send them on every row and this API will not invent a zero count or an empty name -- an unknown size and an empty catalog are different facts.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"listAdCatalogs","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Platform ad account id (act_<n>) whose business owns the catalogs."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCatalogsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the product catalogs an ad account can advertise from","tags":["ads"]}},"/v1/ads/catalogs/{catalogId}/product-sets":{"get":{"description":"Reads the product sets in one catalog, live from the platform. A product set is the slice of a catalog an ad promotes.\n\n`adAccountId` IS NOT ACCEPTED HERE, and that is not an omission: the catalog id is globally addressable on the platform and the catalog itself hangs off a business rather than an ad account. THIS ENDPOINT THEREFORE AUTHORISES DIFFERENTLY from GET /v1/ads/catalogs -- that one narrows through an ad account, this one asks only what the token's catalog access allows. Sending `adAccountId` is a 400 rather than a silently ignored parameter, because accepting it would promise a narrowing that does not happen.\n\nTHE LIST IS COMPLETE OR IT IS AN ERROR. There is no `limit`, no cursor and no `paging` object: the platform pages this data internally and this API walks it to the end. When a list is larger than that walk can carry, the answer is a named 502 rather than a first page that would look complete.\n\nA bad or unreachable `catalogId` answers 400, NOT 404. The platform reports \"no such node\" and \"you may not see this node\" with one indistinguishable error, and naming one of them would state a fact this API never observed.\n\nOnly served for Meta ad accounts. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"listAdCatalogProductSets","parameters":[{"name":"catalogId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own product catalog id, as returned by GET /v1/ads/catalogs. No `act_` prefix: a catalog is not an ad account."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdProductSetsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the product sets in a product catalog","tags":["ads"]}},"/v1/ads/high-demand-periods":{"get":{"description":"Reads the budget schedules -- the windows where a campaign or ad set spends more than its usual budget -- live from the platform.\n\nTHERE IS NO `adAccountId` ON THIS ENDPOINT, and that is not an omission: the platform hangs these schedules off the CAMPAIGN and AD SET nodes, not off the ad account. Send EXACTLY ONE of `campaignId` / `adSetId`; both, or neither, is a 400.\n\nROWS COME BACK VERBATIM. `data[]` carries the platform's own rows with its own snake_case keys (`budget_value`, `budget_value_type`, `time_start`, `time_end`, `recurrence_type`); nothing is renamed to camelCase, added or dropped. The key set is the platform's, so treat every field as optional.\n\nPAGING IS THE PLATFORM'S CURSOR, forwarded opaquely. Send `paging.after` back as `after` to continue; `null` means the page was the last one.\n\nOnly served for Meta today. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"listHighDemandPeriods","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer."},{"name":"after","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$"},"description":"Cursor from `paging.after` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Rows per page."},{"name":"adSetId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"Ad set to read the schedules of. Exactly one of campaignId / adSetId."},{"name":"campaignId","required":false,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"Campaign to read the schedules of. Exactly one of campaignId / adSetId."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdHighDemandPeriodsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the scheduled high demand periods on a campaign or ad set","tags":["ads"]},"post":{"description":"Creates a budget schedule and returns its id.\n\nTHERE IS NO `adAccountId` ON THIS ENDPOINT, and that is not an omission: the platform hangs these schedules off the CAMPAIGN and AD SET nodes, not off the ad account. Send EXACTLY ONE of `campaignId` / `adSetId`; both, or neither, is a 400.\n\n`budgetValue` MEANS TWO DIFFERENT THINGS, and `budgetValueType` is what decides which. With `ABSOLUTE` it is an amount in the ad account currency in WHOLE units (50 = 50.00) and `currency` is REQUIRED. With `MULTIPLIER` it is a factor of the existing budget (2 = double it), NOT a currency amount, and `currency` is IGNORED -- send it and it is dropped rather than forwarded. Do NOT pre-convert to minor units: the conversion happens once, downstream, and a converted amount would scale the budget by a hundred.\n\nA CAMPAIGN CANNOT MIX `ABSOLUTE` AND `MULTIPLIER` across its schedules. This API does NOT pre-check that -- the platform rejects the second type and its message is forwarded verbatim. A local check would have to read the campaign's other schedules first, which costs an extra call and still races two concurrent creates.\n\n`timeStart` / `timeEnd` are Unix SECONDS on a 15-minute boundary (:00, :15, :30, :45) and `timeEnd` must be strictly after `timeStart`. The remaining window rules -- sitting inside the campaign's run dates, minimum lead time, no overlap -- are the platform's, and its message is forwarded verbatim.\n\nTHIS OPERATION IS NOT IDEMPOTENT: the same body sent twice creates TWO schedules and raises the budget twice. No `Idempotency-Key` is accepted, because the contract this API tracks declares none for this resource while declaring one explicitly for other write endpoints -- the silence is a choice, not an omission. Do not auto-retry a create.\n\nOnly served for Meta today. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"createHighDemandPeriod","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdHighDemandPeriodDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdHighDemandPeriodResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Schedule a high demand period on a campaign or ad set","tags":["ads"]}},"/v1/ads/rf-predictions":{"post":{"description":"Creates a reach and frequency prediction -- a QUOTE. NOTHING IS BOUGHT here and no ad entities are created; the money-binding verb is POST /v1/ads/rf-predictions/{predictionId}/reserve.\n\nSEND EXACTLY ONE of `budgetAmount` / `reach`. They ask opposite questions: send `budgetAmount` and the platform predicts the REACH, send `reach` and it predicts the BUDGET. Both, or neither, is a 400 -- and the two cases carry DIFFERENT codes (`ambiguous_prediction_basis` and `missing_prediction_basis`), because they are different mistakes with different fixes.\n\nTHE WINDOW MAY SPAN AT MOST EIGHT WEEKS (56 days) and `endDate` must be after `startDate`; both are checked before the request leaves this API. The rule that `startDate` be in the future is NOT checked here -- \"future\" depends on a clock this API does not share with the platform, so a borderline window is left for the platform to accept or refuse.\n\nMONEY IS FORWARDED UNCONVERTED, IN BOTH DIRECTIONS. `budgetAmount` goes to the platform exactly as you send it and the platform reads it in the MINOR unit of the ad account currency (cents for USD); the quoted `budget`, `minBudget` and `maxBudget` come back in that same minor unit. This request carries no currency field, so this API cannot convert whole units for you -- and it does not guess, because the divisor is currency dependent (JPY, KRW and CLP have no minor unit).\n\nTHIS OPERATION IS NOT IDEMPOTENT: the same body sent twice leaves TWO predictions on the platform. No `Idempotency-Key` is accepted, because the contract this API tracks declares none for this resource while declaring one explicitly for other write endpoints -- the silence is a choice, not an omission.\n\nOnly served for Meta today. An account whose adapter does not implement reach and frequency answers 501 -- the request is valid, the capability is what is missing.","operationId":"createRfPrediction","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRfPredictionDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RfPredictionEnvelopeDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a Reach & Frequency prediction","tags":["ads"]}},"/v1/ads/rf-predictions/{predictionId}":{"get":{"description":"Reads one prediction live from the platform.\n\nTHIS IS THE POLLING ENDPOINT. Predictions are produced asynchronously and reservations are confirmed asynchronously, so `prediction.status` may still be moving when a create or a reserve returns. Neither of those operations waits for you: waiting would mean unpriced extra calls against your platform quota.\n\n`prediction.status` IS THE PLATFORM'S OWN NUMBER and this API publishes no names for it -- the vendor documents the field only as an unsigned integer and never says what each value means, so any ready/pending/failed mapping here would be invented.\n\nRESERVING MINTS A NEW PREDICTION ID. The `prediction.predictionId` you get back from the reserve is NOT the id you reserved -- it is a new object. That RESERVED id is the one that belongs on POST /v1/ads/create with `buyingType: \"RESERVED\"`, and it is the one the cancelling DELETE expects. Cancelling with the ORIGINAL quote id is refused by the platform.\n\nMONEY FIELDS COME BACK IN THE MINOR UNIT of `currency` (cents for USD), unconverted. A bad prediction id answers 400, NOT 404: the platform reports it with one error that cannot be told apart from \"no permission\", and naming one of the two would state a fact this API never observed.\n\nOnly served for Meta today. An account whose adapter does not implement reach and frequency answers 501 -- the request is valid, the capability is what is missing.","operationId":"getRfPrediction","parameters":[{"name":"predictionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,20}$"},"description":"The platform's own prediction id -- a quote id, or the RESERVED id a reserve minted."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Meta ad account id (act_<n>). The platform reads the prediction from the node itself, so this value never reaches the wire -- it is still REQUIRED and validated, because silently ignoring it would let a call naming the wrong account succeed and never tell you."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RfPredictionEnvelopeDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read a Reach & Frequency prediction","tags":["ads"]},"delete":{"description":"Releases a RESERVATION's locked price and inventory. It does NOT delete the prediction, and unreserved quotes need no cleanup at all -- they expire on their own.\n\nTHE ID MUST BE THE RESERVED ONE. That is the id a reserve minted, not the quote id you passed to the reserve; cancelling with the original quote id is refused by the platform.\n\nTHIS IS SAFE TO REPEAT: cancelling an already cancelled reservation reaches the same state. It is NOT safe to undo -- released inventory may go to other advertisers -- so the answer here is deliberately thin: a 2xx from the platform with no error is treated as success, and no confirmation shape is imposed on top of it. Imposing one that was never measured would answer \"it failed\" to a cancel that HAPPENED, and send you to undo something that cannot be undone.\n\nTHE 200 CARRIES NO BODY. It is the only one of the four reach and frequency operations that answers without one, and that is the contract's own shape: there is nothing left to read.\n\nOnly served for Meta today. An account whose adapter does not implement reach and frequency answers 501 -- the request is valid, the capability is what is missing.","operationId":"cancelRfReservation","parameters":[{"name":"predictionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,20}$"},"description":"The RESERVED prediction id -- the one the reserve returned, not the one you sent to it."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Meta ad account id (act_<n>) the reservation lives under."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"Reservation cancelled. No body."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Cancel a Reach & Frequency reservation","tags":["ads"]}},"/v1/ads/rf-predictions/{predictionId}/reserve":{"post":{"description":"THIS IS THE OPERATION THAT BINDS MONEY. It locks the quoted price and the inventory until the returned `expiresAt`. Everything before it -- the create, the reads -- buys nothing.\n\nRESERVING MINTS A NEW PREDICTION ID. The `prediction.predictionId` you get back from the reserve is NOT the id you reserved -- it is a new object. That RESERVED id is the one that belongs on POST /v1/ads/create with `buyingType: \"RESERVED\"`, and it is the one the cancelling DELETE expects. Cancelling with the ORIGINAL quote id is refused by the platform.\n\nDO NOT AUTO-RETRY THIS CALL. A single prediction can be reserved MORE THAN ONCE: a repeat does not return the reservation you already have, it mints a SECOND one and locks the inventory again. That is measured platform behaviour, not a guess, and it is why this endpoint accepts no `Idempotency-Key` and is classified as an unsafe write. If a call times out, READ the prediction instead of reserving again.\n\nTHE RESERVATION IS CONFIRMED ASYNCHRONOUSLY, so `prediction.status` may not be final when this returns; this endpoint does not poll for you. Use GET /v1/ads/rf-predictions/{predictionId} with the RESERVED id.\n\nRELEASE AN UNUSED RESERVATION with DELETE /v1/ads/rf-predictions/{predictionId}. Unreserved quotes need no cleanup -- they expire on their own.\n\nOnly served for Meta today. An account whose adapter does not implement reach and frequency answers 501 -- the request is valid, the capability is what is missing.","operationId":"reserveRfPrediction","parameters":[{"name":"predictionId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,20}$"},"description":"The QUOTE id to reserve. The id that comes back is a different one."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReserveRfPredictionDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReserveRfPredictionResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Reserve a Reach & Frequency prediction","tags":["ads"]}},"/v1/ads/targeting/search":{"get":{"description":"Resolves free text into the opaque ids a `TargetingSpec` needs: locations, interests, behaviors and income tiers, read live from the platform.\n\nONE ENDPOINT, TWO PLATFORM EDGES. `dimension=geo` searches the platform's location catalogue, which is NOT scoped to an ad account; the other dimensions search inside one ad account. That split is why `adAccountId` is required for everything except geo.\n\n`adAccountId` IS NOT IN THE PUBLISHED CONTRACT FOR THIS OPERATION and is required here anyway for non-geo searches. It cannot be derived from `accountId`: one social account can reach many ad accounts. Get it from `GET /v1/ads/accounts`. The sibling reach-estimate operation requires it for the same reason.\n\nTHERE IS NO PAGING. Raise `limit` (up to 100) or narrow `q`; there is no cursor to follow.\n\nOnly served for Meta today. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"searchAdTargeting","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"description":"Maximum results to return. There is no paging, so this is the only control over how much comes back."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"description":"Ad account to search inside, in `act_<id>` form. REQUIRED for every dimension except `geo`, because the platform serves interest, behavior and income search under an ad account. IGNORED for `geo`: that edge is not account scoped, so the value is dropped rather than rejected. Get the id from `GET /v1/ads/accounts`."},{"name":"countryCode","required":false,"in":"query","schema":{"type":"string","minLength":2,"maxLength":2},"description":"ISO 3166-1 alpha-2 country code to restrict results to. Two LETTERS: two digits are the right length and still not a country."},{"name":"geoType","required":false,"in":"query","schema":{"type":"string","enum":["all","country","region","city","subcity","neighborhood","place","zip","metro_area","geo_market"],"default":"city"},"description":"Narrows a geo search to one kind of location. ONLY USED WHEN `dimension=geo` -- sending it with any other dimension is a 400 rather than a silently ignored field, because ignoring it would let you believe you had narrowed a search that was never narrowed.\n\nOMITTING IT SEARCHES ALL LOCATION TYPES. The contract documents `city` as the default; this API does not substitute one, because a default it applied itself would silently override the platform's own."},{"name":"dimension","required":false,"in":"query","schema":{"type":"string","enum":["geo","interest","behavior","income"],"default":"interest"},"description":"What kind of targeting entry to search for. Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias. Anything other than `geo` requires `adAccountId`."},{"name":"q","required":true,"in":"query","schema":{"type":"string"},"description":"Search query. For geo, the locality name only (no region or country suffix) -- send `Paris`, not `Paris, France`. It is NOT trimmed: multi-word localities are legitimate."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id (a connected account on the target ad platform). It is what resolves the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdTargetingSearchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search the platform for targeting entries","tags":["ad-targeting"]}},"/v1/ads/interests":{"get":{"deprecated":true,"description":"Backward-compatible alias for targeting/search?dimension=interest. It discovers the connected Meta ad accounts and returns the legacy `{ interests }` envelope.","operationId":"searchAdInterests","parameters":[{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"q","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdInterestsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Search Meta interests (deprecated alias)","tags":["ad-targeting"]}},"/v1/ads/preview":{"post":{"description":"Renders how a creative would look per placement BEFORE any ad exists, via Meta's `/generatepreviews`. Provide exactly one creative source: `existingCreativeId` or `creativeSpec`. Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values return Meta's 400 verbatim.","operationId":"generateAdPreviews","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAdPreviewsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAdPreviewsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Render a creative as it would look, before any ad exists","tags":["ads"]}},"/v1/ads/targeting/reach-estimate":{"post":{"description":"Returns the platform's own estimate of the audience a `TargetingSpec` would reach, WITHOUT creating anything and without spending budget.\n\nIT IS A RANGE, NOT A NUMBER. `lower` and `upper` bound a MONTHLY ACTIVE audience; the platform deliberately does not commit to a single figure, so this API does not average them into one.\n\n`optimizationGoal` IS REQUIRED HERE, and that deviates from the published contract, which calls it optional and says to omit it for the platform default. THE PLATFORM HAS NO SUCH DEFAULT -- the parameter is mandatory on its edge -- and choosing one on your behalf would silently change the audience size you are shown.\n\n`daily` AND `currency` ARE ALWAYS `null`. The platform removed the services behind the daily figure and states no replacement exists, and nothing in this request or response is monetary, so there is nothing to denominate. Both fields are kept so a client generated from the contract still compiles.\n\nCHECK `estimateReady` BEFORE TRUSTING THE BOUNDS: the platform answers 200 with `estimateReady: false` while it is still computing a very new audience, and the bounds may be `null` in that state.\n\nOnly served for Meta today. Another platform answers 501 -- the request is valid, the capability is what is missing.","operationId":"estimateAdReach","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateAdReachDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdReachEstimateResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Estimate how many people a targeting spec would reach","tags":["ad-targeting"]}},"/v1/ads/conversions/quality":{"get":{"description":"Scores the conversion events you send to a pixel/dataset by how well the platform could match them to a real person.\n\nWHY IT MATTERS: unmatched events fail SILENTLY. The platform accepts them, answers 200, and the only symptom is campaign optimisation that quietly underperforms. This operation is what makes that visible.\n\nREAD `matchKeys` BEFORE `compositeScore`: the composite number tells you there is a problem, the per-key coverage tells you WHICH customer information you are failing to send.\n\nAN EMPTY `rows` LIST IS A NORMAL ANSWER -- a dataset that has received no scoreable events yet has nothing to report, and that is not an error.\n\nOWNERSHIP OF `destinationId` IS NOT VERIFIED against the account: the platform answers for any dataset the connected token can reach. Proving ownership would cost a second platform call.\n\nOnly served for Meta today. Another platform answers 501 -- NOT the 405 the contract declares, because the request and its method are both fine and the capability is what is missing.","operationId":"getConversionsQuality","parameters":[{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for this operation -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."},{"name":"destinationId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The pixel or dataset whose event match quality you want, as a numeric platform id. It cannot be derived from `accountId`: one account can see several datasets, and choosing one for you would report scores for a dataset you did not ask about. An `act_<id>` ad account id is rejected -- a dataset is a different kind of object."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the pixel or dataset."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdConversionsQualityResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read how well your conversion events match real people","tags":["ads"]}},"/v1/ads/conversions":{"post":{"description":"Sends one bounded batch to the connected Meta account. `eventId` is the provider deduplication key. Plaintext identity fields are accepted only so the adapter can normalize and hash them; they are never echoed in an error or persisted in the Idempotency-Key replay request.","operationId":"sendConversions","parameters":[{"name":"Idempotency-Key","in":"header","description":"Required client-generated retry key for this exact conversion batch.","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAdConversionsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendAdConversionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send conversion events to Meta","tags":["ads"]}},"/v1/ads/leads":{"get":{"description":"This implementation is a live Meta Graph proxy and stores no lead rows. Therefore both `accountId` (to resolve the Page token) and `formId` (Meta only exposes leads under a form edge) are required. Zernio can make these filters optional because it keeps a webhook-fed cache; this API deliberately does not scan every form or persist submitted personal data.\n\nThe response is a bounded allowlisted projection; provider fields not named by this contract are never forwarded. No request, response or cursor is logged, cached or persisted.","operationId":"listLeads","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$"}},{"name":"since","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":9999999999},"description":"Inclusive Unix-seconds lower bound."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"formId","required":true,"in":"query","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetaLeadsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List submitted Meta leads","tags":["ads"]}},"/v1/ads/lead-forms/{formId}/leads":{"get":{"description":"Reads `/{form-id}/leads` live with the connected Page token. The response is allowlisted and bounded; no personal data is cached, logged or persisted.","operationId":"listFormLeads","parameters":[{"name":"formId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$"}},{"name":"since","required":false,"in":"query","schema":{"type":"integer","minimum":0,"maximum":9999999999}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetaLeadsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List submitted leads for one Meta form","tags":["ads"]}},"/v1/ads/lead-forms/{formId}/test-leads":{"post":{"description":"Submits `field_data` and optional `custom_disclaimer_responses` to `/{form-id}/test_leads`. Meta permits one test lead per form at a time. The Idempotency-Key is mandatory and an uncertain provider outcome is fenced for the full replay-retention window rather than retried. The personal-data body is represented in the replay store only by one-way digests; the response stores only the created id.","operationId":"createTestLead","parameters":[{"name":"formId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMetaTestLeadDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMetaTestLeadResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create one Meta test lead","tags":["ads"]}},"/v1/ads/lead-forms":{"get":{"description":"Lists the Lead Gen FORM DEFINITIONS owned by the connected Facebook Page, read live from the platform. NO LEAD DATA IS RETURNED: this endpoint answers \"which forms exist\", never \"who filled them in\".\n\nRows are forwarded VERBATIM -- the contract declares them as an open object, so nothing is added, renamed or dropped and every field should be treated as optional.\n\n`pagination.hasMore` is TRUE only when the platform announced a next page. It is not inferred from the row count, and the cursor is opaque: send it back as `cursor`, do not decode or store it.\n\nA 403 with code `facebook_lead_form_permission_missing` means the connected Facebook account lacks `pages_manage_ads`. Lead form edges are PAGE edges, not ad-account edges, so they need a Page permission that older connections were never asked for: reconnect the account to grant it. The call is stopped before it reaches the platform, so it costs nothing.","operationId":"listLeadForms","parameters":[{"name":"cursor","required":false,"in":"query","schema":{"type":"string","pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048},"description":"Cursor from `pagination.cursor` of the previous page."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty list."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string"},"description":"LinkedIn only: the ad account id used to resolve the owning organization. LinkedIn lead forms are NOT served today, so sending it answers 501 rather than being silently ignored. Meta forms live on the connected Page, which the account's own credential already names."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdLeadFormsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List lead forms","tags":["ads"]},"post":{"description":"Creates a Lead Gen form on the connected Facebook Page and returns its id.\n\nSEND THE FORM CONTENT INSIDE `platformSpecificData`. The old top-level fields (`questions`, `thankYou*`, `locale`, ...) are DEPRECATED but still accepted while `platformSpecificData` is ABSENT; sending BOTH shapes is a 400, because there would be no way to tell which one you meant. `name` and `privacyPolicyUrl` stay top-level in both shapes.\n\n`platformSpecificData` is STRICT-PARSED: an unknown field is a 400, never a silently dropped one.\n\nThe form is created ACTIVE: the platform takes no status on this edge, so a draft cannot be created in one call.\n\nTHIS OPERATION IS NOT IDEMPOTENT: the same body sent twice creates TWO forms on the Page. No `Idempotency-Key` is accepted, because the contract this API tracks declares none for this resource while declaring one explicitly for other write endpoints -- the silence is a choice, not an omission. Do not auto-retry a create.\n\nThe returned `name` is the name the form was created with -- ECHOED from your request when the platform does not return one. This edge accepts no field selection, so a read-after-write is not available and a second call would double the operation's price.\n\nA 403 with code `facebook_lead_form_permission_missing` means the connected Facebook account lacks `pages_manage_ads`. Lead form edges are PAGE edges, not ad-account edges, so they need a Page permission that older connections were never asked for: reconnect the account to grant it. The call is stopped before it reaches the platform, so it costs nothing.","operationId":"createLeadForm","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdLeadFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdLeadFormResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a lead form","tags":["ads"]}},"/v1/ads/lead-forms/{formId}":{"get":{"description":"Reads one lead form DEFINITION live from the platform, forwarded VERBATIM -- same open shape as the list, and the same projection behind it. NO LEAD DATA IS RETURNED.\n\n`adAccountId` IS NOT ACCEPTED on this operation: the form id resolves the Page by itself, and the contract does not declare it here. Sending it is a 400 rather than a silently ignored parameter.\n\nA 403 with code `facebook_lead_form_permission_missing` means the connected Facebook account lacks `pages_manage_ads`. Lead form edges are PAGE edges, not ad-account edges, so they need a Page permission that older connections were never asked for: reconnect the account to grant it. The call is stopped before it reaches the platform, so it costs nothing.","operationId":"getLeadForm","parameters":[{"name":"formId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own lead form id."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdLeadFormResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a lead form","tags":["ads"]},"delete":{"description":"ARCHIVES the form; it is NOT deleted. The platform does not hard-delete lead forms: the form stays with status ARCHIVED and the leads it already collected stay reachable. That is why the response says `archived: true` and not `deleted` -- calling this operation is not the irreversible act the HTTP verb suggests.\n\nArchiving an already archived form reaches the same state, so a retry is safe.\n\n`adAccountId` IS NOT ACCEPTED here -- the form id resolves the Page.\n\nA 403 with code `facebook_lead_form_permission_missing` means the connected Facebook account lacks `pages_manage_ads`. Lead form edges are PAGE edges, not ad-account edges, so they need a Page permission that older connections were never asked for: reconnect the account to grant it. The call is stopped before it reaches the platform, so it costs nothing.","operationId":"archiveLeadForm","parameters":[{"name":"formId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The platform's own lead form id."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today."},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"},"description":"Social account id used to resolve the platform token."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveAdLeadFormResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Archive a lead form","tags":["ads"]}},"/v1/ads/create":{"post":{"description":"Builds a whole campaign hierarchy in ONE call, or supplies `adSetId` to add creatives and ads under an existing Meta ad set while preserving its learning history. `adSetId` cannot be combined with `campaign` or `adSet`. A new campaign is created PAUSED and only flipped to `ACTIVE` as the LAST step. On the existing-ad-set path every new ad is created PAUSED and only flipped after ALL requested ads exist; the parent campaign/ad set is never paused because doing so could interrupt unrelated delivery.\n\nPARTIAL FAILURE LEAVES WHAT IT BUILT. There is no compensating delete: if a later step fails, the campaign and ad set that already exist stay on the platform, paused, and the error carries them in `details.created` as `{kind, platformId}` entries. That is deliberate -- a surviving ad set is a HANDLE, not litter, and deleting it would close the documented way to continue.\n\nThe objects materialize in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.","operationId":"createStandaloneAd","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. The same key with the same body replays the original 201 without calling the platform again; the same key with a different body is a 422, and a key still being processed is a 409.\n\nA request whose worst-case duration is longer than the replay lease is REFUSED with 422 rather than accepted, because a retry could otherwise start a second chain while the first is still running. Send fewer ads to fit, or send no key at all and accept that a retry duplicates the whole hierarchy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStandaloneAdDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdChainResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a campaign, ad set and ad in one call","tags":["ads"]}},"/v1/ads/boost":{"post":{"description":"Builds a whole campaign hierarchy in ONE call, or supplies `adSetId` to add creatives and ads under an existing Meta ad set while preserving its learning history. `adSetId` cannot be combined with `campaign` or `adSet`. A new campaign is created PAUSED and only flipped to `ACTIVE` as the LAST step. On the existing-ad-set path every new ad is created PAUSED and only flipped after ALL requested ads exist; the parent campaign/ad set is never paused because doing so could interrupt unrelated delivery.\n\nPARTIAL FAILURE LEAVES WHAT IT BUILT. There is no compensating delete: if a later step fails, the campaign and ad set that already exist stay on the platform, paused, and the error carries them in `details.created` as `{kind, platformId}` entries. That is deliberate -- a surviving ad set is a HANDLE, not litter, and deleting it would close the documented way to continue.\n\nThe objects materialize in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.\n\nThe creative is built from an EXISTING Page post (`objectStoryId`), so no headline, body or image is accepted here -- the post already carries them. The post must belong to the Page selected on the account.\n\nThe post is NOT resolved for you: this endpoint takes an `<pageId>_<postId>` value directly. Listing promotable posts and resolving connected Instagram accounts are separate reads that are not wired to this call.","operationId":"boostPost","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. The same key with the same body replays the original 201 without calling the platform again; the same key with a different body is a 422, and a key still being processed is a 409.\n\nA request whose worst-case duration is longer than the replay lease is REFUSED with 422 rather than accepted, because a retry could otherwise start a second chain while the first is still running. Send fewer ads to fit, or send no key at all and accept that a retry duplicates the whole hierarchy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoostPostDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdChainResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Promote an existing Page post with a new campaign","tags":["ads"]}},"/v1/ads/call":{"post":{"description":"Builds a whole campaign hierarchy in ONE call, or supplies `adSetId` to add creatives and ads under an existing Meta ad set while preserving its learning history. `adSetId` cannot be combined with `campaign` or `adSet`. A new campaign is created PAUSED and only flipped to `ACTIVE` as the LAST step. On the existing-ad-set path every new ad is created PAUSED and only flipped after ALL requested ads exist; the parent campaign/ad set is never paused because doing so could interrupt unrelated delivery.\n\nPARTIAL FAILURE LEAVES WHAT IT BUILT. There is no compensating delete: if a later step fails, the campaign and ad set that already exist stay on the platform, paused, and the error carries them in `details.created` as `{kind, platformId}` entries. That is deliberate -- a surviving ad set is a HANDLE, not litter, and deleting it would close the documented way to continue.\n\nThe objects materialize in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.\n\nThe creative must carry `callToAction: \"CALL_NOW\"` and a `phoneNumber` in E.164 form. THAT NUMBER IS THE ADVERTISER OWN LINE -- the number the button dials -- not an end user number, and it is never stored here.\n\n`linkUrl` stays a separate `https://` landing page: the platform keeps the tap target and the link as two different fields, and this API does not fold one into the other.","operationId":"createCallAd","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. The same key with the same body replays the original 201 without calling the platform again; the same key with a different body is a 422, and a key still being processed is a 409.\n\nA request whose worst-case duration is longer than the replay lease is REFUSED with 422 rather than accepted, because a retry could otherwise start a second chain while the first is still running. Send fewer ads to fit, or send no key at all and accept that a retry duplicates the whole hierarchy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallAdDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdChainResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create an ad whose button places a phone call","tags":["ads"]}},"/v1/ads/messaging":{"post":{"description":"Builds a whole campaign hierarchy in ONE call, or supplies `adSetId` to add creatives and ads under an existing Meta ad set while preserving its learning history. `adSetId` cannot be combined with `campaign` or `adSet`. A new campaign is created PAUSED and only flipped to `ACTIVE` as the LAST step. On the existing-ad-set path every new ad is created PAUSED and only flipped after ALL requested ads exist; the parent campaign/ad set is never paused because doing so could interrupt unrelated delivery.\n\nPARTIAL FAILURE LEAVES WHAT IT BUILT. There is no compensating delete: if a later step fails, the campaign and ad set that already exist stay on the platform, paused, and the error carries them in `details.created` as `{kind, platformId}` entries. That is deliberate -- a surviving ad set is a HANDLE, not litter, and deleting it would close the documented way to continue.\n\nThe objects materialize in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.\n\nThis endpoint accepts MORE THAN ONE ad under a single ad set: one creative each, all sharing the campaign, the ad set and the targeting. The response arrays line up with the request `ads` array.\n\nThe chat surface is chosen with the creative `appDestination` field (`WHATSAPP` or `MESSENGER`). Instagram Direct is NOT offered: the platform publishes no example of the value it expects, and sending an invented one would build a valid-looking ad on an undocumented field.","operationId":"createMessagingAd","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. The same key with the same body replays the original 201 without calling the platform again; the same key with a different body is a 422, and a key still being processed is a 409.\n\nA request whose worst-case duration is longer than the replay lease is REFUSED with 422 rather than accepted, because a retry could otherwise start a second chain while the first is still running. Send fewer ads to fit, or send no key at all and accept that a retry duplicates the whole hierarchy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessagingAdDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdChainResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create ads that open a chat thread","tags":["ads"]}},"/v1/ads/ctwa":{"post":{"description":"Builds a whole campaign hierarchy in ONE call, or supplies `adSetId` to add creatives and ads under an existing Meta ad set while preserving its learning history. `adSetId` cannot be combined with `campaign` or `adSet`. A new campaign is created PAUSED and only flipped to `ACTIVE` as the LAST step. On the existing-ad-set path every new ad is created PAUSED and only flipped after ALL requested ads exist; the parent campaign/ad set is never paused because doing so could interrupt unrelated delivery.\n\nPARTIAL FAILURE LEAVES WHAT IT BUILT. There is no compensating delete: if a later step fails, the campaign and ad set that already exist stay on the platform, paused, and the error carries them in `details.created` as `{kind, platformId}` entries. That is deliberate -- a surviving ad set is a HANDLE, not litter, and deleting it would close the documented way to continue.\n\nThe objects materialize in `/v1/ads/tree` on the next sync discovery pass, so no row is written locally here.\n\nThe request body and the platform call chain are the SAME as `/v1/ads/messaging`. The endpoint stays separate because the two are different customer acts and must remain distinguishable in the ad account's outbound rate-limit window; they are priced under separate operation names.","operationId":"createCtwaAd","parameters":[{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. The same key with the same body replays the original 201 without calling the platform again; the same key with a different body is a 422, and a key still being processed is a 409.\n\nA request whose worst-case duration is longer than the replay lease is REFUSED with 422 rather than accepted, because a retry could otherwise start a second chain while the first is still running. Send fewer ads to fit, or send no key at all and accept that a retry duplicates the whole hierarchy.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCtwaAdDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdChainResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create click-to-WhatsApp ads","tags":["ads"]}},"/v1/accounts/{accountId}/tracking-tags":{"get":{"description":"Lists the tracking tags (Meta calls them pixels) an ad account owns.\n\nTHIS IS THE OPERATION THAT MAKES THREE OTHERS USABLE. `tags[].id` is exactly the value `getConversionsQuality` wants as `destinationId`, `createAdAudience` wants as `pixelId`, and an ad's `promotedObject.pixelId` needs -- with NO conversion: all of them validate the same numeric shape. Before this endpoint there was no way to discover that id through this API at all.\n\n`ownerAdAccountId` ON EVERY ROW tells you which ad account each tag belongs to -- the ambiguity `getConversionsQuality` warns about in its own error text.\n\n`code` IS ALWAYS NULL HERE: the install snippet is kilobytes per row, so the list edge does not fetch it. Read a single tag to get it.\n\nAN EMPTY LIST IS A NORMAL ANSWER -- an ad account with no tags has nothing to report, and that is not an error.\n\nOnly served for Meta today. Another platform answers 501 -- NOT the 405 the contract declares, because the request and its method are both fine and the capability is what is missing.","operationId":"listTrackingTags","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"after","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":2048},"description":"Cursor from `paging.after` of the previous page. Forwarded to the platform OPAQUELY -- no shape is imposed on it here, because the platform is the one that mints it. It requires adAccountId; an omitted-account response is complete and always returns a null cursor."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":25},"description":"With adAccountId this is the response page size. Without adAccountId it is the provider page size used while the bounded directory is fully drained; it does not truncate the aggregate result."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32},"description":"The `act_<n>` ad account whose tags are listed. Omit it to aggregate every tag reachable by the connected token. Accounts are processed in deterministic id order, duplicate tag ids are returned once, and each provider page receives its own rate-limit admission. The complete directory is bounded to 25 ad accounts, 50 provider pages and 5000 unique tags. A larger directory answers 400 (`too_many_ad_accounts` or `facebook_tracking_tag_directory_page_limit_exceeded`) instead of returning a truncated success."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTrackingTagsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the tracking tags on an ad account","tags":["ads"]},"post":{"description":"Creates a tracking tag (Meta: a pixel) in the ad account and returns it, INCLUDING the install `code`.\n\nTHIS OPERATION IS NOT IDEMPOTENT and the cost of a retry is PERMANENT: the same body sent twice creates TWO tags, and META HAS NO API TO DELETE A TAG -- the extra one stays on the account forever. No `Idempotency-Key` is accepted, because the contract this API tracks declares one explicitly for other write endpoints and nothing here; the silence is a choice, not an omission. Do not auto-retry on timeout: read the list first and check whether the tag landed.\n\nCREATING IS NOT INSTALLING. The returned tag has `installed: false` until the snippet is actually on your site and the first event arrives; `lastFiredTime` is what that flag is derived from.\n\n`name` IS THE ONLY INPUT THE PLATFORM TAKES on this edge. Matching keys, cookie behaviour and data-use settings are set afterwards with the update operation.\n\nThe platform enforces its own ceiling on how many tags a business may hold, and an ad account outside a Business Manager cannot hold one at all; this API does not pre-check either -- they come back as a 400 from the platform.","operationId":"createTrackingTag","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrackingTagDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingTagResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a tracking tag","tags":["ads"]}},"/v1/accounts/{accountId}/tracking-tags/{tagId}":{"get":{"description":"Reads one tag live from the platform.\n\nTHIS IS THE ONLY OPERATION THAT RETURNS `code`. The list view leaves it null on purpose -- the install snippet is kilobytes of JavaScript and fetching it for every row would bloat the list for nothing.\n\nA malformed or unreachable tag answers 400, NOT 404, for the reason given on `tagId`.","operationId":"getTrackingTag","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingTagResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read one tracking tag","tags":["ads"]},"patch":{"description":"Updates a tag and returns its re-fetched canonical state. AT LEAST ONE FIELD IS REQUIRED -- an empty body answers 400.\n\nFOUR OF THE FIVE WRITABLE FIELDS CANNOT BE READ BACK. `name` shows up on the returned tag; `enableAutomaticMatching`, `automaticMatchingFields`, `firstPartyCookieStatus` and `dataUseSetting` do NOT, because the contract this API tracks does not publish them on the tag. The platform does store them -- keep your own record of what you set, because this API cannot show it to you.\n\n`automaticMatchingFields` IS A FULL REPLACE, not an add: send the complete set you want. Combined with the paragraph above, a partial array is a loss you can neither undo nor see.\n\nTHERE IS NO DELETE OPERATION IN THIS FAMILY and there will not be one: the platform has no API to delete a tag. Retiring one means removing the snippet from your site.","operationId":"updateTrackingTag","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTrackingTagDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingTagResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a tracking tag","tags":["ads"]}},"/v1/accounts/{accountId}/tracking-tags/{tagId}/shared-accounts":{"get":{"description":"Lists the ad accounts the tag has been shared with.\n\nTHIS COSTS TWO PLATFORM CALLS, not one. The platform requires the owning Business Manager id on this edge and the contract this API tracks carries no field for it, so the tag is read first to resolve it. A tag on a personal (non-BM) ad account has no owning business and answers 400 -- the same condition that makes sharing impossible.\n\nAN EMPTY LIST IS A NORMAL ANSWER, and there is no paging: the platform returns the whole set.","operationId":"listTrackingTagSharedAccounts","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTrackingTagSharedAccountsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the ad accounts a tracking tag is shared with","tags":["ads"]},"post":{"description":"Shares the tag with another ad account so campaigns there can optimise against it.\n\nYOU MUST MANAGE BOTH SIDES: the tag's Business Manager and the target ad account. A tag on a personal (non-BM) ad account cannot be shared at all -- it has no owning business, and that answers 400.\n\nTHIS COSTS TWO PLATFORM CALLS for the reason given on the list operation.\n\n`ok` IS ALWAYS TRUE IN THIS BODY: a share that failed comes back as an error envelope instead, so it is not a status you need to branch on. The tag itself is NOT returned -- read it separately if you need it.","operationId":"addTrackingTagSharedAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareTrackingTagDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareTrackingTagResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Share a tracking tag with an ad account","tags":["ads"]},"delete":{"description":"Removes an ad account from the tag's shared list. The tag itself is NOT deleted -- the platform has no API for that.\n\n`adAccountId` MAY BE SENT AS A QUERY PARAMETER (recommended) OR AS A JSON BODY FIELD. Exactly one channel must carry it: sending neither is a 400, and sending both is a 400 too rather than a silent choice between two values you may not have meant to be the same.\n\nTHIS COSTS TWO PLATFORM CALLS for the reason given on the list operation.\n\nANSWERS 204 WITH NO BODY.","operationId":"removeTrackingTagSharedAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32},"description":"The `act_<n>` ad account to stop sharing with. MARKED OPTIONAL because it may travel in the JSON body instead -- but one of the two channels must carry it."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareTrackingTagDto"}}}},"responses":{"204":{"description":"The share was removed. No body."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Stop sharing a tracking tag with an ad account","tags":["ads"]}},"/v1/accounts/{accountId}/tracking-tags/{tagId}/stats":{"get":{"description":"Reads what the tag has been recording, grouped by one dimension.\n\nROWS ARE PASSED THROUGH FROM THE PLATFORM AS-IS. Their keys depend on `aggregation`, and this API does not reshape or validate them -- imposing a shape on sixteen dimensions nobody here has observed would reject real data. Read them defensively.\n\n`aggregation`, `startTime` and `endTime` in the response ECHO YOUR REQUEST; they are not platform fields. That is what saves you from tracking which window you asked for.\n\nAN EMPTY `rows` LIST IS A NORMAL ANSWER -- a tag that recorded nothing in the window has nothing to report.\n\nTHIS IS AGGREGATE DATA, not per-person records: every dimension is a grouping key. `had_pii` counts whether personal information was present, it does not carry any.","operationId":"getTrackingTagStats","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"Social account id -- a connected Meta account. It is what resolves the platform token; it is NOT the ad account and NOT the tag."},{"name":"tagId","required":true,"in":"path","schema":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"description":"The tag id, as a numeric platform (pixel) id. A malformed id answers 400, not 404: the platform reports an unreachable tag with one error that cannot be told apart from \"no permission\" or \"account not enabled for pixel management\", and naming one of the three would state a fact this API never observed."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."},{"name":"endTime","required":false,"in":"query","schema":{"type":"integer","minimum":1},"description":"Window end, unix seconds. Must not be earlier than `startTime`."},{"name":"startTime","required":false,"in":"query","schema":{"type":"integer","minimum":1},"description":"Window start, unix seconds. Omit both times to let the platform pick the window."},{"name":"aggregation","required":false,"in":"query","schema":{"type":"string","enum":["event","host","url","url_by_rule","pixel_fire","device_type","device_os","browser_type","had_pii","custom_data_field","match_keys","event_source","event_detection_method","event_processing_results","event_total_counts","event_value_count"],"default":"event"},"description":"The dimension to group by. It also decides the SHAPE of every row, which is why it is echoed back in the response."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingTagStatsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read tracking tag activity statistics","tags":["ads"]}},"/v1/accounts/{accountId}/custom-conversions":{"get":{"description":"Lists the custom conversions an ad account owns, INCLUDING ARCHIVED ONES -- `isArchived` is the only thing that tells them apart, and filtering them out here would close the only surface on which an archived conversion is visible at all.\n\n`data[].id` is exactly the value `adSet.promotedObject.customConversionId` wants on the ad-creating endpoints, with no conversion.\n\nAN EMPTY LIST IS A NORMAL ANSWER -- an ad account with no custom conversions has nothing to report, and that is not an error.\n\nOnly served for Meta today. Another platform answers 501, because the request and its method are both fine and the capability is what is missing.","operationId":"listCustomConversions","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"The connected Meta account id. It is what resolves the platform token; it is NOT the ad account and NOT the pixel."},{"name":"after","required":false,"in":"query","schema":{"type":"string","minLength":1,"maxLength":2048},"description":"Cursor from `paging.after` of the previous page. Forwarded to the platform OPAQUELY -- no shape is imposed on it here, because the platform is the one that mints it."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":25},"description":"Page size. NOT IN THE TRACKED CONTRACT, which declares no paging for this operation -- the platform edge pages anyway, and hiding that would silently truncate your list."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32},"description":"The `act_<n>` ad account whose custom conversions are listed."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomConversionsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List the custom conversions on an ad account","tags":["ads"]},"post":{"description":"Creates a custom conversion on an ad account, or RETURNS THE EXISTING ONE when a non-archived conversion already has the same `name` on the same `pixelId`. A reused conversion answers 200; a newly created one answers 201, and `reused` in the body says which happened.\n\nTHE REUSE IS THIS API'S, NOT THE PLATFORM'S. The platform create is not idempotent, so a retried request would otherwise mint a duplicate carrying none of the original's optimisation history. That is also why no `Idempotency-Key` is accepted: the reuse key -- `name` plus `pixelId` -- already makes a retry safe, and the tracked contract declares no header here.\n\nTHE REUSE SCAN READS ONE PAGE. An ad account holding more custom conversions than 200 can therefore hold a match the scan does not see, and this call would then create a second conversion with the same name. The platform offers no server-side name filter, so a full scan would cost a number of calls that grows with your account and cannot be priced as one operation. List first if your account is that large.\n\n`rule` is forwarded VERBATIM in the platform's own grammar -- not translated, not validated here. A rule the platform refuses comes back as a 400 carrying its reason.\n\nOnly served for Meta today; another platform answers 501.","operationId":"createCustomConversion","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"The connected Meta account id. It is what resolves the platform token; it is NOT the ad account and NOT the pixel."},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Defaults to 'facebook'. Only Meta is served today; anything else is a 501 rather than a silent empty answer. NOT IN THE PUBLISHED CONTRACT for these operations -- it is accepted because every sibling ads operation carries it, so the same query shape works across the vertical."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomConversionDto"}}}},"responses":{"200":{"description":"An existing non-archived conversion matched `name` + `pixelId` and was returned instead of creating a second one. `reused` is true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomConversionResultDto"}}}},"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomConversionResultDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a custom conversion, or reuse the matching one","tags":["ads"]}},"/v1/accounts/{accountId}/conversion-destinations":{"get":{"description":"Lists the destinations you can send conversions to. For Meta a destination is a PIXEL, and `destinations[].id` is the id the shipped conversion surfaces already take -- `GET /v1/ads/conversions/quality?destinationId=...` above all. The same identifier is accepted by `POST /v1/ads/conversions`.\n\nTHE LIST SPANS EVERY AD ACCOUNT THE CONNECTED ACCOUNT REACHES, because this operation takes no scoping parameter. Under the hood that is one ad-account discovery call plus one call per ad account, and each of those counts against the account's hourly platform budget. An account reaching more than 25 ad accounts is answered 400 rather than a silently shortened list; use `GET /v1/accounts/{accountId}/tracking-tags?adAccountId=act_...` to walk it one ad account at a time.\n\nA PIXEL SHARED WITH SEVERAL AD ACCOUNTS IS LISTED ONCE -- results are deduplicated by `id`. Per ad account only the first page of pixels is read; the tracking-tag endpoint above is the paged view.\n\n`type` IS NEVER SET HERE and that follows the contract: it is present only where the platform locks the event type to the destination (Google conversion actions, LinkedIn conversion rules). A Meta pixel accepts any event name per request.\n\nAN EMPTY LIST IS A NORMAL ANSWER -- an account with no destinations has nothing to report, and that is not an error.\n\nGoogle Ads conversion actions and LinkedIn conversion rules are also served by their provider adapters. LinkedIn discovery spans the sponsored ad accounts available to the authenticated member; each result includes its `adAccountId`. Other account platforms receive a 400 platform-mismatch response.","operationId":"listConversionDestinations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"},"description":"The connected Zumpo account id. It resolves the provider credential; it is not the provider ad account or destination id."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConversionDestinationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List conversion destinations","tags":["ads"]},"post":{"description":"Creates an offline conversion action on Google Ads or a conversion rule on LinkedIn. Provider-specific fields are rejected when used with the other platform. Meta pixels use the tracking-tags endpoint.","operationId":"createConversionDestination","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversionDestinationRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversionDestinationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Create a conversion destination","tags":["ads"]}},"/v1/accounts/{accountId}/conversion-destinations/{destinationId}":{"get":{"description":"LinkedIn-only. Fetches one conversion rule within its sponsored ad account.","operationId":"getConversionDestination","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"},"description":"Numeric id or full urn:li:sponsoredAccount:{id} URN."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionDestinationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get a conversion destination","tags":["ads"]},"patch":{"description":"LinkedIn-only partial update. At least one mutable field is required.","operationId":"updateConversionDestination","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversionDestinationRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionDestinationResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a conversion destination","tags":["ads"]},"delete":{"description":"LinkedIn-only soft delete. The provider rule is retained with enabled=false.","operationId":"deleteConversionDestination","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"204":{"description":"Soft-deleted."},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a conversion destination","tags":["ads"]}},"/v1/accounts/{accountId}/conversion-destinations/{destinationId}/associations":{"get":{"operationId":"listConversionAssociations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionAssociationsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List associated campaigns","tags":["ads"]},"post":{"operationId":"addConversionAssociations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionAssociationBatchRequestDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionAssociationBatchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Associate campaigns","tags":["ads"]},"delete":{"description":"The documented surface accepts adAccountId and comma-separated campaignIds in query.","operationId":"removeConversionAssociations","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"campaignIds","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionAssociationBatchResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Remove associated campaigns","tags":["ads"]}},"/v1/accounts/{accountId}/conversion-destinations/{destinationId}/metrics":{"get":{"description":"LinkedIn conversion-pivot adAnalytics metrics.","operationId":"getConversionMetrics","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"destinationId","required":true,"in":"path","schema":{"type":"string"}},{"name":"adAccountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":true,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"granularity","required":false,"in":"query","schema":{"type":"string","enum":["ALL","DAILY","MONTHLY","YEARLY"],"default":"DAILY"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionMetricsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"405":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get attribution metrics","tags":["ads"]}},"/v1/ads/{adId}/media":{"get":{"description":"Normalizes single-image, video, carousel, Reels/Story and dynamic creative assets live from a connected Facebook Marketing API account. Instagram credentials are intentionally not inferred as Facebook Graph credentials. Returned signed URLs are short-lived and are never cached.","operationId":"getAdMedia","parameters":[{"name":"adId","required":true,"in":"path","description":"Zumpo ad id, platform ad id, object-story id or Instagram media id.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdMediaResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Resolve every media asset used by an ad","tags":["ads"]}},"/v1/ads/{adId}/status":{"put":{"description":"Ad-scoped pause/resume. It touches ONLY this ad -- never its parent ad set or campaign -- so sibling ads keep running. That is the whole reason it exists next to the ad-set and campaign endpoints.\n\nThe path segment takes the platform ad id. Unlike `GET /v1/ads/{adId}` it does NOT accept the other identifier dialects: those are not unique to one ad, and a write must not have an ambiguous target.\n\nAn ad whose stored status is terminal (rejected, completed, cancelled) is skipped and the platform is not called at all.\n\nThe stored ad document keeps its previous status until the next sync discovery pass. This is deliberate: the platform puts a resumed ad back through review, so writing `active` here would publish a status the platform has not confirmed.","operationId":"updateAdStatus","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdStatusDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdStatusResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Pause or resume a single ad","tags":["ads"]}},"/v1/ads/{adId}":{"put":{"description":"Meta supports status, parent-ad-set budget, targeting, creative replacement and rename. Budget and targeting intentionally write the parent ad set, so they affect sibling ads; the local sibling documents are refreshed together. Targeting is merged over the last discovery snapshot so omitted Meta fields are preserved.\n\nCreative replacement creates a new immutable creative and then repoints the ad. The old creative remains for reporting. Because creative creation is not idempotent, `Idempotency-Key` is required whenever the creative field is present; an ambiguous provider outcome is fenced instead of retried.\n\nMoving an ad with `adSetId` is still rejected: Meta does not permit it. Google/LinkedIn/TikTok lifecycle writes remain explicit 501 gates until a real provider adapter primitive exists.","operationId":"updateAd","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key. Required when replacing `creative`; optional for the idempotent fields.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Update a single ad","tags":["ads"]},"delete":{"description":"Deletes ONLY this ad; its ad set, campaign and sibling ads are untouched.\n\nTHIS CANNOT BE UNDONE. On the platform a deleted ad cannot be moved back to any other state. It also is not the same as archiving, which this API does not offer: archiving is capped per ad account while deletion is not, so putting both behind one endpoint would quietly consume a limited resource.\n\nThe ad keeps existing on the platform in a deleted state: it stays readable by its own id, disappears from listings, and can still accrue metrics for a while after its last delivery. The stored document is marked cancelled here, because the sync pass will never see the ad again and the row would otherwise look active forever.\n\nDeleting an already-deleted ad succeeds rather than erroring, so a retry after a dropped connection is safe.","operationId":"deleteAd","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe.","required":false,"schema":{"type":"string","maxLength":255}},{"name":"platform","required":false,"in":"query","schema":{"type":"string"},"description":"Inferred from the stored ad; only needed when one platform ad id exists on more than one platform for this tenant."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAdResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete a single ad -- permanently","tags":["ads"]},"get":{"description":"The path segment accepts the zumpo ad id, the platform ad id, the creative's effective object story id, or its Instagram media id. All four resolve to the same ad, so the caller needs no translation step.","operationId":"getAd","parameters":[{"name":"adId","required":true,"in":"path","description":"Zumpo ad id, platform ad id, `<pageId>_<postId>` object story id, or Instagram media id.","schema":{"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one ad by any identifier dialect it is indexed under","tags":["ads"]}},"/v1/ads/{adId}/duplicate":{"post":{"description":"Copies one ad through the platform's own duplication edge. The copy is PAUSED by default so nobody spends money on a configuration they have not reviewed.\n\n`adSetId` puts the copy under a different ad set. That is also the only way to move an ad between ad sets at all: the platform refuses to reparent an existing one.\n\nThree fields the sibling ad-set endpoint takes are NOT accepted here, because the platform does not offer them for an ad: `deepCopy` (an ad has no children), and `startTime`/`endTime` (scheduling lives on the ad set).\n\nSending the same request twice creates TWO copies -- the platform does not de-duplicate this edge, so `Idempotency-Key` is load-bearing here rather than decorative.\n\nNothing is written locally: the copy (and its freshly built creative) only truly exists on the platform, and the discovery pass brings it back.","operationId":"duplicateAd","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated unique key that makes retries safe. Strongly recommended on this endpoint: without it a retry duplicates twice.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateAdResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Duplicate a single ad","tags":["ads"]}},"/v1/ads/{adId}/analytics":{"get":{"description":"Reads stored metrics; the platform is not called.\n\nWhat this adds over `GET /v1/ads/{adId}`, which already returns the ad and its totals, is the DAILY series -- that is the whole reason the endpoint exists rather than a second view of the same numbers.\n\nDays with no delivery are omitted rather than zero-filled: a stored zero and an unsynced day are different facts, and `coverage` reports how much of the range is actually backed by synced data, so partial totals cannot be mistaken for complete ones.\n\nDemographic breakdowns are NOT served and the parameter is not accepted: they cannot be derived from stored data, and accepting a parameter that is then ignored would let a caller believe they got what they asked for.","operationId":"getAdAnalytics","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAnalyticsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"One ad's performance: totals plus a day-by-day series","tags":["ads"]}},"/v1/ads/{adId}/preview":{"get":{"description":"Returns the platform's own `<iframe>` snippet per requested placement, embeddable as-is.\n\nTHE IFRAME EXPIRES 24 HOURS after it is issued. It is meant to be rendered now, not stored -- a snippet kept longer renders an empty frame.\n\nThe platform renders ONE format per call, so asking for N formats spends N calls from the account's rate window. That is why the list is capped at 10.\n\nA format that this creative cannot be rendered in comes back with `html: null` rather than an error -- not every creative type exists in every placement, and asking is legitimate.\n\nFormat names are NOT validated against a pinned list: the platform keeps adding placements, so its own error is the authority on which ones exist. Unknown names surface the platform's message verbatim.","operationId":"getAdPreviews","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"formats","required":false,"in":"query","schema":{"type":"string","default":"DESKTOP_FEED_STANDARD"},"description":"Comma-separated placement format names, one preview per format (max 10, no repeats)."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPreviewResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Render an existing ad as it appears in a placement","tags":["ads"]}},"/v1/ads/{adId}/tracking-tags":{"get":{"description":"Returns the click-URL tracking parameters the platform has stored for this ad, read LIVE -- nothing is cached locally.\n\nTHE TAGS BELONG TO THE CREATIVE, NOT THE AD. On Meta `url_tags` is a creative field, so two ads that share one creative report the same tags, and changing them for one would change them for the other. `creativeId` is returned so a caller can see whether such a share exists.\n\n`urlTags` comes back as the platform's own string, not as a parsed key/value map: it may carry dynamic macros and may repeat a key, and both survive verbatim.\n\n`PATCH /v1/ads/{adId}/tracking-tags` rebuilds the immutable creative and repoints this ad. Read the PATCH warning before using it: the new creative returns to platform review and does not keep the old creative's likes/comments.","operationId":"getAdTrackingTags","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdTrackingTagsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read an ad's click-URL tracking parameters","tags":["ads"]},"patch":{"description":"Meta creatives are immutable. This operation reads the current `object_story_spec`, creates a replacement creative carrying the new `url_tags`, and repoints only this ad. Placement-customized, dark, or otherwise non-rebuildable creatives return 422 before any write.\n\nREVIEW/ENGAGEMENT SIDE EFFECT: the replacement creative re-enters platform review and does not inherit the old creative's accumulated likes/comments. A retry can otherwise leave an extra creative, so send an `Idempotency-Key`.","operationId":"updateAdTrackingTags","parameters":[{"name":"adId","required":true,"in":"path","description":"The platform's own ad id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Client-generated key that prevents duplicate replacement creatives.","required":false,"schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdTrackingTagsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdTrackingTagsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Set an ad's click-URL tracking parameters","tags":["ads"]}},"/v1/ads/{adId}/comments":{"get":{"description":"Returns comments on the post an ad's creative points at, read LIVE.\n\nTHIS IS THE ONLY WAY TO SEE DARK-POST COMMENTS. An ad creative often points at a post that was never published organically, so it does not exist in the post surfaces at all; the identifier comes from the ad record.\n\nAN AD CAN HAVE TWO COMMENT THREADS. One running on both the Facebook and the Instagram side has two separate underlying posts. `placement` picks one; omitted, the Instagram side is returned when it exists, otherwise Facebook. `meta.placement` always says which one you got. Asking for a placement the ad does not have is refused rather than quietly switched -- a silent switch would have you read one platform's comments as the other's.\n\nTHE INSTAGRAM SIDE READS THROUGH THE CONNECTED INSTAGRAM ACCOUNT that owns the media, so it costs one extra platform call to find out which account that is. When no connected account can read it, the call returns `ads_connection_required` (422) and the Facebook side, if any, is still readable with `?placement=facebook`.\n\nThe path segment accepts any of the four identifier dialects that `GET /v1/ads/{adId}` accepts -- unlike the write endpoints, which take the platform ad id only.","operationId":"getAdComments","parameters":[{"name":"adId","required":true,"in":"path","description":"zumpo ad id, platform ad id, object story id, or instagram media id.","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"},"description":"The `pagination.cursor` from a previous response."},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"placement","required":false,"in":"query","schema":{"type":"string","enum":["facebook","instagram"]},"description":"Which side to read. Omit to get the Instagram side when it exists."}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCommentsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"422":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Read comments on the post behind an ad","tags":["ads"]}},"/v1/ads":{"get":{"description":"Returns synced ad documents with metrics aggregated over the requested range. The `coverage` block reports how much of that range is actually backed by synced data, so partial totals cannot be mistaken for complete ones.","operationId":"listAds","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"toDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"fromDate","required":false,"in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"source","required":false,"in":"query","schema":{"type":"string","enum":["zernio","all"],"default":"all"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["active","paused","pending_review","rejected","completed","cancelled","error"]}},{"name":"effectiveInstagramMediaId","required":false,"in":"query","schema":{"type":"string"}},{"name":"effectiveObjectStoryId","required":false,"in":"query","schema":{"type":"string"}},{"name":"platformAdId","required":false,"in":"query","schema":{"type":"string"},"description":"The platform's own ad id, e.g. the value in a comment webhook."},{"name":"campaignId","required":false,"in":"query","schema":{"type":"string"}},{"name":"adAccountId","required":false,"in":"query","schema":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"}},{"name":"profileId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List ad documents with metrics over a date range","tags":["ads"]}},"/v1/sms/messages":{"post":{"description":"Sends one outbound SMS and records it. The order is fixed and is not an implementation detail: the local row is committed BEFORE the carrier is called, so a crash can never leave a message that reached a handset but was never recorded. The usage event is written AFTERWARDS, inside the same transaction that flips the row to \"sent\", so a send the carrier refused is never billed. Consequence you can observe: a message may briefly read \"queued\", and a message that stays \"queued\" is one whose outcome was never recorded - no carrier answer was written to it and it was not billed. That does NOT prove it never left: a crash after the carrier accepted it leaves the same row. The bias is deliberate and favours under-billing, because usage_events is append-only and an overcharge could never be corrected. SEGMENTS is the billed quantity and is measured here, not by the carrier - a body that falls back to UCS-2 (one emoji is enough) carries 70 characters per segment instead of 160. FROM must be E.164; alphanumeric sender IDs are registered through /v1/sms/sender-ids and are not accepted on this field, because the billing record constrains the sending address to E.164.","operationId":"sendSms","parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional client key. Repeating a request with the same key returns the original message instead of sending a second one. Scoped to your team and mode.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsMessageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessageDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Send an SMS message","tags":["sms"]},"get":{"description":"Reads the LOCAL record, not the carrier. The rows here are the billing anchor for this team and mode, newest first, and they outlive whatever retention the carrier applies. Test-mode and live-mode history are separate: a message sent in test mode never appears in live history.","operationId":"listSmsMessages","parameters":[{"name":"profileId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["queued","sent","failed"],"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessageListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List SMS messages","tags":["sms"]}},"/v1/sms/messages/{id}":{"get":{"description":"Reads the LOCAL record. A message whose profile is outside this credential's scope answers 404, not 403: a 403 would confirm that the message exists.","operationId":"getSmsMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","pattern":"^[0-9a-f]{24}$"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsMessageDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one SMS message","tags":["sms"]}},"/v1/sms/brands":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". Lists only resources assigned to accessible profiles, using their latest locally observed carrier snapshot. Read a single resource to refresh its state. Pagination totals are scoped to this list.","operationId":"listSmsBrands","parameters":[{"name":"country","required":false,"in":"query","schema":{"type":"string"}},{"name":"entityType","required":false,"in":"query","schema":{"enum":["PRIVATE_PROFIT","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT","SOLE_PROPRIETOR"],"type":"string"}},{"name":"displayName","required":false,"in":"query","schema":{"type":"string"}},{"name":"recordsPerPage","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsBrandListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List owned 10DLC brands","tags":["sms"]},"post":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". Set \"mock\": true to have the registry score the brand without charging vetting fees - the carrier offers this so a typo in an EIN is not discovered by paying for it.","operationId":"createSmsBrand","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSmsBrandDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsBrandResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Register a 10DLC brand","tags":["sms"]}},"/v1/sms/brands/{id}":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\".","operationId":"getSmsBrand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsBrandResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one 10DLC brand","tags":["sms"]}},"/v1/sms/campaigns":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". \"brandId\" is REQUIRED: the carrier publishes no account-wide campaign listing, so a call without it would be a guaranteed provider rejection rather than a broader result.","operationId":"listSmsCampaigns","parameters":[{"name":"recordsPerPage","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"page","required":false,"in":"query","schema":{"type":"integer","minimum":1}},{"name":"brandId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsCampaignListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List 10DLC campaigns of one brand","tags":["sms"]},"post":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\".","operationId":"createSmsCampaign","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSmsCampaignDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsCampaignResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Register a 10DLC campaign","tags":["sms"]}},"/v1/sms/campaigns/{id}":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\".","operationId":"getSmsCampaign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsCampaignResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one 10DLC campaign","tags":["sms"]}},"/v1/sms/sender-ids":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". Lists only resources assigned to accessible profiles, using their latest locally observed carrier snapshot. Read a single resource to refresh its state. Pagination totals are scoped to this list.","operationId":"listSmsSenderIds","parameters":[{"name":"pageSize","required":false,"in":"query","schema":{"type":"integer","minimum":1,"maximum":250}},{"name":"pageNumber","required":false,"in":"query","schema":{"type":"integer","minimum":1}},{"name":"messagingProfileId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSenderIdListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"List owned alphanumeric sender IDs","tags":["sms"]},"post":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". The carrier rule is three to eleven ASCII letters, digits and spaces, never digits alone. \"usLongCodeFallback\" is an E.164 number used where alphanumeric senders are refused outright, which is the case for US and Canadian carriers.","operationId":"createSmsSenderId","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSmsSenderIdDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSenderIdResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Register an alphanumeric sender ID","tags":["sms"]}},"/v1/sms/sender-ids/{id}":{"get":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\".","operationId":"getSmsSenderId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSenderIdResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Get one alphanumeric sender ID","tags":["sms"]},"delete":{"description":"Reads and writes the CARRIER registry directly. There is no local copy of these records in zumpo, on purpose: two copies of a registration would drift and nothing would notice. Consequences: results reflect the carrier at call time, pagination is the carrier page model rather than this API's cursor model, and a create is not idempotent - repeating it registers again. When the SMS provider is not configured the endpoint answers 503 sms_provider_unavailable rather than an empty list, so \"not configured\" is never mistaken for \"nothing registered\". The removed record is returned rather than an empty body, so the caller can log which messaging profile lost a sender without a read-before-write.","operationId":"deleteSmsSenderId","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsSenderIdResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"summary":"Delete an alphanumeric sender ID","tags":["sms"]}},"/v1/ai-providers":{"get":{"description":"Returns EVERY supported provider, configured or not, so a client never has to learn the supported set from a second endpoint. The plaintext key is never returned; `last4` is the only fragment of it that leaves the server. The set is fixed at 6 providers, so this endpoint is NOT paginated and accepts no limit or cursor. STORE AND LIST ONLY: no feature in zumpo reads these keys today. There is no AI workflow step and nothing in the API or the worker sends them to a model provider. They are stored sealed so the panel can show what is configured and so a future AI feature can use them; until that feature ships, storing a key changes no behaviour.","operationId":"listAiProviders","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiProviderCredentialListDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"List AI provider keys","tags":["ai-providers"]}},"/v1/ai-providers/{provider}":{"put":{"description":"Seals the key with AES-256-GCM and stores it. Sending a key for a provider that already has one REPLACES it; there is at most one key per provider. The plaintext is never returned again, not here and not by the list endpoint. NO PREFIX VALIDATION IS PERFORMED: zumpo does not track provider prefix schemes and enforcing one would risk rejecting a key that is valid. The accepted form is provider independent - 16-1024 characters, visible ASCII only, no whitespace anywhere, and surrounding whitespace is rejected rather than trimmed. STORE AND LIST ONLY: no feature in zumpo reads these keys today. There is no AI workflow step and nothing in the API or the worker sends them to a model provider. They are stored sealed so the panel can show what is configured and so a future AI feature can use them; until that feature ships, storing a key changes no behaviour.","operationId":"putAiProviderCredential","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["anthropic","openai","google","mistral","groq","openrouter"],"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutAiProviderCredentialDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiProviderCredentialDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Store or replace the API key for one AI provider","tags":["ai-providers"]},"delete":{"description":"Removes the sealed key. Returns 404 when no key is stored for the provider. Because nothing reads the key, deleting it stops no traffic - it only removes the stored secret. STORE AND LIST ONLY: no feature in zumpo reads these keys today. There is no AI workflow step and nothing in the API or the worker sends them to a model provider. They are stored sealed so the panel can show what is configured and so a future AI feature can use them; until that feature ships, storing a key changes no behaviour.","operationId":"deleteAiProviderCredential","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["anthropic","openai","google","mistral","groq","openrouter"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiProviderCredentialDeleteResponseDto"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Delete the stored API key for one AI provider","tags":["ai-providers"]}},"/v1/notifications/settings":{"get":{"description":"Returns the notification email preferences of the signed-in user for the current team. Preferences are per person, not per team: two members of the same team can subscribe to different categories. Every category is off by default, and a user who has never changed them gets all three false with a null updatedAt. Three categories a competitor exposes are deliberately not offered, because zumpo has no producer for them today and an unwired switch is worse than a missing one: payment alerts (billing events are never written to the event bus), usage alerts (quota.threshold_reached is a reserved webhook event with no producer), and marketing emails (no producer, and marketing consent is a separate legal surface from operational alerts). Transactional email — address verification, password reset and team invitations — is never governed by these preferences and cannot be turned off.","operationId":"getNotificationSettings","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettingsDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Retrieve your notification email preferences","tags":["notifications"]},"put":{"description":"Replaces the notification email preferences of the signed-in user for the current team. All three fields are required: this is a replace, not a partial update, so that an omitted field can never be read as an accidental opt-in. A member can only ever read and write their own row — the row is keyed by the caller identity and the database refuses a row for anyone who is not a member of the team. Emails are sent only for live mode events and only to verified, active addresses. Three categories a competitor exposes are deliberately not offered, because zumpo has no producer for them today and an unwired switch is worse than a missing one: payment alerts (billing events are never written to the event bus), usage alerts (quota.threshold_reached is a reserved webhook event with no producer), and marketing emails (no producer, and marketing consent is a separate legal surface from operational alerts). Transactional email — address verification, password reset and team invitations — is never governed by these preferences and cannot be turned off.","operationId":"updateNotificationSettings","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationSettingsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettingsDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Replace your notification email preferences","tags":["notifications"]}},"/v1/sso":{"get":{"description":"The stored client secret is never returned. Password login stays available regardless of this setting; this release cannot require SSO.","operationId":"getSsoConnection","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoConnectionDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Single sign-on is not configured on this deployment (SSO_PUBLIC_ORIGIN and PANEL_PUBLIC_ORIGIN are required).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Read the team's single sign-on connection","tags":["sso"]},"put":{"description":"Idempotent: a team has at most one connection. The email domain must be free across every team, because the login flow resolves a team from it alone.","operationId":"putSsoConnection","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutSsoConnectionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoConnectionDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Another team already claims this email domain.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Single sign-on is not configured on this deployment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Create or replace the team's single sign-on connection","tags":["sso"]},"delete":{"description":"Idempotent. In-flight login attempts stop working immediately because the callback re-reads the connection.","operationId":"deleteSsoConnection","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoDeleteResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Single sign-on is not configured on this deployment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Remove the team's single sign-on connection","tags":["sso"]}},"/v1/auth/sso/start":{"post":{"description":"Resolves the identity provider from the email domain and returns the URL to send the browser to. The response never reveals whether an account exists: no user lookup happens at all. A domain with no enabled connection is rejected with a generic error, because there is no authorization URL to return.","operationId":"startSsoLogin","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoLoginStartDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoLoginStartResponseDto"}}}},"400":{"description":"No enabled single sign-on connection serves this email domain. Disabled and missing connections are indistinguishable by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Single sign-on is not configured on this deployment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Begin a single sign-on login","tags":["sso"]}},"/v1/auth/sso/callback":{"get":{"description":"The identity provider sends the browser here. On success the panel session cookie is set and the browser is redirected back into the panel with 302. Password login remains available: single sign-on is an additional route and this release cannot require it.","operationId":"completeSsoLogin","parameters":[{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"code","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"302":{"description":"Login succeeded. Set-Cookie carries the panel session and Location points back into the panel."},"400":{"description":"The state is unknown, expired or already used. Every one of those cases returns the same error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"The identity provider could not be reached, or its ID token failed verification. The specific reason is written to the operator log only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[],"summary":"Complete a single sign-on login","tags":["sso"]}},"/v1/team/deactivation-request":{"post":{"description":"Generates a 6-digit confirmation code and emails it to the requesting user. The code is never returned by the API: knowing it proves access to that user's mailbox. It expires in 1 hour, can be used once, and requesting a new code invalidates the previous one. Requires the owner role.","operationId":"requestTeamDeactivation","parameters":[],"responses":{"202":{"description":"A confirmation code has been generated and delivery was attempted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTeamDeactivationResponseDto"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Email a confirmation code to start deactivating the team","tags":["team-deactivation"]}},"/v1/team/deactivation":{"post":{"description":"Deactivates the team. This is NOT a delete, and the difference is listed here on purpose. REMOVED: every API key is revoked, every scheduled, queued and held post is cancelled, every connected account is disconnected and its stored provider credentials are erased, pending invitations and invite links are revoked, webhook endpoints are deleted, and every team member is removed - including the caller. KEPT: published post history, usage records, the audit log, and billing records; nothing is destroyed there. Because the caller loses their own membership, this cannot be undone from the app. Requires the owner role, a valid confirmation code from requestTeamDeactivation, and the exact team name.","operationId":"deactivateTeam","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivateTeamDto"}}}},"responses":{"204":{"description":"The team has been deactivated."},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}},"headers":{"X-RateLimit-Limit":{"description":"Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.","schema":{"type":"integer","minimum":1}},"X-RateLimit-Remaining":{"description":"Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.","schema":{"type":"integer","format":"int64","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.","schema":{"type":"integer","minimum":1,"maximum":86400}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"502":{"description":"Platform error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZumpoErrorDto"}}}}},"security":[{"panelSession":[]},{"sessionBearer":[]}],"summary":"Deactivate the team using the emailed confirmation code","tags":["team-deactivation"]}}},"info":{"title":"zumpo API","description":"zumpo social publishing API — v1","version":"1.0.0","contact":{}},"tags":[],"servers":[{"url":"https://api.zumpo.io"}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"zumpo-api-key","type":"http"},"panelSession":{"type":"apiKey","in":"cookie","name":"zumpo_session","description":"Panel session cookie. Set by /v1/auth/login and /v1/auth/register; httpOnly, SameSite=Lax."},"sessionBearer":{"scheme":"bearer","bearerFormat":"zumpo-session-token","type":"http","description":"Panel session token (zs_...) sent as a bearer credential."}},"schemas":{"AuditLogEntryDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"action":{"type":"string","enum":["account.connected","account.disconnected","api_key.created","api_key.revoked","webhook_endpoint.created","webhook_endpoint.updated","webhook_endpoint.deleted","team_member.role_changed","team_member.removed","team_invitation.created","team_invitation.revoked","team_invitation.accepted","user.password_changed","connect_allowed_redirect.added","connect_allowed_redirect.removed","team.deactivation_requested","team.deactivated","ai_provider_credential.saved","ai_provider_credential.deleted","sso_connection.saved","sso_connection.deleted","sso_login.succeeded"],"example":"api_key.revoked"},"actorType":{"type":"string","enum":["user","api_key"],"example":"user"},"actorId":{"type":"string","nullable":true,"example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"resourceType":{"type":"string","nullable":true,"example":"api_key"},"resourceId":{"type":"string","nullable":true,"example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"before":{"type":"object","additionalProperties":true,"nullable":true,"description":"State before the action; null if absent. Its fields are determined by the write allowlist."},"after":{"type":"object","additionalProperties":true,"nullable":true,"description":"State after the action; null if absent. Its fields are determined by the write allowlist."},"ip":{"type":"string","nullable":true,"example":"203.0.113.10"},"userAgent":{"type":"string","nullable":true,"example":"Mozilla/5.0"},"mode":{"type":"string","enum":["live","test"],"nullable":true,"example":"live"},"createdAt":{"type":"string","format":"date-time","example":"2026-08-04T09:00:00.123456Z"}},"additionalProperties":false,"required":["id","action","actorType","actorId","resourceType","resourceId","before","after","ip","userAgent","mode","createdAt"]},"AuditLogListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogEntryDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"additionalProperties":false,"required":["data","hasMore","nextCursor"]},"RegisterDto":{"type":"object","properties":{"acceptTerms":{"type":"boolean","enum":[true],"description":"Explicit acceptance of the Terms of Service, including the incorporated DPA. Must be true."},"termsVersion":{"type":"string","enum":["2026-09-13.2"],"description":"Version of the Terms and incorporated DPA shown to and accepted by the registering team owner."},"email":{"type":"string","example":"ada@example.com"},"password":{"type":"string","example":"correct horse battery staple","minLength":12,"description":"At least 12 characters. Stored with argon2id on the server."},"name":{"type":"string","nullable":true,"example":"Ada Lovelace"},"teamName":{"type":"string","example":"Ada Labs","description":"Team name. If omitted, the local part of the e-mail is used."},"timezone":{"type":"string","example":"Europe/Istanbul","description":"IANA time zone of the default profile. If omitted, UTC."}},"required":["acceptTerms","termsVersion","email","password"]},"AuthUserDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"email":{"type":"string","example":"ada@example.com"},"name":{"type":"string","nullable":true,"example":"Ada Lovelace"}},"required":["id","email","name"]},"AuthTeamDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"name":{"type":"string","example":"Ada Labs"}},"required":["id","name"]},"SessionIdentityDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/AuthUserDto"},"team":{"$ref":"#/components/schemas/AuthTeamDto"},"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"],"example":"owner"},"mode":{"type":"string","enum":["live","test"],"example":"live","description":"The working mode active on this request (X-Zumpo-Mode)."}},"required":["user","team","role","mode"]},"RegisterPendingDto":{"type":"object","properties":{"verification":{"type":"string","example":"pending","enum":["pending"]}},"required":["verification"]},"ZumpoErrorDto":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable message. UNSTABLE — do not branch on it.","example":"WhatsApp session window expired; use a template message."},"type":{"type":"string","description":"Stable error category (does not change across versions).","enum":["invalid_request_error","authentication_error","permission_error","not_found","conflict","rate_limit_error","platform_error","platform_rejected","account_disconnected","media_error","api_error"],"example":"invalid_request_error"},"code":{"type":"string","description":"Stable machine-readable code.","example":"whatsapp_window_expired"},"param":{"type":"string","description":"Offending parameter, present only when relevant.","example":"body"},"docUrl":{"type":"string","description":"https://docs.zumpo.io/errors/{code}","example":"https://docs.zumpo.io/errors/whatsapp_window_expired"},"requestId":{"type":"string","description":"Support correlation id: req_ + 16 hex.","example":"req_7f3a9c2e1b8d4056"},"details":{"type":"object","additionalProperties":true,"description":"Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.","example":{"created":[{"kind":"campaign","platformId":"120210000000000001"},{"kind":"adSet","platformId":"120210000000000002"}]}}},"required":["error","type","code","docUrl","requestId"]},"VerifyEmailDto":{"type":"object","properties":{"token":{"type":"string","example":"zv_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}},"required":["token"]},"VerifyEmailResultDto":{"type":"object","properties":{"verified":{"type":"boolean","example":true}},"required":["verified"]},"ForgotPasswordDto":{"type":"object","properties":{"email":{"type":"string","example":"ada@example.com"}},"additionalProperties":false,"required":["email"]},"ForgotPasswordResultDto":{"type":"object","properties":{"reset":{"type":"string","example":"pending","enum":["pending"]}},"additionalProperties":false,"required":["reset"]},"ResetPasswordDto":{"type":"object","properties":{"token":{"type":"string","example":"zr_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"},"newPassword":{"type":"string","example":"a brand new passphrase","minLength":12,"description":"At least 12 characters. Stored with argon2id on the server."}},"additionalProperties":false,"required":["token","newPassword"]},"ResetPasswordResultDto":{"type":"object","properties":{"reset":{"type":"boolean","example":true}},"additionalProperties":false,"required":["reset"]},"LoginDto":{"type":"object","properties":{"email":{"type":"string","example":"ada@example.com"},"password":{"type":"string","example":"correct horse battery staple"}},"required":["email","password"]},"CredentialVerificationDto":{"type":"object","properties":{"valid":{"type":"boolean","example":true,"enum":[true]},"userId":{"type":"string","example":"6507a1b2c3d4e5f6a7b8c9d0","description":"The user id on a session identity. Not supplied on an API key."},"authType":{"type":"string","enum":["api_key","oauth","session"],"example":"api_key"},"scope":{"type":"string","nullable":true,"example":null,"description":"Space separated OAuth scope list. null on an API key and on a panel session."}},"required":["valid","authType","scope"]},"ChangePasswordDto":{"type":"object","properties":{"currentPassword":{"type":"string","example":"correct horse battery staple"},"newPassword":{"type":"string","example":"a brand new passphrase","minLength":12}},"required":["currentPassword","newPassword"]},"CreateApiKeyDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"example":"CI pipeline","description":"Label to recognize the key by. STRONGLY RECOMMENDED but not required: if the field is not supplied at all, or null is supplied, the key is created unnamed and stored as name: null. IF SUPPLIED it cannot be empty or whitespace-only and can be at most 120 characters; otherwise 400 invalid_name is returned. Leading and trailing whitespace is trimmed before storing."},"mode":{"type":"string","enum":["live","test"],"example":"live","description":"If omitted, 'live'. The mode is locked to the prefix of the key."},"readOnly":{"type":"boolean","example":false},"profileIds":{"description":"If provided, the key accesses only these profiles. If omitted, full scope.","type":"array","items":{"type":"string"}},"expiresIn":{"type":"integer","example":90,"description":"Validity period of the key (days). If omitted it never expires."},"scope":{"type":"string","enum":["full","profiles"],"default":"full","description":"'full' accesses all profiles; 'profiles' makes the profileIds field required."},"permission":{"type":"string","enum":["read-write","read"],"default":"read-write","description":"A 'read' key limits it to read-only permissions."}},"additionalProperties":false},"ZernioApiKeyProfileProjectionDto":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}}},"ZernioApiKeyProjectionDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"keyPreview":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"key":{"type":"string","description":"Only the creation response can fill this; listing never returns this field."},"scope":{"type":"string","enum":["full","profiles"],"default":"full"},"profileIds":{"type":"array","items":{"$ref":"#/components/schemas/ZernioApiKeyProfileProjectionDto"}},"permission":{"type":"string","enum":["read-write","read"],"default":"read-write"}}},"CreatedApiKeyDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"key":{"type":"string","example":"sk_0123456789abcdef…","description":"The raw key. It is returned ONLY HERE, ONCE, and cannot be shown again."},"prefix":{"type":"string","example":"sk_01234"},"last4":{"type":"string","example":"cdef"},"name":{"type":"string","nullable":true,"example":"CI pipeline"},"mode":{"type":"string","enum":["live","test"]},"readOnly":{"type":"boolean","example":false},"scope":{"type":"string","enum":["full","profiles"]},"profileIds":{"type":"array","items":{"type":"string"}},"permission":{"type":"string","enum":["read-write","read"]},"expiresAt":{"type":"string","nullable":true,"format":"date-time","example":null},"createdAt":{"type":"string","example":"2026-07-31T12:00:00.000Z"},"message":{"type":"string","example":"API key created successfully"},"apiKey":{"$ref":"#/components/schemas/ZernioApiKeyProjectionDto"}},"required":["id","key","prefix","last4","name","mode","readOnly","scope","profileIds","permission","expiresAt","createdAt","message","apiKey"]},"ApiKeyDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"prefix":{"type":"string","example":"sk_01234"},"last4":{"type":"string","example":"cdef"},"name":{"type":"string","nullable":true,"example":"CI pipeline"},"mode":{"type":"string","enum":["live","test"]},"readOnly":{"type":"boolean","example":false},"scope":{"type":"string","enum":["full","profiles"]},"profileIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","nullable":true,"format":"date-time","example":null},"createdAt":{"type":"string","example":"2026-07-31T12:00:00.000Z"},"lastUsedAt":{"type":"string","nullable":true,"example":null}},"required":["id","prefix","last4","name","mode","readOnly","scope","profileIds","expiresAt","createdAt","lastUsedAt"]},"ApiKeyListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"},"apiKeys":{"type":"array","items":{"$ref":"#/components/schemas/ZernioApiKeyProjectionDto"}}},"required":["data","hasMore","nextCursor","apiKeys"]},"DeleteApiKeyResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"API key deleted successfully"}},"required":["message"]},"CreateInvitationDto":{"type":"object","properties":{"email":{"type":"string","example":"grace@example.com"},"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"],"example":"member"}},"required":["email","role"]},"InvitationCreateResultDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"email":{"type":"string","example":"grace@example.com"},"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"]},"invitedByUserId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"createdAt":{"type":"string","example":"2026-07-31T12:00:00.000Z"},"expiresAt":{"type":"string","example":"2026-08-07T12:00:00.000Z"},"deliveryStatus":{"type":"string","enum":["sent","not_configured"],"example":"sent","description":"not_configured: no e-mail provider is defined in this deployment, the invitation WAS NOT DELIVERED."}},"required":["id","email","role","invitedByUserId","createdAt","expiresAt","deliveryStatus"]},"InvitationDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"email":{"type":"string","example":"grace@example.com"},"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"]},"invitedByUserId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"createdAt":{"type":"string","example":"2026-07-31T12:00:00.000Z"},"expiresAt":{"type":"string","example":"2026-08-07T12:00:00.000Z"}},"required":["id","email","role","invitedByUserId","createdAt","expiresAt"]},"InvitationListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InvitationDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"AcceptInvitationDto":{"type":"object","properties":{"token":{"type":"string","example":"inv_...","description":"The zi_ token from the e-mail invitation, or the single-use inv_ token from the createInviteToken response."},"email":{"type":"string","example":"grace@example.com","description":"The target address of the invitation. On a mismatch the SAME response as for an unknown token is returned (410) and the target address IS NOT LEAKED."},"password":{"type":"string","minLength":12,"description":"Required on new accounts and while reclaiming an older unverified account on the same address; not needed on verified existing accounts."},"name":{"type":"string","nullable":true,"example":"Grace Hopper"}},"required":["token","email"]},"TeamMemberDto":{"type":"object","properties":{"userId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"email":{"type":"string","example":"grace@example.com"},"name":{"type":"string","nullable":true,"example":"Grace Hopper"},"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"]}},"required":["userId","email","name","role"]},"TeamMemberListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TeamMemberDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"UpdateMemberRoleDto":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","billing_admin","member","read_only"],"example":"admin"}},"required":["role"]},"ListWorkspaceUserDto":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"isRoot":{"type":"boolean"},"profileAccess":{"type":"array","items":{"type":"string"}},"lastLoginAt":{"type":"string","format":"date-time"}}},"ListUsersResponseDto":{"type":"object","properties":{"currentUserId":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/ListWorkspaceUserDto"}}}},"WorkspaceUserDto":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"isRoot":{"type":"boolean"},"profileAccess":{"type":"array","items":{"type":"string"}}}},"GetUserResponseDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/WorkspaceUserDto"}}},"CreateInviteTokenDto":{"type":"object","properties":{"scope":{"type":"string","enum":["all","profiles"],"description":"'all' grants all profiles in the request mode; 'profiles' grants only profileIds."},"profileIds":{"description":"Required when scope is 'profiles'; forbidden when scope is 'all'.","type":"array","items":{"type":"string"}},"role":{"type":"string","enum":["admin","member","billing_admin","viewer"],"default":"member","description":"Role granted on acceptance. billing_admin is billing-only; viewer maps to the local read_only role."},"readOnly":{"type":"boolean","deprecated":true,"description":"Deprecated; use role 'viewer'. true cannot be combined with admin or billing_admin."}},"additionalProperties":false,"required":["scope"]},"InviteTokenCreatedDto":{"type":"object","properties":{"token":{"type":"string","example":"inv_2uE20A3j8mvvT8fRDwdHA0uIcKO5pJwB32FH6cC4hWQ"},"scope":{"type":"string","enum":["all","profiles"]},"invitedProfileIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time"},"inviteUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["token","scope","invitedProfileIds","expiresAt","inviteUrl"]},"ProfileDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex profile id"},"name":{"type":"string","example":"Acme Corp"},"timezone":{"type":"string","example":"Europe/Istanbul","description":"IANA time zone"},"userId":{"type":"string"},"description":{"type":"string"},"color":{"type":"string","example":"#4CAF50"},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","timezone"]},"ZernioProfileProjectionDto":{"type":"object","properties":{"_id":{"type":"string"},"userId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"isDefault":{"type":"boolean"},"isOverLimit":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"ProfileListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProfileDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/ZernioProfileProjectionDto"}},"total":{"type":"number","minimum":0},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1,"maximum":1000}},"required":["data","hasMore","nextCursor"]},"CreateProfileDto":{"type":"object","properties":{"name":{"type":"string","example":"Acme Corp"},"timezone":{"type":"string","example":"Europe/Istanbul","default":"UTC"},"description":{"type":"string","example":"Profile for marketing campaigns"},"color":{"type":"string","example":"#4CAF50"}},"required":["name"]},"ProfileMutationResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex profile id"},"name":{"type":"string","example":"Acme Corp"},"timezone":{"type":"string","example":"Europe/Istanbul","description":"IANA time zone"},"userId":{"type":"string"},"description":{"type":"string"},"color":{"type":"string","example":"#4CAF50"},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"message":{"type":"string","example":"Profile updated successfully"},"profile":{"$ref":"#/components/schemas/ZernioProfileProjectionDto"}},"required":["id","name","timezone","message","profile"]},"ProfileGetResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"name":{"type":"string","example":"Acme Corp"},"timezone":{"type":"string","example":"Europe/Istanbul"},"profile":{"$ref":"#/components/schemas/ZernioProfileProjectionDto"}},"required":["id","name","timezone","profile"]},"UpdateProfileDto":{"type":"object","properties":{"name":{"type":"string","example":"Acme Corp"},"timezone":{"type":"string","example":"America/New_York"},"description":{"type":"string","example":"Profile for marketing campaigns"},"color":{"type":"string","example":"#2196F3"},"isDefault":{"type":"boolean"}}},"ProfileDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Profile deleted successfully"}}},"FollowerStatsPointDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"followers":{"type":"number","minimum":0}},"additionalProperties":false,"required":["date","followers"]},"AccountXCapabilitiesDto":{"type":"object","properties":{"analytics":{"type":"boolean","default":false},"inbox":{"type":"boolean","default":false}},"additionalProperties":false,"required":["analytics","inbox"]},"LinkedInAccountVanityDataDto":{"type":"object","properties":{"vanityName":{"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false,"required":["vanityName"]},"LinkedInAccountProfileDataDto":{"type":"object","properties":{"bio":{"type":"string","nullable":true,"maxLength":4096,"description":"Provider-verified member headline or organization description; null means LinkedIn returned no value."},"extraData":{"$ref":"#/components/schemas/LinkedInAccountVanityDataDto"}},"additionalProperties":false,"required":["bio"]},"LinkedInAccountMetadataDto":{"type":"object","properties":{"profileData":{"$ref":"#/components/schemas/LinkedInAccountProfileDataDto"},"organizationInfo":{"$ref":"#/components/schemas/LinkedInAccountVanityDataDto"}},"additionalProperties":false,"required":["profileData"]},"AccountDto":{"type":"object","properties":{"connectionPurpose":{"type":"string","enum":["meta_ads"],"description":"A standalone advertising authorization, not a social publishing account."},"id":{"type":"string"},"profileId":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"platformAccountId":{"type":"string"},"username":{"type":"string","description":"Persisted provider handle, falling back to the stable provider account id for legacy rows."},"displayName":{"type":"string","nullable":true},"avatarUrl":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","reconnect_required","disconnected","error"]},"connectedAt":{"type":"string","format":"date-time","nullable":true},"xCapabilities":{"$ref":"#/components/schemas/AccountXCapabilitiesDto"},"metadata":{"description":"Present only when a provider-verified LinkedIn profile snapshot is persisted.","allOf":[{"$ref":"#/components/schemas/LinkedInAccountMetadataDto"}]}},"required":["id","profileId","platform","platformAccountId","username","displayName","avatarUrl","status","connectedAt"]},"AccountListProjectionDto":{"type":"object","properties":{"_id":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads","googlebusiness"]},"profileId":{"type":"string"},"displayName":{"type":"string"},"username":{"type":"string"},"profilePicture":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"needsReconnection":{"type":"boolean"},"metadata":{"$ref":"#/components/schemas/LinkedInAccountMetadataDto"}},"additionalProperties":false,"required":["_id","platform","profileId","username","profilePicture","isActive","needsReconnection"]},"AccountListPaginationDto":{"type":"object","properties":{"page":{"type":"number","minimum":1},"limit":{"type":"number","minimum":1,"maximum":100},"total":{"type":"number","minimum":0},"pages":{"type":"number","minimum":0}},"additionalProperties":false,"required":["page","limit","total","pages"]},"AccountListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountDto"}},"accounts":{"description":"Zernio-compatible projection backed only by persisted account fields. Provider-only and billing-gated fields are omitted.","type":"array","items":{"$ref":"#/components/schemas/AccountListProjectionDto"}},"pagination":{"description":"Present only when page and limit are supplied together.","allOf":[{"$ref":"#/components/schemas/AccountListPaginationDto"}]},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"required":["data","accounts","hasMore","nextCursor"]},"AccountWithFollowerStatsDto":{"type":"object","properties":{"_id":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads","googlebusiness"]},"profileId":{"type":"string"},"parentAccountId":{"type":"string","nullable":true,"description":"Zumpo stores posting accounts only, so no ads-parent relationship exists."},"displayName":{"type":"string"},"profilePicture":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"needsReconnection":{"type":"boolean"},"metadata":{"description":"Present only when a provider-verified LinkedIn profile snapshot is persisted.","allOf":[{"$ref":"#/components/schemas/LinkedInAccountMetadataDto"}]},"currentFollowers":{"type":"number","minimum":0},"followersCount":{"type":"number","minimum":0},"lastUpdated":{"type":"string","format":"date-time"},"followersLastUpdated":{"type":"string","format":"date-time"},"growth":{"type":"number"},"growthPercentage":{"type":"number"},"dataPoints":{"type":"number","minimum":1}},"additionalProperties":false,"required":["_id","platform","profileId","parentAccountId","profilePicture","isActive","needsReconnection","currentFollowers","followersCount","lastUpdated","followersLastUpdated","growth","growthPercentage","dataPoints"]},"FollowerStatsDateRangeDto":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["from","to"]},"FollowerStatsResponseDto":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AccountWithFollowerStatsDto"}},"stats":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/FollowerStatsPointDto"}}},"dateRange":{"$ref":"#/components/schemas/FollowerStatsDateRangeDto"},"granularity":{"type":"string","enum":["daily","weekly","monthly"]}},"additionalProperties":false,"required":["accounts","stats","dateRange","granularity"]},"AccountHealthScopeDto":{"type":"object","properties":{"filtered":{"type":"boolean","description":"If true, summary and data describe the scope NARROWED by the filters in the request. If false there is no request narrowing; the scope is all accounts the key can see (on a profile-scoped key the fleet already consists of exactly that scope)."},"profileIds":{"description":"The applied profileId filter; empty array = no profile narrowing.","type":"array","items":{"type":"string"}},"platforms":{"type":"array","description":"The applied platform filter; empty array = no platform narrowing.","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]}}},"required":["filtered","profileIds","platforms"]},"AccountHealthSummaryDto":{"type":"object","properties":{"total":{"type":"number","description":"ALL accounts in scope - not the returned page. What the scope is (narrowed, or everything the key sees) is written in the `scope` field."},"healthy":{"type":"number"},"warning":{"type":"number"},"error":{"type":"number"},"needsReconnect":{"type":"number"},"degraded":{"type":"number"},"blocked":{"type":"number"},"unknown":{"type":"number","description":"Accounts with no measurement at all. NOT SUMMED with healthy."},"needsRefresh":{"type":"number","description":"The number of accounts whose evidence is older than 24 hours or absent."},"oldestCheckedAt":{"type":"string","format":"date-time","nullable":true,"description":"The stalest measurement in scope; null if there is no measurement at all."},"issues":{"type":"array","items":{"type":"string","enum":["account_disconnected","connection_error","token_revoked","token_expired","permissions_insufficient","reconnect_required","last_check_failed","health_unknown","health_stale"]}},"recommendations":{"type":"array","items":{"type":"string","enum":["reconnect_account","reauthorize_scopes","wait_for_health_check"]}}},"required":["total","healthy","degraded","blocked","unknown","needsRefresh","oldestCheckedAt","issues","recommendations"]},"AccountHealthEntryDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"status":{"type":"string","enum":["active","reconnect_required","disconnected","error"],"description":"Connection state; the same value as GET /v1/accounts."},"state":{"type":"string","enum":["healthy","degraded","blocked","unknown"],"description":"The single discriminator. unknown = there is no health measurement at all; it IS NOT healthy."},"canPost":{"type":"boolean","nullable":true,"description":"null = not measured yet. The true claim is made only when there is evidence."},"tokenValid":{"type":"boolean","nullable":true,"description":"null = there is no stored health measurement."},"needsReconnect":{"type":"boolean","nullable":true,"description":"null = there is no stored health measurement and the account state does not tell either."},"needsRefresh":{"type":"boolean","description":"The evidence is older than 24 hours or absent. The threshold is locked by the PRD."},"lastCheckedAt":{"type":"string","format":"date-time","nullable":true,"description":"Time of the stored measurement; null means it was never measured."},"evidenceAgeSeconds":{"type":"number","nullable":true,"description":"Age of the evidence (seconds). The response makes no LIVE provider call; staleness is declared explicitly here."},"nextCheckAt":{"type":"string","format":"date-time","nullable":true,"description":"The moment background maintenance has scheduled for the next check."},"issues":{"type":"array","description":"A fixed catalog, in severity order. It is not derived from customer input.","items":{"type":"string","enum":["account_disconnected","connection_error","token_revoked","token_expired","permissions_insufficient","reconnect_required","last_check_failed","health_unknown","health_stale"]}},"recommendations":{"type":"array","items":{"type":"string","enum":["reconnect_account","reauthorize_scopes","wait_for_health_check"]}}},"required":["id","profileId","platform","status","state","canPost","tokenValid","needsReconnect","needsRefresh","lastCheckedAt","evidenceAgeSeconds","nextCheckAt","issues","recommendations"]},"CanonicalAccountHealthEntryDto":{"type":"object","properties":{"accountId":{"type":"string"},"platform":{"type":"string"},"profileId":{"type":"string"},"status":{"type":"string","enum":["healthy","warning","error"]},"displayName":{"type":"string"},"tokenExpiresAt":{"type":"string","format":"date-time","nullable":true},"canPost":{"type":"boolean"},"tokenValid":{"type":"boolean"},"needsReconnect":{"type":"boolean"},"issues":{"type":"array","items":{"type":"string"}}}},"AccountHealthOverviewDto":{"type":"object","properties":{"generatedAt":{"type":"string","format":"date-time","description":"The moment the response was produced; evidenceAgeSeconds is relative to this moment."},"scope":{"description":"summary and data ALWAYS describe the same scope; that scope is written here.","allOf":[{"$ref":"#/components/schemas/AccountHealthScopeDto"}]},"summary":{"description":"A summary of the scope described by `scope`; not of the page.","allOf":[{"$ref":"#/components/schemas/AccountHealthSummaryDto"}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountHealthEntryDto"}},"accounts":{"description":"Canonical Zernio projection of the same stored evidence in data. Provider-only fields are omitted when Zumpo has no durable evidence.","type":"array","items":{"$ref":"#/components/schemas/CanonicalAccountHealthEntryDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"required":["generatedAt","scope","summary","data","hasMore","nextCursor"]},"AccountDisconnectDto":{"type":"object","properties":{"id":{"type":"string"},"profileId":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"platformAccountId":{"type":"string"},"username":{"type":"string","description":"Persisted provider handle, falling back to the stable provider account id for legacy rows."},"displayName":{"type":"string","nullable":true},"avatarUrl":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","reconnect_required","disconnected","error"]},"connectedAt":{"type":"string","format":"date-time","nullable":true},"revocationStatus":{"type":"string","enum":["pending","complete"]}},"required":["id","profileId","platform","platformAccountId","username","displayName","avatarUrl","status","connectedAt","revocationStatus"]},"UpdateAccountXCapabilitiesDto":{"type":"object","properties":{"analytics":{"type":"boolean"},"inbox":{"type":"boolean"}},"additionalProperties":false},"UpdateAccountDto":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":512},"username":{"type":"string","minLength":1,"maxLength":512},"xCapabilities":{"$ref":"#/components/schemas/UpdateAccountXCapabilitiesDto"}},"additionalProperties":false},"UpdateAccountResultDto":{"type":"object","properties":{"message":{"type":"string","example":"Account updated successfully"},"username":{"type":"string"},"displayName":{"type":"string","nullable":true},"xCapabilities":{"$ref":"#/components/schemas/AccountXCapabilitiesDto"}},"additionalProperties":false,"required":["message","username","displayName"]},"MoveAccountToProfileDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"}},"additionalProperties":false,"required":["profileId"]},"MoveAccountToProfileResultDto":{"type":"object","properties":{"message":{"type":"string","example":"Account updated successfully"},"profileId":{"type":"string"}},"additionalProperties":false,"required":["message","profileId"]},"DeleteAccountResultDto":{"type":"object","properties":{"message":{"type":"string","example":"Account disconnected successfully"}},"additionalProperties":false,"required":["message"]},"PinterestBoardPrivacy":{"type":"string","enum":["PUBLIC","PROTECTED","SECRET"],"description":"Privacy returned by Pinterest."},"PinterestBoardDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20,"description":"Pinterest board id."},"name":{"type":"string","minLength":1,"maxLength":180,"description":"Provider-visible board name."},"description":{"type":"string","maxLength":500,"description":"Provider-visible board description."},"privacy":{"description":"Privacy returned by Pinterest.","allOf":[{"$ref":"#/components/schemas/PinterestBoardPrivacy"}]}},"additionalProperties":false},"PinterestBoardListDto":{"type":"object","properties":{"boards":{"type":"array","items":{"$ref":"#/components/schemas/PinterestBoardDto"}}},"additionalProperties":false},"SetPinterestDefaultBoardDto":{"type":"object","properties":{"defaultBoardId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","minLength":1,"maxLength":20,"description":"Provider-owned Pinterest board ID to remember as the default."},"defaultBoardName":{"type":"string","minLength":1,"maxLength":180,"description":"Optional exact provider-name assertion. When omitted, the verified provider name is stored."}},"additionalProperties":false,"required":["defaultBoardId"]},"PinterestUpdatedAccountDto":{"type":"object","properties":{"_id":{"type":"string"},"platform":{"type":"string","enum":["pinterest"]},"profileId":{"oneOf":[{"type":"string"},{"type":"object","properties":{"_id":{"type":"string"},"userId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"isDefault":{"type":"boolean"},"isOverLimit":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}}]},"username":{"type":"string"},"displayName":{"type":"string"},"profilePicture":{"type":"string","nullable":true},"profileUrl":{"type":"string"},"needsReconnection":{"type":"boolean"},"followersCount":{"type":"number"},"followersLastUpdated":{"type":"string","format":"date-time"},"parentAccountId":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":true},"isActive":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["_id","platform","profileId","isActive"]},"PinterestDefaultBoardResultDto":{"type":"object","properties":{"message":{"type":"string","enum":["Default Pinterest board updated successfully"]},"account":{"$ref":"#/components/schemas/PinterestUpdatedAccountDto"}},"additionalProperties":false,"required":["message","account"]},"PinterestCreateBoardPrivacy":{"type":"string","enum":["PUBLIC","PROTECTED"],"description":"Board privacy. Secret boards are not supported; they need an OAuth scope this integration does not request."},"PinterestCreateBoardDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":180,"description":"Provider-visible board name."},"description":{"type":"string","maxLength":500,"description":"Optional provider-visible board description."},"privacy":{"default":"PUBLIC","description":"Board privacy. Secret boards are not supported; they need an OAuth scope this integration does not request.","allOf":[{"$ref":"#/components/schemas/PinterestCreateBoardPrivacy"}]}},"additionalProperties":false,"required":["name"]},"PinterestCreatedBoardDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20,"description":"Pinterest board id. It can be used immediately as a Pinterest post boardId."},"name":{"type":"string","minLength":1,"maxLength":180},"description":{"type":"string","maxLength":500},"privacy":{"allOf":[{"$ref":"#/components/schemas/PinterestCreateBoardPrivacy"}]},"url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["id","name","privacy"]},"PinterestBoardCreateResultDto":{"type":"object","properties":{"board":{"$ref":"#/components/schemas/PinterestCreatedBoardDto"}},"additionalProperties":false,"required":["board"]},"PinterestBoardSectionDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,63}$","maxLength":64,"description":"Pinterest board-section id."},"name":{"type":"string","minLength":1,"maxLength":180,"description":"Provider-visible board-section name."},"boardId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20,"description":"Selected Pinterest board id owned by the account."}},"additionalProperties":false,"required":["id","name","boardId"]},"PinterestBoardSectionListDto":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/PinterestBoardSectionDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192,"description":"Opaque account-bound cursor. Null when the provider has no further page."}},"additionalProperties":false,"required":["data","hasMore","nextCursor"]},"AccountHealthDto":{"type":"object","properties":{"tokenStatus":{"type":"string","enum":["valid","expired","revoked"]},"permissionStatus":{"type":"string","enum":["ok","insufficient","unknown"]},"needsReconnect":{"type":"boolean"},"lastCheckedAt":{"type":"string","format":"date-time","nullable":true},"nextCheckAt":{"type":"string","format":"date-time"},"lastErrorCode":{"type":"string","nullable":true}},"required":["tokenStatus","permissionStatus","needsReconnect","lastCheckedAt","nextCheckAt","lastErrorCode"]},"BlueskySettingsResponseDto":{"type":"object","properties":{"defaultLangs":{"nullable":true,"minItems":1,"maxItems":3,"example":["tr"],"description":"One to three BCP-47 language tags applied when a Bluesky post does not declare langs; null disables the default.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["defaultLangs"]},"UpdateBlueskySettingsDto":{"type":"object","properties":{"defaultLangs":{"nullable":true,"minItems":1,"maxItems":3,"example":["tr"],"description":"One to three BCP-47 language tags applied when a Bluesky post does not declare langs; null disables the default.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["defaultLangs"]},"DiscordChannelDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{5,19}$","description":"Discord channel snowflake."},"name":{"type":"string","minLength":1,"maxLength":100,"description":"Discord channel name."},"type":{"type":"integer","enum":[0,5,15],"description":"Discord channel type: 0 text, 5 announcement, 15 forum."}},"additionalProperties":false,"required":["id","name","type"]},"DiscordChannelsResponseDto":{"type":"object","properties":{"channels":{"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/DiscordChannelDto"}}},"additionalProperties":false,"required":["channels"]},"DiscordGuildRoleDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{5,19}$","description":"Discord role snowflake."},"name":{"type":"string","minLength":1,"maxLength":100},"color":{"type":"integer","minimum":0,"maximum":16777215},"position":{"type":"integer","minimum":0,"maximum":249},"permissions":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,19})$","description":"Canonical decimal Discord permission bitfield."},"managed":{"type":"boolean"},"mentionable":{"type":"boolean"},"hoist":{"type":"boolean"}},"additionalProperties":false,"required":["id","name","color","position","permissions","managed","mentionable","hoist"]},"DiscordGuildRolesResponseDto":{"type":"object","properties":{"data":{"minItems":1,"maxItems":250,"type":"array","items":{"$ref":"#/components/schemas/DiscordGuildRoleDto"}}},"additionalProperties":false,"required":["data"]},"DiscordGuildRoleCreateRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"color":{"type":"integer","minimum":0,"maximum":16777215},"hoist":{"type":"boolean"},"mentionable":{"type":"boolean"},"permissions":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,19})$","description":"Canonical decimal Discord permission bitfield."}},"additionalProperties":false,"required":["name"]},"DiscordGuildRoleResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DiscordGuildRoleDto"}},"additionalProperties":false,"required":["data"]},"DiscordGuildRoleEditRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"color":{"type":"integer","minimum":0,"maximum":16777215},"hoist":{"type":"boolean"},"mentionable":{"type":"boolean"},"permissions":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,19})$","description":"Canonical decimal Discord permission bitfield."}},"additionalProperties":false,"minProperties":1},"DiscordGuildRoleDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"DiscordDirectMessageAttachmentDto":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"filename":{"type":"string","minLength":1,"maxLength":256},"mimeType":{"type":"string"},"size":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["type","url"]},"DiscordDirectMessageRecipientDto":{"type":"object","properties":{"userId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"platform":{"type":"string","enum":["discord"]}},"additionalProperties":false,"required":["userId","platform"]},"DiscordDirectMessageAccountDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"username":{"type":"string"},"displayName":{"type":"string"}},"additionalProperties":false,"required":["id"]},"DiscordMessageResourceDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"channel_id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"content":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"author":{"type":"object","additionalProperties":true},"attachments":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":10},"embeds":{"type":"array","items":{"type":"object","additionalProperties":true},"maxItems":10}},"required":["id","channel_id","content","timestamp","author","attachments","embeds"]},"DiscordThreadResourceDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"name":{"type":"string","minLength":1,"maxLength":100}},"required":["id","name"]},"DiscordDirectMessageRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"userId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"content":{"type":"string","maxLength":2000},"embeds":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":true}},"attachments":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/DiscordDirectMessageAttachmentDto"}},"tts":{"type":"boolean"}},"additionalProperties":false,"required":["accountId","userId"]},"DiscordDirectMessageResponseDto":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"url":{"type":"string","format":"uri"},"timestamp":{"type":"string","format":"date-time"},"recipient":{"$ref":"#/components/schemas/DiscordDirectMessageRecipientDto"},"account":{"$ref":"#/components/schemas/DiscordDirectMessageAccountDto"}},"additionalProperties":false,"required":["messageId","channelId","url","timestamp","recipient","account"]},"DiscordMessageDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"DiscordMessageResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DiscordMessageResourceDto"}},"additionalProperties":false,"required":["data"]},"DiscordThreadCreateRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"messageId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"autoArchiveDuration":{"type":"integer","enum":[60,1440,4320,10080]}},"additionalProperties":false,"required":["name"]},"DiscordThreadResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DiscordThreadResourceDto"}},"additionalProperties":false,"required":["data"]},"DiscordPinnedMessagesResponseDto":{"type":"object","properties":{"data":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/DiscordMessageResourceDto"}}},"additionalProperties":false,"required":["data"]},"DiscordSettingsAccountDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["discord"],"example":"discord"},"username":{"type":"string","minLength":1,"maxLength":100},"displayName":{"type":"string","minLength":1,"maxLength":100},"profilePicture":{"type":"string","format":"uri"},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"channelName":{"type":"string","minLength":1,"maxLength":100},"channelType":{"type":"string","enum":["0","5","15"]},"guildId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"webhookUsername":{"type":"string","nullable":true,"maxLength":80},"webhookAvatarUrl":{"type":"string","format":"uri","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["_id","platform","username","displayName","channelId","channelName","channelType","guildId","webhookUsername","webhookAvatarUrl"]},"DiscordSettingsResponseDto":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/DiscordSettingsAccountDto"}},"additionalProperties":false,"required":["account"]},"UpdateDiscordSettingsDto":{"type":"object","properties":{"webhookUsername":{"type":"string","maxLength":80,"description":"Webhook author name. Empty string resets to the default Zernio identity."},"webhookAvatarUrl":{"type":"string","maxLength":2048,"description":"Public HTTPS webhook avatar URL. Empty string resets it."},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$","description":"Writable text, announcement, or forum channel in the same guild."}},"additionalProperties":false},"UpdateDiscordSettingsResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Discord settings updated"},"account":{"$ref":"#/components/schemas/DiscordSettingsAccountDto"}},"additionalProperties":false,"required":["message","account"]},"DiscordPinResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"operation":{"type":"string","enum":["message_pinned"]},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$","description":"Canonical Discord channel or forum-thread snowflake."},"messageId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$","description":"Canonical Discord message snowflake."}},"additionalProperties":false,"required":["success","operation","channelId","messageId"]},"DiscordUnpinResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"operation":{"type":"string","enum":["message_unpinned"]},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$","description":"Canonical Discord channel or forum-thread snowflake."},"messageId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$","description":"Canonical Discord message snowflake."}},"additionalProperties":false,"required":["success","operation","channelId","messageId"]},"FacebookPostEarningUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["content_monetization_earnings","monetization_approximate_earnings"]},"reason":{"type":"string","enum":["not_enrolled","permission_missing","unsupported_metric","no_data","unreadable_value","mixed_currency","upstream_error"]},"message":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["metric","reason","message"]},"FacebookPostEarningsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"postId":{"type":"string","pattern":"^[1-9]\\d{0,19}(?:_[1-9]\\d{0,19})?$"},"platform":{"type":"string","enum":["facebook"]},"period":{"type":"string","enum":["lifetime"]},"metrics":{"type":"object","additionalProperties":{"type":"object","required":["total","unit","currency"],"additionalProperties":false,"properties":{"total":{"type":"number","minimum":0},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true,"pattern":"^[A-Z]{3}$"}}}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/FacebookPostEarningUnavailableMetricDto"}},"dataDelay":{"type":"string","enum":["Meta restates monetization earnings after the fact. Per-post earnings are lifetime cumulative and must not be summed across dates."]}},"additionalProperties":false,"required":["success","accountId","postId","platform","period","metrics","dataDelay"]},"FacebookMessengerMenuActionDto":{"type":"object","properties":{"type":{"type":"string","enum":["postback","web_url"]},"title":{"type":"string","minLength":1,"maxLength":30},"payload":{"type":"string","minLength":1,"maxLength":1000,"description":"Required when type is postback."},"url":{"type":"string","format":"uri","minLength":1,"maxLength":2048,"description":"Required when type is web_url. Must be https."},"webview_height_ratio":{"type":"string","enum":["compact","tall","full"]}},"additionalProperties":false,"required":["type","title"]},"FacebookMessengerMenuItemDto":{"type":"object","properties":{"type":{"type":"string","enum":["postback","web_url","nested"]},"title":{"type":"string","minLength":1,"maxLength":30},"payload":{"type":"string","minLength":1,"maxLength":1000,"description":"Required when type is postback."},"url":{"type":"string","format":"uri","minLength":1,"maxLength":2048,"description":"Required when type is web_url. Must be https."},"webview_height_ratio":{"type":"string","enum":["compact","tall","full"]},"call_to_actions":{"minItems":1,"maxItems":5,"description":"Required when type is nested. Nested items cannot nest again.","type":"array","items":{"$ref":"#/components/schemas/FacebookMessengerMenuActionDto"}}},"additionalProperties":false,"required":["type","title"]},"FacebookMessengerMenuResponseDto":{"type":"object","properties":{"data":{"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/FacebookMessengerMenuItemDto"}}},"additionalProperties":false,"required":["data"]},"SetFacebookMessengerMenuDto":{"type":"object","properties":{"persistent_menu":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/FacebookMessengerMenuItemDto"}}},"additionalProperties":false,"required":["persistent_menu"]},"FacebookAccountPageDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"username":{"type":"string"},"category":{"type":"string"},"fan_count":{"type":"number","minimum":0}},"additionalProperties":false,"required":["id","name"]},"FacebookPagesResponseDto":{"type":"object","properties":{"pages":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/FacebookAccountPageDto"}},"selectedPageId":{"type":"string"},"cached":{"type":"boolean"}},"additionalProperties":false,"required":["pages","selectedPageId","cached"]},"UpdateFacebookPageDto":{"type":"object","properties":{"selectedPageId":{"type":"string"}},"additionalProperties":false,"required":["selectedPageId"]},"SelectedFacebookPageDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false,"required":["id","name"]},"UpdateFacebookPageResponseDto":{"type":"object","properties":{"message":{"type":"string"},"selectedPage":{"$ref":"#/components/schemas/SelectedFacebookPageDto"}},"additionalProperties":false,"required":["message","selectedPage"]},"FacebookReactionBreakdownDto":{"type":"object","properties":{"like":{"type":"integer","minimum":0},"love":{"type":"integer","minimum":0},"haha":{"type":"integer","minimum":0},"wow":{"type":"integer","minimum":0},"sad":{"type":"integer","minimum":0},"angry":{"type":"integer","minimum":0},"care":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["like","love","haha","wow","sad","angry","care"]},"FacebookPostReactionsDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["facebook"]},"username":{"type":"string","minLength":1,"maxLength":256},"postId":{"type":"string","pattern":"^(?:[1-9][0-9]{0,19}|[1-9][0-9]{0,19}_[1-9][0-9]{0,19})$"},"total":{"type":"integer","minimum":0},"breakdown":{"$ref":"#/components/schemas/FacebookReactionBreakdownDto"},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","username","postId","total","breakdown","lastUpdated"]},"GmbLocationSummaryDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accountId":{"type":"string"}},"additionalProperties":false,"required":["id","name","accountId"]},"GoogleBusinessLocationsResponseDto":{"type":"object","properties":{"locations":{"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/GmbLocationSummaryDto"}},"hasMore":{"type":"boolean"},"selectedLocationId":{"type":"string"},"cached":{"type":"boolean"}},"additionalProperties":false,"required":["locations","hasMore","selectedLocationId","cached"]},"UpdateGmbLocationDto":{"type":"object","properties":{"selectedLocationId":{"type":"string","minLength":1},"googleAccountId":{"type":"string","minLength":1},"accountId":{"type":"string","minLength":1,"deprecated":true,"description":"Deprecated alias for googleAccountId. Sending both is rejected."}},"additionalProperties":false,"required":["selectedLocationId"]},"SelectedGoogleBusinessLocationDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false,"required":["id","name"]},"UpdateGmbLocationResponseDto":{"type":"object","properties":{"message":{"type":"string"},"selectedLocation":{"$ref":"#/components/schemas/SelectedGoogleBusinessLocationDto"}},"additionalProperties":false,"required":["message","selectedLocation"]},"AssignGmbLocationDto":{"type":"object","properties":{"profileId":{"type":"string","minLength":1},"selectedLocationId":{"type":"string","minLength":1},"googleAccountId":{"type":"string","minLength":1}},"additionalProperties":false,"required":["profileId","selectedLocationId"]},"GoogleBusinessConnectedAccountCompatibilityDto":{"type":"object","properties":{"accountId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"platform":{"type":"string","enum":["googlebusiness"]},"username":{"type":"string","example":"My Coffee Shop","description":"Persisted display-name alias. Google Business Profile exposes no handle, so this always equals displayName."},"displayName":{"type":"string","example":"My Coffee Shop"},"isActive":{"type":"boolean","example":true},"selectedLocationName":{"type":"string","example":"My Coffee Shop"},"selectedLocationId":{"type":"string","example":"9281089117903930794"}},"required":["accountId","platform","username","displayName","isActive","selectedLocationName","selectedLocationId"]},"AssignGmbLocationResponseDto":{"type":"object","properties":{"message":{"type":"string"},"account":{"$ref":"#/components/schemas/GoogleBusinessConnectedAccountCompatibilityDto"}},"additionalProperties":false,"required":["message","account"]},"ZernioGoogleBusinessMediaLocationAssociationDto":{"type":"object","properties":{"category":{"type":"string","enum":["CATEGORY_UNSPECIFIED","COVER","PROFILE","LOGO","EXTERIOR","INTERIOR","PRODUCT","FOOD_AND_DRINK","MENU","COMMON_AREA","ROOMS","TEAMS","AT_WORK","ADDITIONAL"]}},"additionalProperties":false,"required":["category"]},"ZernioGoogleBusinessMediaItemDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^accounts/[1-9]\\d{0,29}/locations/[1-9]\\d{0,29}/media/[A-Za-z0-9_-]{1,256}$","description":"Resource name"},"mediaFormat":{"type":"string","enum":["PHOTO","VIDEO"]},"sourceUrl":{"type":"string","format":"uri","maxLength":4096},"googleUrl":{"type":"string","format":"uri","maxLength":4096,"description":"Google-hosted URL"},"thumbnailUrl":{"type":"string","format":"uri","maxLength":4096},"description":{"type":"string","minLength":1,"maxLength":4096},"createTime":{"type":"string","format":"date-time"},"locationAssociation":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaLocationAssociationDto"}},"additionalProperties":false,"required":["name","mediaFormat"]},"ZernioGoogleBusinessMediaListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"mediaItems":{"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessMediaItemDto"}},"nextPageToken":{"type":"string","minLength":1,"maxLength":32768},"totalMediaItemsCount":{"type":"number","minimum":0}},"additionalProperties":false,"required":["success","accountId","locationId","mediaItems","totalMediaItemsCount"]},"ZernioGoogleBusinessMediaCreateInputDto":{"type":"object","properties":{"sourceUrl":{"type":"string","format":"uri","maxLength":4096,"description":"Publicly accessible image or video URL"},"mediaFormat":{"type":"string","enum":["PHOTO","VIDEO"],"default":"PHOTO"},"description":{"type":"string","minLength":1,"maxLength":4096},"category":{"type":"string","enum":["CATEGORY_UNSPECIFIED","COVER","PROFILE","LOGO","EXTERIOR","INTERIOR","PRODUCT","FOOD_AND_DRINK","MENU","COMMON_AREA","ROOMS","TEAMS","AT_WORK","ADDITIONAL"],"description":"Where the media appears on the listing"}},"additionalProperties":false,"required":["sourceUrl"]},"ZernioGoogleBusinessMediaCreateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"name":{"type":"string","pattern":"^accounts/[1-9]\\d{0,29}/locations/[1-9]\\d{0,29}/media/[A-Za-z0-9_-]{1,256}$"},"mediaFormat":{"type":"string","enum":["PHOTO","VIDEO"]},"googleUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["success","name","mediaFormat"]},"ZernioGoogleBusinessMediaDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"deleted":{"type":"boolean","enum":[true]},"mediaId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"}},"additionalProperties":false,"required":["success","deleted","mediaId"]},"GoogleBusinessFoodMenuLabelDto":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":140},"description":{"type":"string","maxLength":1000},"languageCode":{"type":"string","pattern":"^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8}){0,8}$"}},"additionalProperties":false,"required":["displayName"]},"GoogleBusinessFoodMenuMoneyDto":{"type":"object","properties":{"currencyCode":{"type":"string","pattern":"^[A-Z]{3}$"},"units":{"type":"string","pattern":"^(?:0|[1-9]\\d{0,18})$"},"nanos":{"type":"number","minimum":0,"maximum":999999999}},"additionalProperties":false,"required":["currencyCode","units"]},"GoogleBusinessFoodMenuCaloriesFactDto":{"type":"object","properties":{"lowerAmount":{"type":"number","minimum":0,"maximum":2147483647},"upperAmount":{"type":"number","minimum":0,"maximum":2147483647},"unit":{"type":"string","enum":["ENERGY_UNIT_UNSPECIFIED","CALORIE","JOULE"]}},"additionalProperties":false,"required":["lowerAmount","unit"]},"GoogleBusinessFoodMenuNutritionFactDto":{"type":"object","properties":{"lowerAmount":{"type":"number","minimum":0},"upperAmount":{"type":"number","minimum":0},"unit":{"type":"string","enum":["MASS_UNIT_UNSPECIFIED","GRAM","MILLIGRAM"]}},"additionalProperties":false,"required":["lowerAmount","unit"]},"GoogleBusinessFoodMenuNutritionFactsDto":{"type":"object","properties":{"calories":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuCaloriesFactDto"},"totalFat":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactDto"},"cholesterol":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactDto"},"sodium":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactDto"},"totalCarbohydrate":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactDto"},"protein":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactDto"}},"additionalProperties":false},"GoogleBusinessFoodMenuIngredientDto":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}}},"additionalProperties":false,"required":["labels"]},"GoogleBusinessFoodMenuPortionSizeDto":{"type":"object","properties":{"quantity":{"type":"number","minimum":1,"maximum":2147483647},"unit":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}}},"additionalProperties":false,"required":["quantity","unit"]},"GoogleBusinessFoodMenuItemAttributesDto":{"type":"object","properties":{"price":{"description":"Required on base menu items; optional on variants that inherit it.","allOf":[{"$ref":"#/components/schemas/GoogleBusinessFoodMenuMoneyDto"}]},"spiciness":{"type":"string","enum":["SPICINESS_UNSPECIFIED","MILD","MEDIUM","HOT"]},"allergen":{"type":"array","maxItems":20,"items":{"type":"string","enum":["ALLERGEN_UNSPECIFIED","DAIRY","EGG","FISH","PEANUT","SHELLFISH","SOY","TREE_NUT","WHEAT"]}},"dietaryRestriction":{"type":"array","maxItems":20,"items":{"type":"string","enum":["DIETARY_RESTRICTION_UNSPECIFIED","HALAL","KOSHER","ORGANIC","VEGAN","VEGETARIAN"]}},"nutritionFacts":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuNutritionFactsDto"},"ingredients":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuIngredientDto"}},"servesNumPeople":{"type":"number","minimum":1,"maximum":2147483647},"preparationMethods":{"type":"array","maxItems":25,"items":{"type":"string","enum":["PREPARATION_METHOD_UNSPECIFIED","BAKED","BARBECUED","BASTED","BLANCHED","BOILED","BRAISED","CODDLED","FERMENTED","FRIED","GRILLED","KNEADED","MARINATED","PAN_FRIED","PICKLED","PRESSURE_COOKED","ROASTED","SAUTEED","SEARED","SIMMERED","SMOKED","STEAMED","STEEPED","STIR_FRIED","OTHER_METHOD"]}},"portionSize":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuPortionSizeDto"},"mediaKeys":{"maxItems":200,"description":"Provider media keys; at most 200 dish-photo associations per resource.","type":"array","items":{"type":"string","maxLength":512}}},"additionalProperties":false},"GoogleBusinessFoodMenuItemOptionDto":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}},"attributes":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuItemAttributesDto"}},"additionalProperties":false,"required":["labels","attributes"]},"GoogleBusinessFoodMenuItemDto":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}},"attributes":{"description":"Base item attributes must include price.","allOf":[{"$ref":"#/components/schemas/GoogleBusinessFoodMenuItemAttributesDto"}]},"options":{"maxItems":10000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuItemOptionDto"}}},"additionalProperties":false,"required":["labels","attributes"]},"GoogleBusinessFoodMenuSectionDto":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}},"items":{"minItems":1,"maxItems":10000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuItemDto"}}},"additionalProperties":false,"required":["labels","items"]},"GoogleBusinessFoodMenuDto":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuLabelDto"}},"sections":{"minItems":1,"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuSectionDto"}},"cuisines":{"type":"array","items":{"type":"string","enum":["CUISINE_UNSPECIFIED","AMERICAN","ASIAN","BRAZILIAN","BREAK_FAST","BRUNCH","CHICKEN","CHINESE","FAMILY","FAST_FOOD","FRENCH","GREEK","GERMAN","HAMBURGER","INDIAN","INDONESIAN","ITALIAN","JAPANESE","KOREAN","LATIN_AMERICAN","MEDITERRANEAN","MEXICAN","PAKISTANI","PIZZA","SEAFOOD","SPANISH","SUSHI","THAI","TURKISH","VEGETARIAN","VIETNAMESE","OTHER_CUISINE"]}},"sourceUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["labels","sections"]},"GoogleBusinessFoodMenusResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"name":{"type":"string","pattern":"^accounts/[1-9]\\d{0,29}/locations/[1-9]\\d{0,29}/foodMenus$"},"menus":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","name","menus"]},"GoogleBusinessFoodMenusUpdateInputDto":{"type":"object","properties":{"menus":{"maxItems":100,"description":"Full desired menu collection. An empty array clears all food menus.","type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessFoodMenuDto"}},"updateMask":{"type":"string","enum":["menus"],"default":"menus","description":"Only the atomic repeated menus field can be updated."}},"additionalProperties":false,"required":["menus"]},"GoogleBusinessLocationSummaryDto":{"type":"object","properties":{"name":{"type":"string","nullable":true,"maxLength":256},"placeId":{"type":"string","nullable":true,"maxLength":256},"reviewUrl":{"type":"string","format":"uri","nullable":true},"mapsUri":{"type":"string","format":"uri","nullable":true},"isVerified":{"type":"boolean"}},"additionalProperties":false,"required":["name","placeId","reviewUrl","mapsUri","isVerified"]},"GoogleBusinessLocationPhoneNumbersDto":{"type":"object","properties":{"primaryPhone":{"type":"string","minLength":1,"maxLength":64},"additionalPhones":{"maxItems":2,"type":"array","items":{"type":"string","maxLength":64}}},"additionalProperties":false,"required":["primaryPhone"]},"GoogleBusinessLocationServiceTypeDto":{"type":"object","properties":{"serviceTypeId":{"type":"string","minLength":1,"maxLength":256},"displayName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["serviceTypeId","displayName"]},"GoogleBusinessLocationMoreHoursTypeDto":{"type":"object","properties":{"hoursTypeId":{"type":"string","minLength":1,"maxLength":256},"displayName":{"type":"string","minLength":1,"maxLength":256},"localizedDisplayName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["hoursTypeId","displayName","localizedDisplayName"]},"GoogleBusinessLocationCategoryDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^categories/[A-Za-z0-9:_-]{1,256}$"},"displayName":{"type":"string","minLength":1,"maxLength":256},"serviceTypes":{"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceTypeDto"}},"moreHoursTypes":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationMoreHoursTypeDto"}}},"additionalProperties":false,"required":["name"]},"GoogleBusinessLocationCategoriesDto":{"type":"object","properties":{"primaryCategory":{"$ref":"#/components/schemas/GoogleBusinessLocationCategoryDto"},"additionalCategories":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationCategoryDto"}}},"additionalProperties":false,"required":["primaryCategory"]},"GoogleBusinessLocationPostalAddressDto":{"type":"object","properties":{"revision":{"type":"number","enum":[0]},"regionCode":{"type":"string","pattern":"^[A-Z]{2}$"},"languageCode":{"type":"string","pattern":"^[A-Za-z0-9-]{2,35}$"},"postalCode":{"type":"string","maxLength":256},"sortingCode":{"type":"string","maxLength":256},"administrativeArea":{"type":"string","maxLength":256},"locality":{"type":"string","maxLength":256},"sublocality":{"type":"string","maxLength":256},"addressLines":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":256}},"recipients":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":256}},"organization":{"type":"string","maxLength":256}},"additionalProperties":false,"required":["regionCode"]},"GoogleBusinessLocationPeriodDto":{"type":"object","properties":{"openDay":{"type":"string","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]},"openTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-4]):[0-5]\\d$","description":"Local wall-clock time in HH:MM form; 24:00 is allowed only at day end."},"closeDay":{"type":"string","enum":["DAY_OF_WEEK_UNSPECIFIED","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]},"closeTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-4]):[0-5]\\d$"}},"additionalProperties":false,"required":["openDay","openTime","closeDay","closeTime"]},"GoogleBusinessLocationHoursDto":{"type":"object","properties":{"periods":{"maxItems":168,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationPeriodDto"}}},"additionalProperties":false,"required":["periods"]},"GoogleBusinessLocationDateDto":{"type":"object","properties":{"year":{"type":"number","minimum":0,"maximum":9999},"month":{"type":"number","minimum":0,"maximum":12},"day":{"type":"number","minimum":0,"maximum":31}},"additionalProperties":false},"GoogleBusinessLocationSpecialHourPeriodDto":{"type":"object","properties":{"startDate":{"$ref":"#/components/schemas/GoogleBusinessLocationDateDto"},"endDate":{"$ref":"#/components/schemas/GoogleBusinessLocationDateDto"},"openTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-4]):[0-5]\\d$"},"closeTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-4]):[0-5]\\d$"},"closed":{"type":"boolean"}},"additionalProperties":false,"required":["startDate"]},"GoogleBusinessLocationSpecialHoursDto":{"type":"object","properties":{"specialHourPeriods":{"maxItems":366,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationSpecialHourPeriodDto"}}},"additionalProperties":false,"required":["specialHourPeriods"]},"GoogleBusinessLocationPlaceInfoDto":{"type":"object","properties":{"placeName":{"type":"string","minLength":1,"maxLength":256},"placeId":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["placeName","placeId"]},"GoogleBusinessLocationPlacesDto":{"type":"object","properties":{"placeInfos":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationPlaceInfoDto"}}},"additionalProperties":false,"required":["placeInfos"]},"GoogleBusinessLocationServiceAreaDto":{"type":"object","properties":{"businessType":{"type":"string","enum":["BUSINESS_TYPE_UNSPECIFIED","CUSTOMER_LOCATION_ONLY","CUSTOMER_AND_BUSINESS_LOCATION"]},"places":{"$ref":"#/components/schemas/GoogleBusinessLocationPlacesDto"},"regionCode":{"type":"string","pattern":"^[A-Z]{2}$"}},"additionalProperties":false,"required":["businessType"]},"GoogleBusinessLocationMoneyDto":{"type":"object","properties":{"currencyCode":{"type":"string","minLength":1,"pattern":"^[A-Z]{3}$"},"units":{"type":"string","minLength":1,"pattern":"^-?(?:0|[1-9]\\d{0,18})$"},"nanos":{"type":"number","minimum":-999999999,"maximum":999999999}},"additionalProperties":false},"GoogleBusinessLocationStructuredServiceItemDto":{"type":"object","properties":{"serviceTypeId":{"type":"string","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1,"maxLength":300}},"additionalProperties":false,"required":["serviceTypeId"]},"GoogleBusinessLocationServiceLabelDto":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":140},"description":{"type":"string","minLength":1,"maxLength":250},"languageCode":{"type":"string","pattern":"^[A-Za-z0-9-]{2,35}$"}},"additionalProperties":false,"required":["displayName"]},"GoogleBusinessLocationFreeFormServiceItemDto":{"type":"object","properties":{"category":{"type":"string","minLength":1,"pattern":"^categories/[A-Za-z0-9:_-]{1,256}$"},"label":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceLabelDto"}},"additionalProperties":false,"required":["category","label"]},"GoogleBusinessLocationServiceItemDto":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/GoogleBusinessLocationMoneyDto"},"structuredServiceItem":{"description":"Exactly one of structuredServiceItem or freeFormServiceItem is required.","allOf":[{"$ref":"#/components/schemas/GoogleBusinessLocationStructuredServiceItemDto"}]},"freeFormServiceItem":{"$ref":"#/components/schemas/GoogleBusinessLocationFreeFormServiceItemDto"}},"additionalProperties":false},"GoogleBusinessLocationProfileDto":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":750}},"additionalProperties":false,"required":["description"]},"GoogleBusinessLocationOpenInfoDto":{"type":"object","properties":{"status":{"type":"string","enum":["OPEN_FOR_BUSINESS_UNSPECIFIED","OPEN","CLOSED_PERMANENTLY","CLOSED_TEMPORARILY"]},"canReopen":{"type":"boolean"},"openingDate":{"$ref":"#/components/schemas/GoogleBusinessLocationDateDto"}},"additionalProperties":false,"required":["status"]},"GoogleBusinessLocationMetadataDto":{"type":"object","properties":{"hasGoogleUpdated":{"type":"boolean"},"hasPendingEdits":{"type":"boolean"},"canDelete":{"type":"boolean"},"canOperateLocalPost":{"type":"boolean"},"canModifyServiceList":{"type":"boolean"},"canHaveFoodMenus":{"type":"boolean"},"canOperateHealthData":{"type":"boolean"},"canOperateLodgingData":{"type":"boolean"},"placeId":{"type":"string","maxLength":256},"duplicateLocation":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}$"},"mapsUri":{"type":"string","format":"uri"},"newReviewUri":{"type":"string","format":"uri"},"canHaveBusinessCalls":{"type":"boolean"},"hasVoiceOfMerchant":{"type":"boolean"}},"additionalProperties":false},"GoogleBusinessLocationMoreHoursDto":{"type":"object","properties":{"hoursTypeId":{"type":"string","minLength":1,"maxLength":256},"periods":{"maxItems":168,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationPeriodDto"}}},"additionalProperties":false,"required":["hoursTypeId","periods"]},"GoogleBusinessLocationDetailsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"location":{"$ref":"#/components/schemas/GoogleBusinessLocationSummaryDto"},"title":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}$"},"phoneNumbers":{"$ref":"#/components/schemas/GoogleBusinessLocationPhoneNumbersDto"},"categories":{"$ref":"#/components/schemas/GoogleBusinessLocationCategoriesDto"},"storefrontAddress":{"$ref":"#/components/schemas/GoogleBusinessLocationPostalAddressDto"},"websiteUri":{"type":"string","format":"uri"},"regularHours":{"$ref":"#/components/schemas/GoogleBusinessLocationHoursDto"},"specialHours":{"$ref":"#/components/schemas/GoogleBusinessLocationSpecialHoursDto"},"serviceArea":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceAreaDto"},"serviceItems":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceItemDto"}},"profile":{"$ref":"#/components/schemas/GoogleBusinessLocationProfileDto"},"openInfo":{"$ref":"#/components/schemas/GoogleBusinessLocationOpenInfoDto"},"metadata":{"$ref":"#/components/schemas/GoogleBusinessLocationMetadataDto"},"moreHours":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationMoreHoursDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","location","title"]},"GoogleBusinessLocationCategoryReferenceDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^categories/[A-Za-z0-9:_-]{1,256}$"}},"additionalProperties":false,"required":["name"]},"GoogleBusinessLocationPatchCategoriesDto":{"type":"object","properties":{"primaryCategory":{"$ref":"#/components/schemas/GoogleBusinessLocationCategoryReferenceDto"},"additionalCategories":{"maxItems":10,"default":[],"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationCategoryReferenceDto"}}},"additionalProperties":false,"required":["primaryCategory"]},"GoogleBusinessLocationUpdateInputDto":{"type":"object","properties":{"updateMask":{"type":"string","minLength":1,"maxLength":256,"pattern":"^(?:regularHours|specialHours|profile\\.description|websiteUri|phoneNumbers|categories|serviceItems)(?:,(?:regularHours|specialHours|profile\\.description|websiteUri|phoneNumbers|categories|serviceItems))*$","description":"Comma-separated update paths. Supported paths are regularHours, specialHours, profile.description, websiteUri, phoneNumbers, categories, and serviceItems."},"regularHours":{"$ref":"#/components/schemas/GoogleBusinessLocationHoursDto"},"specialHours":{"$ref":"#/components/schemas/GoogleBusinessLocationSpecialHoursDto"},"profile":{"$ref":"#/components/schemas/GoogleBusinessLocationProfileDto"},"websiteUri":{"type":"string","format":"uri"},"phoneNumbers":{"$ref":"#/components/schemas/GoogleBusinessLocationPhoneNumbersDto"},"categories":{"$ref":"#/components/schemas/GoogleBusinessLocationPatchCategoriesDto"},"serviceItems":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceItemDto"}}},"additionalProperties":false,"required":["updateMask"]},"GoogleBusinessLocationUpdateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"}},"additionalProperties":false,"required":["success","accountId","locationId"]},"GoogleBusinessDateRangeDto":{"type":"object","properties":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}},"additionalProperties":false,"required":["startDate","endDate"]},"GoogleBusinessPerformancePointDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"value":{"type":"string","pattern":"^(0|[1-9]\\d*)$"}},"additionalProperties":false,"required":["date","value"]},"GoogleBusinessPerformanceMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["BUSINESS_IMPRESSIONS_DESKTOP_MAPS","BUSINESS_IMPRESSIONS_DESKTOP_SEARCH","BUSINESS_IMPRESSIONS_MOBILE_MAPS","BUSINESS_IMPRESSIONS_MOBILE_SEARCH","BUSINESS_CONVERSATIONS","BUSINESS_DIRECTION_REQUESTS","CALL_CLICKS","WEBSITE_CLICKS","BUSINESS_BOOKINGS","BUSINESS_FOOD_ORDERS","BUSINESS_FOOD_MENU_CLICKS"]},"total":{"type":"string","pattern":"^(0|[1-9]\\d*)$"},"values":{"maxItems":550,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessPerformancePointDto"}}},"additionalProperties":false,"required":["metric","total","values"]},"GoogleBusinessPerformanceDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["google_business"]},"dateRange":{"$ref":"#/components/schemas/GoogleBusinessDateRangeDto"},"metrics":{"minItems":1,"maxItems":11,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessPerformanceMetricDto"}},"dataDelay":{"type":"string","enum":["Data may be delayed 2-3 days"]}},"additionalProperties":false,"required":["accountId","platform","dateRange","metrics","dataDelay"]},"GoogleBusinessMonthRangeDto":{"type":"object","properties":{"startMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"endMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"additionalProperties":false,"required":["startMonth","endMonth"]},"GoogleBusinessSearchKeywordImpressionsDto":{"type":"object","properties":{"kind":{"type":"string","enum":["exact","below_threshold"]},"value":{"type":"string","nullable":true,"pattern":"^(0|[1-9]\\d*)$","description":"Exact impression count, or null when Google suppresses it."},"threshold":{"type":"string","nullable":true,"pattern":"^(0|[1-9]\\d*)$","description":"Google suppression threshold, or null for an exact count."}},"additionalProperties":false,"required":["kind","value","threshold"]},"GoogleBusinessSearchKeywordDto":{"type":"object","properties":{"keyword":{"type":"string","minLength":1,"maxLength":1024},"impressions":{"$ref":"#/components/schemas/GoogleBusinessSearchKeywordImpressionsDto"}},"additionalProperties":false,"required":["keyword","impressions"]},"GoogleBusinessSearchKeywordPageDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["google_business"]},"monthRange":{"$ref":"#/components/schemas/GoogleBusinessMonthRangeDto"},"keywords":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessSearchKeywordDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192},"note":{"type":"string","enum":["Google may suppress exact counts below its privacy threshold"]}},"additionalProperties":false,"required":["accountId","platform","monthRange","keywords","hasMore","nextCursor","note"]},"GoogleBusinessPostDto":{"type":"object","properties":{"id":{"type":"string","maxLength":256},"text":{"type":"string","maxLength":1500},"state":{"type":"string","enum":["REJECTED","LIVE","PROCESSING","SCHEDULED","RECURRING"]},"topicType":{"type":"string","enum":["STANDARD","EVENT","OFFER","ALERT"]},"languageCode":{"type":"string","nullable":true,"maxLength":35},"url":{"type":"string","format":"uri","nullable":true},"createTime":{"type":"string","format":"date-time","nullable":true},"updateTime":{"type":"string","format":"date-time","nullable":true},"scheduledTime":{"type":"string","format":"date-time","nullable":true},"mediaCount":{"type":"number","minimum":0,"maximum":100},"hasCallToAction":{"type":"boolean"},"hasEvent":{"type":"boolean"},"hasOffer":{"type":"boolean"},"recurring":{"type":"boolean"}},"additionalProperties":false,"required":["id","text","state","topicType","languageCode","url","createTime","updateTime","scheduledTime","mediaCount","hasCallToAction","hasEvent","hasOffer","recurring"]},"GoogleBusinessPostPageDto":{"type":"object","properties":{"posts":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessPostDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192}},"additionalProperties":false,"required":["posts","hasMore","nextCursor"]},"GoogleBusinessReviewerDto":{"type":"object","properties":{"displayName":{"type":"string","nullable":true,"maxLength":2048},"profilePhotoUrl":{"type":"string","format":"uri","nullable":true},"anonymous":{"type":"boolean"}},"additionalProperties":false,"required":["displayName","profilePhotoUrl","anonymous"]},"GoogleBusinessReviewReplyDto":{"type":"object","properties":{"comment":{"type":"string","maxLength":4096},"updateTime":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","enum":["REVIEW_REPLY_STATE_UNSPECIFIED","PENDING","REJECTED","APPROVED"],"nullable":true},"policyViolation":{"type":"string","nullable":true,"maxLength":128}},"additionalProperties":false,"required":["comment","updateTime","state","policyViolation"]},"GoogleBusinessReviewMediaItemDto":{"type":"object","properties":{"thumbnailUrl":{"type":"string","format":"uri"},"thumbnailLabel":{"type":"string","nullable":true,"maxLength":2048},"videoUrl":{"type":"string","format":"uri","nullable":true}},"additionalProperties":false,"required":["thumbnailUrl","thumbnailLabel","videoUrl"]},"GoogleBusinessReviewDto":{"type":"object","properties":{"id":{"type":"string","maxLength":256},"reviewer":{"$ref":"#/components/schemas/GoogleBusinessReviewerDto"},"starRating":{"type":"string","enum":["STAR_RATING_UNSPECIFIED","ONE","TWO","THREE","FOUR","FIVE"]},"rating":{"type":"number","minimum":0,"maximum":5},"comment":{"type":"string","nullable":true,"maxLength":100000},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"reply":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GoogleBusinessReviewReplyDto"}]},"media":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessReviewMediaItemDto"}},"replyUrl":{"type":"string","format":"uri","nullable":true}},"additionalProperties":false,"required":["id","reviewer","starRating","rating","comment","createTime","updateTime","reply","media","replyUrl"]},"GoogleBusinessReviewPageDto":{"type":"object","properties":{"reviews":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessReviewDto"}},"averageRating":{"type":"number","minimum":0,"maximum":5},"totalReviewCount":{"type":"number","minimum":0},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192}},"additionalProperties":false,"required":["reviews","averageRating","totalReviewCount","hasMore","nextCursor"]},"GoogleBusinessReviewReplyInputDto":{"type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":4096,"description":"Reply text; Google enforces a 4,096 UTF-8 byte maximum."}},"additionalProperties":false,"required":["comment"]},"GoogleBusinessReviewReplyDeleteDto":{"type":"object","properties":{"reviewId":{"type":"string","maxLength":256},"deleted":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["reviewId","deleted"]},"GoogleBusinessVerificationVerifyStateDto":{"type":"object","properties":{"hasPendingVerification":{"type":"boolean"}},"additionalProperties":false,"required":["hasPendingVerification"]},"GoogleBusinessVoiceOfMerchantStateDto":{"type":"object","properties":{"hasVoiceOfMerchant":{"type":"boolean"},"hasBusinessAuthority":{"type":"boolean"},"verify":{"$ref":"#/components/schemas/GoogleBusinessVerificationVerifyStateDto"}},"additionalProperties":false,"required":["hasVoiceOfMerchant","hasBusinessAuthority"]},"GoogleBusinessVerificationDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/verifications/[A-Za-z0-9_-]{1,256}$"},"method":{"type":"string","enum":["ADDRESS","EMAIL","PHONE_CALL","SMS","AUTO","VETTED_PARTNER"]},"state":{"type":"string","enum":["PENDING","COMPLETED","FAILED"]},"createTime":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["name","state","createTime"]},"GoogleBusinessVerificationsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"voiceOfMerchantState":{"$ref":"#/components/schemas/GoogleBusinessVoiceOfMerchantStateDto"},"verifications":{"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessVerificationDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","voiceOfMerchantState","verifications"]},"GoogleBusinessVerificationPostalAddressDto":{"type":"object","properties":{"revision":{"type":"number","minimum":0},"regionCode":{"type":"string","pattern":"^[A-Z]{2}$"},"languageCode":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8}){0,3}$"},"postalCode":{"type":"string","maxLength":256},"sortingCode":{"type":"string","maxLength":256},"administrativeArea":{"type":"string","maxLength":256},"locality":{"type":"string","maxLength":256},"sublocality":{"type":"string","maxLength":256},"addressLines":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"recipients":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"organization":{"type":"string","maxLength":256}},"additionalProperties":false,"required":["regionCode"]},"GoogleBusinessServiceBusinessContextDto":{"type":"object","properties":{"address":{"$ref":"#/components/schemas/GoogleBusinessVerificationPostalAddressDto"}},"additionalProperties":false},"GoogleBusinessVerificationOptionsInputDto":{"type":"object","properties":{"languageCode":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8}){0,3}$","example":"en-US"},"context":{"$ref":"#/components/schemas/GoogleBusinessServiceBusinessContextDto"}},"additionalProperties":false,"required":["languageCode"]},"GoogleBusinessVerificationOptionDto":{"type":"object","properties":{"verificationMethod":{"type":"string","enum":["ADDRESS","EMAIL","PHONE_CALL","SMS","AUTO","VETTED_PARTNER"]},"phoneNumber":{"type":"string","maxLength":64}},"additionalProperties":false,"required":["verificationMethod"]},"GoogleBusinessVerificationOptionsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"options":{"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessVerificationOptionDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","options"]},"GoogleBusinessVerificationMailerContactDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"mailerContactName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false},"GoogleBusinessVerificationStartInputDto":{"type":"object","properties":{"method":{"type":"string","enum":["ADDRESS","EMAIL","PHONE_CALL","SMS","AUTO","VETTED_PARTNER"]},"languageCode":{"type":"string","pattern":"^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8}){0,3}$","example":"en-US"},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$"},"emailAddress":{"type":"string","format":"email","maxLength":254},"mailerContact":{"$ref":"#/components/schemas/GoogleBusinessVerificationMailerContactDto"},"context":{"$ref":"#/components/schemas/GoogleBusinessServiceBusinessContextDto"}},"additionalProperties":false,"required":["method"]},"GoogleBusinessVerificationMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"verification":{"$ref":"#/components/schemas/GoogleBusinessVerificationDto"}},"additionalProperties":false,"required":["success","accountId","locationId","verification"]},"GoogleBusinessVerificationCompleteInputDto":{"type":"object","properties":{"pin":{"type":"string","pattern":"^[A-Za-z0-9-]{1,32}$","example":"123456"}},"additionalProperties":false,"required":["pin"]},"ZernioGoogleBusinessPerformancePointDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"value":{"type":"number","minimum":0}},"additionalProperties":false,"required":["date","value"]},"ZernioGoogleBusinessPerformanceMetricDto":{"type":"object","properties":{"total":{"type":"number","minimum":0},"values":{"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessPerformancePointDto"}}},"additionalProperties":false,"required":["total","values"]},"ZernioGoogleBusinessDateRangeDto":{"type":"object","properties":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}},"additionalProperties":false,"required":["startDate","endDate"]},"ZernioGoogleBusinessPerformanceResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["googlebusiness"]},"dateRange":{"$ref":"#/components/schemas/ZernioGoogleBusinessDateRangeDto"},"metrics":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ZernioGoogleBusinessPerformanceMetricDto"}},"dataDelay":{"type":"string","enum":["Data may be delayed 2-3 days"]}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metrics","dataDelay"]},"ZernioGoogleBusinessMonthRangeDto":{"type":"object","properties":{"startMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"endMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"additionalProperties":false,"required":["startMonth","endMonth"]},"ZernioGoogleBusinessSearchKeywordDto":{"type":"object","properties":{"keyword":{"type":"string","minLength":1,"maxLength":1024},"impressions":{"type":"number","minimum":0}},"additionalProperties":false,"required":["keyword","impressions"]},"ZernioGoogleBusinessSearchKeywordsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["googlebusiness"]},"monthRange":{"$ref":"#/components/schemas/ZernioGoogleBusinessMonthRangeDto"},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessSearchKeywordDto"}},"note":{"type":"string","enum":["Keywords below a minimum impression threshold are excluded by Google"]}},"additionalProperties":false,"required":["success","accountId","platform","monthRange","keywords","note"]},"ZernioGoogleBusinessRepeatedEnumValueDto":{"type":"object","properties":{"setValues":{"maxItems":100,"type":"array","items":{"type":"string"}},"unsetValues":{"maxItems":100,"type":"array","items":{"type":"string"}}},"additionalProperties":false},"ZernioGoogleBusinessUriAttributeValueDto":{"type":"object","properties":{"uri":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["uri"]},"ZernioGoogleBusinessAttributeDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,127}$"},"valueType":{"type":"string","enum":["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED","BOOL","ENUM","URL","REPEATED_ENUM"]},"values":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"maxItems":100},"repeatedEnumValue":{"$ref":"#/components/schemas/ZernioGoogleBusinessRepeatedEnumValueDto"},"uriValues":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessUriAttributeValueDto"}}},"additionalProperties":false,"required":["name","valueType","values"]},"ZernioGoogleBusinessAttributesResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"attributes":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributeDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","attributes"]},"ZernioGoogleBusinessAttributeUpdateInputDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"valueType":{"type":"string","enum":["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED","BOOL","ENUM","URL","REPEATED_ENUM"]},"values":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"maxItems":100},"repeatedEnumValue":{"$ref":"#/components/schemas/ZernioGoogleBusinessRepeatedEnumValueDto"},"uriValues":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessUriAttributeValueDto"}}},"additionalProperties":false,"required":["name"]},"ZernioGoogleBusinessAttributesUpdateInputDto":{"type":"object","properties":{"attributes":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributeUpdateInputDto"}},"attributeMask":{"type":"string","minLength":1,"maxLength":25799}},"additionalProperties":false,"required":["attributes","attributeMask"]},"ZernioGoogleBusinessAttributeValueMetadataDto":{"type":"object","properties":{"value":{"type":"string"},"displayName":{"type":"string","maxLength":2048}},"additionalProperties":false,"required":["value","displayName"]},"ZernioGoogleBusinessAttributeMetadataDto":{"type":"object","properties":{"parent":{"type":"string","pattern":"^attributes/[a-z][a-z0-9_]{0,127}$"},"valueType":{"type":"string","enum":["ATTRIBUTE_VALUE_TYPE_UNSPECIFIED","BOOL","ENUM","URL","REPEATED_ENUM"]},"displayName":{"type":"string","maxLength":2048},"groupDisplayName":{"type":"string","maxLength":2048},"repeatable":{"type":"boolean"},"deprecated":{"type":"boolean"},"valueMetadata":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributeValueMetadataDto"}}},"additionalProperties":false,"required":["parent","valueType","displayName","groupDisplayName","repeatable","deprecated","valueMetadata"]},"ZernioGoogleBusinessAttributeMetadataResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"attributeMetadata":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessAttributeMetadataDto"}},"nextPageToken":{"type":"string","minLength":1,"maxLength":8192}},"additionalProperties":false,"required":["success","accountId","attributeMetadata"]},"ZernioGoogleBusinessPublicReviewerDto":{"type":"object","properties":{"displayName":{"type":"string","maxLength":2048},"profilePhotoUrl":{"type":"string","format":"uri","nullable":true},"isAnonymous":{"type":"boolean"}},"additionalProperties":false,"required":["profilePhotoUrl","isAnonymous"]},"ZernioGoogleBusinessPublicReviewReplyDto":{"type":"object","properties":{"comment":{"type":"string","maxLength":4096},"updateTime":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["comment"]},"ZernioGoogleBusinessReviewPhotoDto":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["url"]},"ZernioGoogleBusinessReviewDto":{"type":"object","properties":{"id":{"type":"string","maxLength":256},"name":{"type":"string","maxLength":512},"reviewer":{"$ref":"#/components/schemas/ZernioGoogleBusinessPublicReviewerDto"},"rating":{"type":"number","minimum":1,"maximum":5},"starRating":{"type":"string","enum":["ONE","TWO","THREE","FOUR","FIVE"]},"comment":{"type":"string","maxLength":100000},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"reviewReply":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ZernioGoogleBusinessPublicReviewReplyDto"}]},"photoCount":{"type":"number","minimum":0},"photos":{"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewPhotoDto"}}},"additionalProperties":false,"required":["id","name","reviewer","rating","starRating","createTime","updateTime","reviewReply","photoCount","photos"]},"ZernioGoogleBusinessReviewsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"reviews":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewDto"}},"averageRating":{"type":"number","minimum":0,"maximum":5},"totalReviewCount":{"type":"number","minimum":0},"nextPageToken":{"type":"string","nullable":true,"maxLength":8192}},"additionalProperties":false,"required":["success","accountId","locationId","reviews","averageRating","totalReviewCount","nextPageToken"]},"ZernioGoogleBusinessReviewResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"review":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewDto"}},"additionalProperties":false,"required":["success","accountId","locationId","review"]},"ZernioGoogleBusinessReviewBatchInputDto":{"type":"object","properties":{"locationNames":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","pattern":"^accounts/[1-9]\\d{0,29}/locations/[1-9]\\d{0,29}$"}},"pageSize":{"type":"number","minimum":1,"maximum":50,"default":50},"pageToken":{"type":"string","minLength":1,"maxLength":8192},"orderBy":{"type":"string","enum":["updateTime desc","rating","rating desc"],"default":"updateTime desc"}},"additionalProperties":false,"required":["locationNames"]},"ZernioGoogleBusinessReviewerDto":{"type":"object","properties":{"displayName":{"type":"string","nullable":true,"maxLength":2048},"profilePhotoUrl":{"type":"string","format":"uri","nullable":true},"isAnonymous":{"type":"boolean"}},"additionalProperties":false,"required":["displayName","profilePhotoUrl","isAnonymous"]},"ZernioGoogleBusinessReviewReplyDto":{"type":"object","properties":{"comment":{"type":"string","maxLength":4096},"updateTime":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["comment","updateTime"]},"ZernioGoogleBusinessReviewMediaItemDto":{"type":"object","properties":{"thumbnailUrl":{"type":"string","format":"uri"},"thumbnailLabel":{"type":"string","nullable":true,"maxLength":2048},"videoUrl":{"type":"string","format":"uri","nullable":true}},"additionalProperties":false,"required":["thumbnailUrl","thumbnailLabel","videoUrl"]},"ZernioGoogleBusinessBatchReviewDto":{"type":"object","properties":{"reviewId":{"type":"string","maxLength":256},"name":{"type":"string","maxLength":512},"reviewer":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewerDto"},"starRating":{"type":"string","enum":["STAR_RATING_UNSPECIFIED","ONE","TWO","THREE","FOUR","FIVE"]},"comment":{"type":"string","nullable":true,"maxLength":100000},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"reviewReply":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewReplyDto"}]},"reviewMediaItems":{"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessReviewMediaItemDto"}}},"additionalProperties":false,"required":["reviewId","name","reviewer","starRating","comment","createTime","updateTime","reviewReply","reviewMediaItems"]},"ZernioGoogleBusinessLocationReviewDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^accounts/[1-9]\\d{0,29}/locations/[1-9]\\d{0,29}$"},"review":{"$ref":"#/components/schemas/ZernioGoogleBusinessBatchReviewDto"}},"additionalProperties":false,"required":["name","review"]},"ZernioGoogleBusinessReviewBatchResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationReviews":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessLocationReviewDto"}},"nextPageToken":{"type":"string","minLength":1,"maxLength":8192}},"additionalProperties":false,"required":["success","accountId","locationReviews"]},"ZernioGoogleBusinessReviewReplyInputDto":{"type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":4096,"description":"Reply text; Google enforces a 4,096 UTF-8 byte maximum."}},"additionalProperties":false,"required":["comment"]},"ZernioGoogleBusinessReviewReplyResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"reviewId":{"type":"string","maxLength":256},"platform":{"type":"string","enum":["googlebusiness"]}},"additionalProperties":false,"required":["success","reviewId","platform"]},"ZernioGoogleBusinessReviewReplyDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","enum":["Reply deleted successfully"]},"platform":{"type":"string","enum":["googlebusiness"]}},"additionalProperties":false,"required":["success","message","platform"]},"ZernioGoogleBusinessPlaceActionDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/placeActionLinks/[A-Za-z0-9_-]{1,256}$"},"uri":{"type":"string","format":"uri","maxLength":4096},"placeActionType":{"type":"string","enum":["APPOINTMENT","ONLINE_APPOINTMENT","DINING_RESERVATION","FOOD_ORDERING","FOOD_DELIVERY","FOOD_TAKEOUT","SHOP_ONLINE"]},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["name","uri","placeActionType"]},"ZernioGoogleBusinessPlaceActionListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"placeActionLinks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ZernioGoogleBusinessPlaceActionDto"}},"nextPageToken":{"type":"string","minLength":1,"maxLength":8192}},"additionalProperties":false,"required":["success","accountId","locationId","placeActionLinks"]},"ZernioGoogleBusinessPlaceActionCreateInputDto":{"type":"object","properties":{"uri":{"type":"string","format":"uri","minLength":1,"maxLength":4096},"placeActionType":{"type":"string","enum":["APPOINTMENT","ONLINE_APPOINTMENT","DINING_RESERVATION","FOOD_ORDERING","FOOD_DELIVERY","FOOD_TAKEOUT","SHOP_ONLINE"]}},"additionalProperties":false,"required":["uri","placeActionType"]},"ZernioGoogleBusinessPlaceActionMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/placeActionLinks/[A-Za-z0-9_-]{1,256}$"},"uri":{"type":"string","format":"uri","maxLength":4096},"placeActionType":{"type":"string","enum":["APPOINTMENT","ONLINE_APPOINTMENT","DINING_RESERVATION","FOOD_ORDERING","FOOD_DELIVERY","FOOD_TAKEOUT","SHOP_ONLINE"]}},"additionalProperties":false,"required":["success","name","uri","placeActionType"]},"ZernioGoogleBusinessPlaceActionUpdateInputDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/placeActionLinks/[A-Za-z0-9_-]{1,256}$"},"uri":{"type":"string","format":"uri","minLength":1,"maxLength":4096},"placeActionType":{"type":"string","enum":["APPOINTMENT","ONLINE_APPOINTMENT","DINING_RESERVATION","FOOD_ORDERING","FOOD_DELIVERY","FOOD_TAKEOUT","SHOP_ONLINE"]}},"additionalProperties":false,"required":["name"]},"ZernioGoogleBusinessPlaceActionDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"deleted":{"type":"boolean","enum":[true]},"name":{"type":"string","pattern":"^locations/[1-9]\\d{0,29}/placeActionLinks/[A-Za-z0-9_-]{1,256}$"}},"additionalProperties":false,"required":["success","deleted","name"]},"ZernioGoogleBusinessServicesResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"locationId":{"type":"string","pattern":"^[1-9]\\d{0,29}$"},"services":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceItemDto"}}},"additionalProperties":false,"required":["success","accountId","locationId","services"]},"ZernioGoogleBusinessServicesUpdateInputDto":{"type":"object","properties":{"serviceItems":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceItemDto"}}},"additionalProperties":false,"required":["serviceItems"]},"ZernioGoogleBusinessServicesUpdateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"services":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationServiceItemDto"}}},"additionalProperties":false,"required":["success","services"]},"InstagramAudioAssetDto":{"type":"object","properties":{"audioId":{"type":"string","pattern":"^\\d{1,30}$"},"title":{"type":"string","nullable":true,"maxLength":512},"audioType":{"type":"string","enum":["music","original_sound"],"nullable":true},"durationInMs":{"type":"number","nullable":true,"minimum":0},"displayArtist":{"type":"string","nullable":true,"maxLength":512},"coverArtworkThumbnailUrl":{"type":"string","nullable":true,"format":"uri","maxLength":4096},"downloadUrl":{"type":"string","nullable":true,"format":"uri","maxLength":4096},"igUsername":{"type":"string","nullable":true,"maxLength":100},"profilePictureUrl":{"type":"string","nullable":true,"format":"uri","maxLength":4096},"isAdsEligible":{"type":"boolean","nullable":true},"onPlatformAudioPreviewLink":{"type":"string","nullable":true,"format":"uri","maxLength":4096}},"additionalProperties":false,"required":["audioId","title","audioType","durationInMs","displayArtist","coverArtworkThumbnailUrl","downloadUrl","igUsername","profilePictureUrl","isAdsEligible","onPlatformAudioPreviewLink"]},"InstagramAudioSearchResponseDto":{"type":"object","properties":{"audio":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/InstagramAudioAssetDto"}}},"additionalProperties":false,"required":["audio"]},"InstagramAudioResponseDto":{"type":"object","properties":{"audio":{"$ref":"#/components/schemas/InstagramAudioAssetDto"}},"additionalProperties":false,"required":["audio"]},"InstagramAccountInsightsDateRangeDto":{"type":"object","properties":{"since":{"type":"string","format":"date"},"until":{"type":"string","format":"date"}},"additionalProperties":false,"required":["since","until"]},"InstagramAccountInsightUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["reach","views","accounts_engaged","total_interactions","comments","likes","saves","shares","replies","reposts","follows_and_unfollows","profile_links_taps","follower_count","followers_gained","followers_lost"]},"reason":{"type":"string","enum":["not_enrolled","permission_missing","unsupported_metric","no_data","unreadable_value","mixed_currency","upstream_error"]},"message":{"type":"string"}},"additionalProperties":false,"required":["metric","reason","message"]},"InstagramAccountInsightsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["instagram"]},"dateRange":{"$ref":"#/components/schemas/InstagramAccountInsightsDateRangeDto"},"metricType":{"type":"string","enum":["time_series","total_value"]},"breakdown":{"type":"string","enum":["media_product_type","follow_type","follower_type","contact_button_type"]},"metrics":{"type":"object","additionalProperties":{"type":"object","required":["total"],"additionalProperties":false,"properties":{"total":{"type":"number","minimum":0},"values":{"type":"array","items":{"type":"object","required":["date","value"],"additionalProperties":false,"properties":{"date":{"type":"string","format":"date"},"value":{"type":"number","minimum":0}}}},"breakdowns":{"type":"array","items":{"type":"object","required":["dimension","value"],"additionalProperties":false,"properties":{"dimension":{"type":"string","minLength":1,"maxLength":128},"value":{"type":"number","minimum":0}}}},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true}}}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/InstagramAccountInsightUnavailableMetricDto"}},"dataDelay":{"type":"string","enum":["Data may be delayed up to 48 hours"]}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metricType","metrics","dataDelay"]},"InstagramDemographicsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["instagram"]},"metric":{"type":"string","enum":["follower_demographics","engaged_audience_demographics"]},"timeframe":{"type":"string","enum":["this_week","this_month"]},"demographics":{"type":"object","additionalProperties":{"type":"array","maxItems":45,"items":{"type":"object","required":["dimension","value"],"additionalProperties":false,"properties":{"dimension":{"type":"string","minLength":1,"maxLength":256},"value":{"type":"number","minimum":0}}}}},"note":{"type":"string","enum":["Demographics show top 45 entries per dimension. Requires 100+ followers."]}},"additionalProperties":false,"required":["success","accountId","platform","metric","timeframe","demographics","note"]},"InstagramPublishingLimitDto":{"type":"object","properties":{"quotaUsage":{"type":"integer","minimum":0,"description":"Posts published in the current rolling window."},"quotaTotal":{"type":"integer","minimum":1,"description":"Provider-reported publishing capacity."},"quotaDurationSeconds":{"type":"integer","minimum":1,"description":"Provider window duration in seconds."}},"additionalProperties":false,"required":["quotaUsage","quotaTotal","quotaDurationSeconds"]},"InboxCommentEditRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for the connected Reddit account."},"platform":{"type":"string","enum":["reddit"],"description":"Platform that owns the comment. Editing a comment is supported on Reddit only."},"content":{"type":"string","minLength":1,"description":"Replacement comment body in Reddit markdown. The full body is replaced; there is no partial patch."}},"additionalProperties":false,"required":["accountId","platform","content"]},"InboxCommentEditResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"commentId":{"type":"string","pattern":"^t1_[a-z0-9]{1,32}$","example":"t1_xyz789","description":"Canonical Reddit comment fullname, unchanged by the edit."},"platform":{"type":"string","enum":["reddit"],"example":"reddit"}},"additionalProperties":false,"required":["status","commentId","platform"]},"InboxCommentLikeRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id that performs the like. Its stored platform decides which provider contract applies."},"cid":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[!-~]{1,256}$","description":"Bluesky only, and required there: the content identifier of the exact comment revision being liked. An AT Protocol like pins (uri, cid). Reddit has no per-revision identifier and rejects this field rather than ignoring it."}},"additionalProperties":false,"required":["accountId"]},"InboxCommentLikeResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"commentId":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$","description":"The commentId exactly as it was requested."},"liked":{"type":"boolean","enum":[true],"description":"The desired like state that was applied."},"likeUri":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$","description":"Bluesky only: the AT URI of the like record just written. It is the ONLY handle that can undo this like, and zumpo stores nothing, so a caller that wants to unlike later must keep it. Absent for Reddit, where a vote is not a record and has no identity."},"platform":{"type":"string","enum":["bluesky","reddit"]}},"additionalProperties":false,"required":["status","commentId","liked","platform"]},"InboxCommentUnlikeResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"commentId":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[!-~]{1,512}$","description":"The commentId exactly as it was requested."},"liked":{"type":"boolean","enum":[false],"description":"The desired like state that was applied."},"platform":{"type":"string","enum":["bluesky","reddit"]}},"additionalProperties":false,"required":["status","commentId","liked","platform"]},"InboxCommentedPostDto":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["facebook","instagram","twitter","bluesky","threads","youtube","linkedin","reddit","metaads"]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accountUsername":{"type":"string"},"content":{"type":"string","description":"Post text/caption. On an ad row this is the ad name, not creative copy."},"picture":{"type":"string","nullable":true},"permalink":{"type":"string","nullable":true},"createdTime":{"type":"string","format":"date-time"},"commentCount":{"type":"number","minimum":0},"likeCount":{"type":"number","minimum":0,"description":"Omitted when no durable like observation exists."},"cid":{"type":"string","nullable":true},"subreddit":{"type":"string","nullable":true},"isAd":{"type":"boolean"},"adId":{"type":"string"},"placement":{"type":"string","enum":["facebook","instagram"]}},"additionalProperties":false,"required":["id","platform","accountId","picture","permalink","createdTime","commentCount","isAd"]},"InboxCommentListPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["hasMore","nextCursor"]},"InboxCommentListFailedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accountUsername":{"type":"string","nullable":true},"platform":{"type":"string"},"error":{"type":"string","description":"Sanitized Zumpo error message; provider response bodies are never exposed."},"code":{"type":"string","nullable":true},"retryAfter":{"type":"number","nullable":true,"minimum":0}},"additionalProperties":false,"required":["accountId","accountUsername","platform","error","code","retryAfter"]},"InboxCommentListSkippedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string"}},"additionalProperties":false,"required":["accountId","platform"]},"InboxCommentListMetaDto":{"type":"object","properties":{"accountsQueried":{"type":"number","minimum":0},"accountsFailed":{"type":"number","minimum":0},"failedAccounts":{"type":"array","items":{"$ref":"#/components/schemas/InboxCommentListFailedAccountDto"}},"lastUpdated":{"type":"string","format":"date-time"},"accountsSkipped":{"type":"array","items":{"$ref":"#/components/schemas/InboxCommentListSkippedAccountDto"}}},"additionalProperties":false,"required":["accountsQueried","accountsFailed","failedAccounts","lastUpdated","accountsSkipped"]},"InboxCommentListResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxCommentedPostDto"}},"pagination":{"$ref":"#/components/schemas/InboxCommentListPaginationDto"},"meta":{"$ref":"#/components/schemas/InboxCommentListMetaDto"}},"additionalProperties":false,"required":["data","pagination","meta"]},"InboxConversationCreateInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for a connected Slack workspace."},"participantId":{"type":"string","minLength":9,"maxLength":32,"pattern":"^[UW][A-Z0-9]{8,31}$","description":"Slack workspace member id to open the direct message with. List candidates with GET /v1/accounts/{accountId}/slack-members. The member must belong to the connected workspace."},"message":{"type":"string","minLength":1,"maxLength":40000,"description":"Text-only first message. Whitespace is preserved."}},"additionalProperties":false,"required":["accountId","participantId","message"]},"InboxConversationCreateDataDto":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^v1:D[A-Z0-9]{8,31}:\\d{10}\\.\\d{6}:bot$","description":"Durable Slack message reference for the first message, as returned by the shared send path."},"conversationId":{"type":"string","pattern":"^D[A-Z0-9]{8,31}$","description":"Slack direct-message conversation id opened for the participant."},"participantId":{"type":"string","pattern":"^[UW][A-Z0-9]{8,31}$","description":"Slack workspace member id the direct message was opened with."}},"additionalProperties":false,"required":["messageId","conversationId","participantId"]},"InboxConversationCreateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/InboxConversationCreateDataDto"}},"additionalProperties":false,"required":["success","data"]},"InboxConversationSearchConversationDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"platform":{"type":"string","enum":["facebook","instagram","telegram","whatsapp"]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"participantName":{"type":"string","nullable":true,"maxLength":512},"participantUsername":{"type":"string","nullable":true,"maxLength":512},"participantPicture":{"type":"string","nullable":true,"format":"uri"},"status":{"type":"string","enum":["active","archived"]},"lastMessage":{"type":"string","nullable":true,"maxLength":4096},"lastMessageAt":{"type":"string","nullable":true,"format":"date-time"}},"additionalProperties":false,"required":["id","platform","accountId","participantName","participantUsername","participantPicture","status","lastMessage","lastMessageAt"]},"InboxConversationSearchMessageDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":2054},"text":{"type":"string","nullable":true,"maxLength":4096},"direction":{"type":"string","enum":["incoming","outgoing"]},"timestamp":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["id","text","direction","timestamp"]},"InboxConversationSearchItemDto":{"type":"object","properties":{"conversation":{"$ref":"#/components/schemas/InboxConversationSearchConversationDto"},"matchCount":{"type":"number","minimum":0},"matches":{"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/InboxConversationSearchMessageDto"}}},"additionalProperties":false,"required":["conversation","matchCount","matches"]},"InboxConversationSearchPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["hasMore","nextCursor"]},"InboxConversationSearchFailedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accountUsername":{"type":"string","nullable":true,"maxLength":512},"platform":{"type":"string"},"error":{"type":"string","maxLength":1024}},"additionalProperties":false,"required":["accountId","accountUsername","platform","error"]},"InboxConversationSearchSkippedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["slack"]}},"additionalProperties":false,"required":["accountId","platform"]},"InboxConversationSearchMetaDto":{"type":"object","properties":{"accountsQueried":{"type":"number","minimum":0,"description":"Accessible accounts whose durable local projection was searched."},"accountsFailed":{"type":"number","minimum":0},"failedAccounts":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationSearchFailedAccountDto"}},"lastUpdated":{"type":"string","format":"date-time","description":"Server time at which the durable search page was assembled."},"accountsSkipped":{"description":"Accessible connected messaging accounts without a searchable local message projection.","type":"array","items":{"$ref":"#/components/schemas/InboxConversationSearchSkippedAccountDto"}}},"additionalProperties":false,"required":["accountsQueried","accountsFailed","failedAccounts","lastUpdated","accountsSkipped"]},"InboxConversationSearchResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationSearchItemDto"}},"pagination":{"$ref":"#/components/schemas/InboxConversationSearchPaginationDto"},"meta":{"$ref":"#/components/schemas/InboxConversationSearchMetaDto"}},"additionalProperties":false,"required":["data","pagination","meta"]},"InboxConversationParticipantDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"InboxConversationInstagramProfileDto":{"type":"object","properties":{"isFollower":{"type":"boolean","nullable":true},"isFollowing":{"type":"boolean","nullable":true},"followerCount":{"type":"number","nullable":true},"isVerified":{"type":"boolean","nullable":true},"fetchedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"InboxConversationDetailsDto":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"accountUsername":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"status":{"type":"string","enum":["active","archived"]},"participantName":{"type":"string"},"participantId":{"type":"string"},"participantVerifiedType":{"type":"string","enum":["blue","government","business","none"],"nullable":true},"lastMessage":{"type":"string"},"lastMessageAt":{"type":"string","format":"date-time"},"updatedTime":{"type":"string","format":"date-time"},"participants":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationParticipantDto"}},"instagramProfile":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/InboxConversationInstagramProfileDto"}]},"metadata":{"type":"object","nullable":true,"additionalProperties":true}},"additionalProperties":false},"InboxConversationDetailsResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/InboxConversationDetailsDto"}},"additionalProperties":false},"InboxConversationMessagesPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false},"InboxMessageAttachmentDto":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["image","video","audio","file","sticker","share"]},"url":{"type":"string"},"refreshUrl":{"type":"string","nullable":true},"filename":{"type":"string","nullable":true},"previewUrl":{"type":"string","nullable":true}},"additionalProperties":false},"InboxMessageEditAttachmentDto":{"type":"object","properties":{"type":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"InboxMessageEditHistoryEntryDto":{"type":"object","properties":{"text":{"type":"string","nullable":true},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessageEditAttachmentDto"}},"editedAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["text","attachments","editedAt"]},"InboxMessageDeliveryErrorDto":{"type":"object","properties":{"code":{"type":"number"},"title":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false},"InboxMessageReactionDto":{"type":"object","properties":{"emoji":{"type":"string"},"fromMe":{"type":"boolean"},"reactedAt":{"type":"string","format":"date-time"}},"additionalProperties":false},"InboxConversationMessageDto":{"type":"object","properties":{"id":{"type":"string"},"conversationId":{"type":"string"},"accountId":{"type":"string"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"message":{"type":"string"},"senderId":{"type":"string"},"senderName":{"type":"string","nullable":true},"senderVerifiedType":{"type":"string","enum":["blue","government","business","none"],"nullable":true},"direction":{"type":"string","enum":["incoming","outgoing"]},"createdAt":{"type":"string","format":"date-time"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessageAttachmentDto"}},"subject":{"type":"string","nullable":true},"storyReply":{"type":"boolean","nullable":true},"isStoryMention":{"type":"boolean","nullable":true},"isEdited":{"type":"boolean"},"editedAt":{"type":"string","format":"date-time","nullable":true},"editCount":{"type":"number"},"editHistory":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessageEditHistoryEntryDto"}},"isDeleted":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"deliveryStatus":{"type":"string","enum":["sent","delivered","read","failed","deleted"],"nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"sentAt":{"type":"string","format":"date-time","nullable":true},"deliveryError":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/InboxMessageDeliveryErrorDto"}]},"reactions":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessageReactionDto"}},"metadata":{"type":"object","additionalProperties":true},"sentVia":{"type":"string","enum":["human","api","broadcast","sequence","workflow","comment_automation","bulk-api"],"nullable":true}},"additionalProperties":false},"InboxConversationMessagesResponseDto":{"type":"object","properties":{"status":{"type":"string"},"pagination":{"$ref":"#/components/schemas/InboxConversationMessagesPaginationDto"},"sortOrderApplied":{"type":"string","enum":["asc","desc"]},"messages":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationMessageDto"}},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false},"InboxMessageAttachmentResponseDto":{"type":"object","properties":{"status":{"type":"string","example":"success"},"url":{"type":"string"},"refreshed":{"type":"boolean"}},"additionalProperties":false},"MarkInboxConversationReadRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"}},"additionalProperties":false,"required":["accountId"]},"MarkInboxConversationReadResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"markedCount":{"type":"number"}},"additionalProperties":false},"UpdateInboxConversationRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false,"required":["accountId","status"]},"UpdateInboxConversationDataDto":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"status":{"type":"string","enum":["active","archived"]},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":false},"UpdateInboxConversationResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/UpdateInboxConversationDataDto"}},"additionalProperties":false},"InboxConversationDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account this conversation was read from."},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"],"description":"Platform of the account this conversation was read from."},"id":{"type":"string","minLength":1,"maxLength":256,"description":"Provider conversation id, opaque and platform specific."},"participantId":{"type":"string","minLength":1,"maxLength":256,"description":"Provider id of the other participant."},"participantName":{"type":"string","maxLength":256,"description":"Display name of the participant when the provider returns one."},"lastMessageAt":{"type":"string","nullable":true,"format":"date-time","description":"Timestamp of the last known message, when the provider reports it."},"unreadCount":{"type":"number","minimum":0,"description":"Unread message count when the provider reports it."},"windowExpiresAt":{"type":"string","nullable":true,"format":"date-time","description":"End of the platform messaging window, when the platform enforces one."}},"additionalProperties":false,"required":["accountId","platform","id","participantId"]},"InboxConversationsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean","description":"True when at least one eligible account still has pages to read. A round that fails for an account keeps this true while that account is retried; after a few consecutive failures the account is abandoned for this cursor chain so pagination can terminate."},"nextCursor":{"type":"string","nullable":true,"description":"Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter."}},"additionalProperties":false,"required":["hasMore","nextCursor"]},"InboxConversationFailedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"Stable Zumpo error code explaining why this account was not read."}},"additionalProperties":false,"required":["accountId","platform","code"]},"InboxConversationsMetaDto":{"type":"object","properties":{"accountsQueried":{"type":"number","minimum":0,"description":"Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted."},"accountsFailed":{"type":"number","minimum":0,"description":"Eligible accounts this round could not read, whether or not the provider was reached. Each one is named in failedAccounts."},"failedAccounts":{"description":"One entry per failed account. Empty when nothing failed.","type":"array","items":{"$ref":"#/components/schemas/InboxConversationFailedAccountDto"}},"lastUpdated":{"type":"string","format":"date-time","description":"Server time this fan-out was assembled."}},"additionalProperties":false,"required":["accountsQueried","accountsFailed","failedAccounts","lastUpdated"]},"InboxConversationsResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationDto"}},"pagination":{"$ref":"#/components/schemas/InboxConversationsPaginationDto"},"meta":{"$ref":"#/components/schemas/InboxConversationsMetaDto"}},"additionalProperties":false,"required":["data","pagination","meta"]},"InboxPostLikeRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id that performs the like. Its stored platform selects the provider call; bluesky and youtube are supported."},"cid":{"type":"string","pattern":"^bafyrei[a-z2-7]{52}$","description":"Bluesky only, and required there: content identifier of the exact subject revision being liked. AT Protocol likes pin a strong ref (uri, cid), so a like without it cannot be written. Rejected with 400 for a youtube account."}},"additionalProperties":false,"required":["accountId"]},"InboxPostLikeResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"postId":{"type":"string","pattern":"^[!-~]{1,512}$","description":"The RESOLVED native post id the like was applied to: the YouTube video id, or the Bluesky feed-post AT URI. When the request carried a Zumpo post id this is the published target id it resolved to."},"platform":{"type":"string","enum":["bluesky","youtube"],"description":"Platform of the account that performed the like. Derived from the stored account row, never from the request body."},"liked":{"type":"boolean","enum":[true],"description":"Always true on a successful like."},"likeUri":{"type":"string","pattern":"^at://did:[a-z]{1,32}:[A-Za-z0-9._:%-]{1,256}/app\\.bsky\\.feed\\.like/[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$","description":"Bluesky only: AT URI of the like record just written. Nothing is persisted, so the caller must keep it and pass it back to unlikePost. Absent for youtube."}},"additionalProperties":false,"required":["status","postId","platform","liked"]},"InboxPostUnlikeResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"postId":{"type":"string","pattern":"^[!-~]{1,512}$","description":"The RESOLVED native post id the unlike was applied to: the YouTube video id, or the Bluesky feed-post AT URI. When the request carried a Zumpo post id this is the published target id it resolved to. On Bluesky this value is echoed back unverified: the record actually deleted is the one named by likeUri, and an AT Protocol like URI does not encode its subject, so the two are not cross-checked."},"platform":{"type":"string","enum":["bluesky","youtube"],"description":"Platform of the account that performed the like. Derived from the stored account row, never from the request body."},"liked":{"type":"boolean","enum":[false],"description":"Always false: the like was cleared."}},"additionalProperties":false,"required":["status","postId","platform","liked"]},"InboxReviewReviewerDto":{"type":"object","properties":{"displayName":{"type":"string","maxLength":2048,"description":"Reviewer display name. Omitted when Google returns an anonymous review with no name."},"profilePhotoUrl":{"type":"string","format":"uri","nullable":true,"description":"Reviewer profile photo URL when Google returns one."},"isAnonymous":{"type":"boolean","description":"True when Google marks the review as anonymous."}},"additionalProperties":false,"required":["profilePhotoUrl","isAnonymous"]},"InboxReviewPhotoDto":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["url"]},"InboxReviewReplyDetailDto":{"type":"object","properties":{"text":{"type":"string","maxLength":4096},"created":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["text","created"]},"InboxReviewDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256,"description":"Provider review id, opaque and platform specific."},"platform":{"type":"string","enum":["googlebusiness"],"description":"Platform of the account this review was read from. Only Google Business has a shipped review pipeline today."},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account this review was read from."},"accountUsername":{"type":"string","maxLength":512,"description":"Stored display identity of the account. Omitted when the account carries no display name."},"locationId":{"type":"string","minLength":1,"maxLength":30,"description":"Google Business location id this review belongs to."},"locationName":{"type":"string","maxLength":512,"description":"Stored title of the Google Business location. Omitted when the account carries no display name."},"reviewer":{"$ref":"#/components/schemas/InboxReviewReviewerDto"},"rating":{"type":"number","minimum":0,"maximum":5,"description":"Star rating, 1-5. 0 means Google reported STAR_RATING_UNSPECIFIED for this review."},"text":{"type":"string","maxLength":100000,"description":"Review body. Omitted when the reviewer left only a star rating."},"created":{"type":"string","format":"date-time","description":"Time Google reports the review was created."},"hasReply":{"type":"boolean","description":"True when the location has published a reply to this review."},"hasPhotos":{"type":"boolean","description":"True when the review carries at least one photo."},"photoCount":{"type":"number","minimum":0,"description":"Number of photos on the review."},"photos":{"maxItems":100,"description":"Review photos. Video attachments are not included.","type":"array","items":{"$ref":"#/components/schemas/InboxReviewPhotoDto"}},"reply":{"nullable":true,"description":"Published reply, or null when the location has not replied.","type":"object","allOf":[{"$ref":"#/components/schemas/InboxReviewReplyDetailDto"}]}},"additionalProperties":false,"required":["id","platform","accountId","locationId","reviewer","rating","created","hasReply","hasPhotos","photoCount","photos","reply"]},"InboxReviewsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean","description":"True when at least one eligible account still has unread pages, including an account that failed this round."},"nextCursor":{"type":"string","nullable":true,"description":"Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter."}},"additionalProperties":false,"required":["hasMore","nextCursor"]},"InboxReviewFailedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"Stable Zumpo error code explaining why this account was not read."}},"additionalProperties":false,"required":["accountId","platform","code"]},"InboxReviewsMetaDto":{"type":"object","properties":{"accountsQueried":{"type":"number","minimum":0,"description":"Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted."},"accountsFailed":{"type":"number","minimum":0,"description":"Subset of accountsQueried whose provider read failed."},"failedAccounts":{"description":"One entry per failed account. Empty when nothing failed.","type":"array","items":{"$ref":"#/components/schemas/InboxReviewFailedAccountDto"}},"lastUpdated":{"type":"string","format":"date-time","description":"Server time this fan-out was assembled."}},"additionalProperties":false,"required":["accountsQueried","accountsFailed","failedAccounts","lastUpdated"]},"InboxReviewsSummaryDto":{"type":"object","properties":{"averageRating":{"type":"number","minimum":0,"maximum":5,"nullable":true,"description":"Review-count weighted mean of the per-location averages of the accounts read this round, rounded to two decimals. Null when no account was read or all read accounts have zero reviews."},"totalReviews":{"type":"number","minimum":0,"description":"Sum of the all-time review counts Google reports for the accounts read this round. Not the number of items in data."}},"additionalProperties":false,"required":["averageRating","totalReviews"]},"InboxReviewsResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxReviewDto"}},"pagination":{"$ref":"#/components/schemas/InboxReviewsPaginationDto"},"meta":{"$ref":"#/components/schemas/InboxReviewsMetaDto"},"summary":{"$ref":"#/components/schemas/InboxReviewsSummaryDto"}},"additionalProperties":false,"required":["status","data","pagination","meta","summary"]},"InboxReviewReplyInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"message":{"type":"string","minLength":1,"maxLength":4096}},"additionalProperties":false,"required":["accountId","message"]},"InboxReviewReplyResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"platform":{"type":"string","enum":["googlebusiness"]},"reply":{"$ref":"#/components/schemas/InboxReviewReplyDetailDto"}},"additionalProperties":false,"required":["status","platform","reply"]},"InboxReviewReplyDeleteInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"}},"additionalProperties":false,"required":["accountId"]},"InboxReviewReplyDeleteResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"message":{"type":"string","enum":["Reply deleted successfully"]},"platform":{"type":"string","enum":["googlebusiness"]}},"additionalProperties":false,"required":["status","message","platform"]},"InboxMentionReplyInputDto":{"type":"object","properties":{"accountId":{"type":"string","description":"The Instagram social account id.","pattern":"^[0-9a-f]{24}$"},"mediaId":{"type":"string","description":"The id of the media the account was mentioned in.","maxLength":32},"commentId":{"type":"string","description":"The mentioning comment's id. Omit for a caption mention, in which case the reply is posted as a new comment on the media.","maxLength":32},"message":{"type":"string","description":"The reply text.","minLength":1,"maxLength":2200}},"additionalProperties":false,"required":["accountId","mediaId","message"]},"InboxMentionReplyResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true},"id":{"type":"string","description":"Provider id of the created reply or comment."}},"required":["success","id"]},"InboxPrivateReplyQuickReplyDto":{"type":"object","properties":{"title":{"type":"string","description":"Label shown on the chip. Rejected beyond the maximum rather than truncated by the provider.","minLength":1,"maxLength":20},"payload":{"type":"string","description":"Opaque value returned in the inbound webhook when the user taps the chip.","minLength":1,"maxLength":1000},"imageUrl":{"type":"string","description":"Optional thumbnail shown next to the chip title. Must be https.","format":"uri","maxLength":2048}},"required":["title","payload"]},"InboxPrivateReplyButtonDto":{"type":"object","properties":{"type":{"type":"string","description":"Button kind. `phone` is Facebook only and is rejected for Instagram accounts.","enum":["url","postback","phone"]},"title":{"type":"string","minLength":1,"maxLength":20},"url":{"type":"string","description":"Required when type is `url`. Must be https.","format":"uri","maxLength":2048},"payload":{"type":"string","description":"Required when type is `postback`.","minLength":1,"maxLength":1000},"phone":{"type":"string","description":"Required when type is `phone`. E.164. This is the BUSINESS number that gets dialled, not an end-user number."}},"required":["type","title"]},"InboxPrivateReplyInputDto":{"type":"object","properties":{"accountId":{"type":"string","description":"The Instagram or Facebook social account id.","pattern":"^[0-9a-f]{24}$"},"message":{"type":"string","description":"The message text to send as a private message.","minLength":1,"maxLength":1000},"quickReplies":{"description":"Optional quick-reply chips appended to the message. Mutually exclusive with `buttons`. Chips do NOT render in the Instagram Message Requests folder where messages from non-followers land; use `buttons` for cold reach.","maxItems":13,"type":"array","items":{"$ref":"#/components/schemas/InboxPrivateReplyQuickReplyDto"}},"buttons":{"description":"Optional inline buttons rendered in the same message bubble. Mutually exclusive with `quickReplies`. Visible in the Instagram Message Requests folder, unlike quick replies.","minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/InboxPrivateReplyButtonDto"}}},"required":["accountId","message"]},"InboxPrivateReplyResponseDto":{"type":"object","properties":{"status":{"type":"string","example":"success"},"messageId":{"type":"string","description":"Provider id of the sent message."},"commentId":{"type":"string","description":"The comment id that was replied to."},"platform":{"type":"string","enum":["instagram","facebook"],"example":"instagram"}},"required":["status","messageId","commentId","platform"]},"InboxMentionDto":{"type":"object","properties":{"id":{"type":"string","description":"Mention id."},"platform":{"type":"string","enum":["linkedin"]},"accountId":{"type":"string"},"accountUsername":{"type":"string","description":"Username of the connected account."},"content":{"type":"string","nullable":true,"description":"Text of the post that mentioned you."},"permalink":{"type":"string","nullable":true,"description":"URL to the source post on LinkedIn."},"authorUrn":{"type":"string","nullable":true,"description":"LinkedIn URN of the person who mentioned you."},"authorName":{"type":"string","nullable":true},"authorUsername":{"type":"string","nullable":true,"description":"LinkedIn vanity name of the author."},"authorPicture":{"type":"string","nullable":true,"description":"Profile picture URL of the author. LinkedIn CDN URLs expire, so fetch promptly rather than storing long-term."},"organizationalEntity":{"type":"string","description":"URN of the organization that was mentioned."},"publishedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","platform","accountId","accountUsername","organizationalEntity","publishedAt","createdAt"]},"InboxMentionsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","nullable":true,"description":"Id of the last item on this page. Pass it back verbatim as `cursor`."}},"required":["hasMore"]},"InboxMentionsMetaDto":{"type":"object","properties":{"total":{"type":"number","description":"Total mentions matching the filter."},"sortOrder":{"type":"string","enum":["asc","desc"]}},"required":["total","sortOrder"]},"InboxMentionsResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxMentionDto"}},"pagination":{"$ref":"#/components/schemas/InboxMentionsPaginationDto"},"meta":{"$ref":"#/components/schemas/InboxMentionsMetaDto"}},"required":["data","pagination","meta"]},"InstagramActiveStoryDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,31}$","description":"Instagram media ID of the story."},"mediaType":{"type":"string","enum":["IMAGE","VIDEO","CAROUSEL_ALBUM"],"nullable":true},"mediaProductType":{"type":"string","enum":["STORY"],"nullable":true},"mediaUrl":{"type":"string","format":"uri","nullable":true},"permalink":{"type":"string","format":"uri","nullable":true},"thumbnailUrl":{"type":"string","format":"uri","nullable":true},"timestamp":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["id"]},"InstagramActiveStoriesResponseDto":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/InstagramActiveStoryDto"}}},"additionalProperties":false,"required":["data"]},"InstagramStoryInsightMetricsDto":{"type":"object","properties":{"views":{"type":"integer","minimum":0},"reach":{"type":"integer","minimum":0},"replies":{"type":"integer","minimum":0},"shares":{"type":"integer","minimum":0},"navigation":{"type":"integer","minimum":0},"tapsForward":{"type":"integer","minimum":0},"tapsBack":{"type":"integer","minimum":0},"exits":{"type":"integer","minimum":0},"swipesForward":{"type":"integer","minimum":0},"profileVisits":{"type":"integer","minimum":0},"follows":{"type":"integer","minimum":0},"reposts":{"type":"integer","minimum":0},"totalInteractions":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["views","reach","replies","shares","navigation","tapsForward","tapsBack","exits","swipesForward","profileVisits","follows","reposts","totalInteractions"]},"InstagramStoryInsightsDataDto":{"type":"object","properties":{"source":{"type":"string","enum":["live","cached","unavailable"],"description":"live is read from Meta, cached is a persisted webhook final state, and unavailable means neither source exists."},"metrics":{"$ref":"#/components/schemas/InstagramStoryInsightMetricsDto"}},"additionalProperties":false,"required":["source","metrics"]},"InstagramStoryInsightsResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/InstagramStoryInsightsDataDto"}},"additionalProperties":false,"required":["data"]},"LinkedInAnalyticsDateRangeDto":{"type":"object","properties":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}},"additionalProperties":false,"required":["startDate","endDate"]},"LinkedInAggregateTotalMetricsDto":{"type":"object","properties":{"impressions":{"type":"number","minimum":0},"reach":{"type":"number","minimum":0},"reactions":{"type":"number","minimum":0},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0},"saves":{"type":"number","minimum":0},"sends":{"type":"number","minimum":0},"engagementRate":{"type":"number","minimum":0}},"additionalProperties":false},"LinkedInAggregateAnalyticsTotalResponseDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"accountType":{"type":"string","enum":["personal"]},"username":{"type":"string","minLength":1,"maxLength":512},"aggregation":{"type":"string","enum":["TOTAL"]},"dateRange":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LinkedInAnalyticsDateRangeDto"}]},"analytics":{"$ref":"#/components/schemas/LinkedInAggregateTotalMetricsDto"},"skippedMetrics":{"type":"array","items":{"type":"string"}},"note":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","accountType","username","aggregation","dateRange","analytics","note","lastUpdated"]},"LinkedInDailyAnalyticsPointDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"count":{"type":"number","minimum":0}},"additionalProperties":false,"required":["date","count"]},"LinkedInAggregateDailyMetricsDto":{"type":"object","properties":{"impressions":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}},"reactions":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}},"comments":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}},"shares":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}},"saves":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}},"sends":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInDailyAnalyticsPointDto"}}},"additionalProperties":false},"LinkedInAggregateAnalyticsDailyResponseDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"accountType":{"type":"string","enum":["personal"]},"username":{"type":"string","minLength":1,"maxLength":512},"aggregation":{"type":"string","enum":["DAILY"]},"dateRange":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LinkedInAnalyticsDateRangeDto"}]},"analytics":{"$ref":"#/components/schemas/LinkedInAggregateDailyMetricsDto"},"skippedMetrics":{"type":"array","items":{"type":"string"}},"note":{"type":"string"},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","accountType","username","aggregation","dateRange","analytics","note","lastUpdated"]},"LinkedInOrganizationAnalyticsValueDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"value":{"type":"number"}},"additionalProperties":false,"required":["date","value"]},"LinkedInOrganizationAnalyticsMetricDto":{"type":"object","properties":{"total":{"type":"number"},"values":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInOrganizationAnalyticsValueDto"}},"breakdowns":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"value":{"type":"number"}}}},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true}},"additionalProperties":false,"required":["total"]},"LinkedInOrganizationAnalyticsDateRangeDto":{"type":"object","properties":{"since":{"type":"string","format":"date"},"until":{"type":"string","format":"date"}},"additionalProperties":false,"required":["since","until"]},"LinkedInOrganizationUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["impressions","unique_impressions","clicks","likes","comments","shares","engagement_rate","organic_followers_gained","paid_followers_gained","page_views_total","page_views_overview","page_views_careers","page_views_jobs","page_views_life","followers_gained","followers_lost"]},"reason":{"type":"string","enum":["permission_missing","unsupported_metric","no_data","unreadable_value","upstream_error"]},"message":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["metric","reason","message"]},"LinkedInOrganizationAggregateAnalyticsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"dateRange":{"$ref":"#/components/schemas/LinkedInOrganizationAnalyticsDateRangeDto"},"metricType":{"type":"string","enum":["time_series","total_value"]},"breakdown":{"type":"string"},"metrics":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/LinkedInOrganizationAnalyticsMetricDto"}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInOrganizationUnavailableMetricDto"}},"dataDelay":{"type":"string","enum":["LinkedIn organization analytics may be delayed by up to 48 hours."]}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metricType","metrics","dataDelay"]},"LinkedInPostAnalyticsMetricsDto":{"type":"object","properties":{"impressions":{"type":"number","minimum":0},"reach":{"type":"number","minimum":0},"likes":{"type":"number"},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0},"saves":{"type":"number","minimum":0},"sends":{"type":"number","minimum":0},"clicks":{"type":"number","minimum":0},"views":{"type":"number","minimum":0},"engagementRate":{"type":"number"}},"additionalProperties":false},"LinkedInPostAnalyticsResponseDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"accountType":{"type":"string","enum":["personal","organization"]},"username":{"type":"string","minLength":1,"maxLength":512},"postUrn":{"type":"string","pattern":"^urn:li:(share|ugcPost):[1-9][0-9]{0,19}$"},"analytics":{"$ref":"#/components/schemas/LinkedInPostAnalyticsMetricsDto"},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","accountType","username","postUrn","analytics","lastUpdated"]},"LinkedInReactionFromDto":{"type":"object","properties":{"urn":{"type":"string","pattern":"^urn:li:(person|organization):"},"name":{"type":"string","minLength":1,"maxLength":256},"headline":{"type":"string","minLength":1,"maxLength":512},"username":{"type":"string","minLength":1,"maxLength":128},"profilePicture":{"type":"string","format":"uri"},"profileUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["urn"]},"LinkedInPostReactionDto":{"type":"object","properties":{"reactionType":{"type":"string","enum":["LIKE","PRAISE","EMPATHY","INTEREST","APPRECIATION","ENTERTAINMENT"]},"reactionLabel":{"type":"string"},"reactedAt":{"type":"string","format":"date-time"},"from":{"$ref":"#/components/schemas/LinkedInReactionFromDto"}},"additionalProperties":false,"required":["reactionType","reactionLabel","reactedAt","from"]},"LinkedInReactionsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","pattern":"^[0-9]+$"},"total":{"type":"number","minimum":0}},"additionalProperties":false,"required":["hasMore"]},"LinkedInPostReactionsResponseDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"accountType":{"type":"string","enum":["organization"]},"username":{"type":"string","minLength":1,"maxLength":512},"postUrn":{"type":"string","pattern":"^urn:li:(share|ugcPost|activity):"},"reactions":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInPostReactionDto"}},"pagination":{"$ref":"#/components/schemas/LinkedInReactionsPaginationDto"},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","accountType","username","postUrn","reactions","pagination","lastUpdated"]},"LinkedInMentionResponseDto":{"type":"object","properties":{"urn":{"type":"string","pattern":"^urn:li:(person|organization):"},"type":{"type":"string","enum":["person","organization"]},"displayName":{"type":"string","minLength":1,"maxLength":256},"mentionFormat":{"type":"string","minLength":1,"maxLength":1024},"vanityName":{"type":"string","minLength":1,"maxLength":128},"warning":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["urn","type","displayName","mentionFormat"]},"AdTargetingEntityDto":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":512},"radius":{"type":"number","minimum":0,"exclusiveMinimum":true},"distanceUnit":{"type":"string","enum":["mile","kilometer"]}},"additionalProperties":false,"required":["key"]},"AdExcludedLocationsDto":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"string"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"cities":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"zips":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"places":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"neighborhoods":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"customLocations":{"type":"array","items":{"type":"object"}}},"additionalProperties":false},"AdTargetingInterestDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["id"]},"AdTargetingSpecDto":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"string"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"cities":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"zips":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"metros":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingEntityDto"}},"customLocations":{"type":"array","items":{"type":"object"}},"excludedLocations":{"$ref":"#/components/schemas/AdExcludedLocationsDto"},"ageMin":{"type":"number","minimum":13,"maximum":100},"ageMax":{"type":"number","minimum":13,"maximum":100},"gender":{"type":"string","enum":["all","male","female"]},"incomeTier":{"type":"string","enum":["top_5","top_10","top_10_25","top_25_50"]},"languages":{"type":"array","items":{"type":"string"}},"interests":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingInterestDto"}},"behaviors":{"type":"array","items":{"$ref":"#/components/schemas/AdTargetingInterestDto"}},"industries":{"type":"array","items":{"type":"string"}},"companySizes":{"type":"array","items":{"type":"string"}},"seniorities":{"type":"array","items":{"type":"string"}},"jobFunctions":{"type":"array","items":{"type":"string"}},"audienceInclude":{"type":"array","items":{"type":"string"}},"audienceExclude":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"LinkedInBidPricingRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"adAccountId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"spec":{"$ref":"#/components/schemas/AdTargetingSpecDto"},"campaignType":{"type":"string","enum":["TEXT_AD","SPONSORED_UPDATES","SPONSORED_INMAILS"],"default":"SPONSORED_UPDATES"},"bidType":{"type":"string","enum":["CPM","CPC","CPV"],"default":"CPM"},"matchType":{"type":"string","enum":["EXACT","AUDIENCE_EXPANDED"],"default":"EXACT"},"currency":{"type":"string","minLength":3,"maxLength":3,"default":"USD"},"objectiveType":{"type":"string","minLength":1,"maxLength":128},"optimizationTargetType":{"type":"string","minLength":1,"maxLength":128},"dailyBudget":{"type":"number","minimum":0,"exclusiveMinimum":true}},"additionalProperties":false,"required":["accountId","adAccountId","spec"]},"LinkedInMoneyAmountDto":{"type":"object","properties":{"amount":{"type":"string","pattern":"^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$"},"currencyCode":{"type":"string","minLength":3,"maxLength":3}},"additionalProperties":false,"required":["amount","currencyCode"]},"LinkedInMoneyPairDto":{"type":"object","properties":{"min":{"$ref":"#/components/schemas/LinkedInMoneyAmountDto"},"max":{"$ref":"#/components/schemas/LinkedInMoneyAmountDto"}},"additionalProperties":false,"required":["min","max"]},"LinkedInMoneyTripleDto":{"type":"object","properties":{"min":{"$ref":"#/components/schemas/LinkedInMoneyAmountDto"},"max":{"$ref":"#/components/schemas/LinkedInMoneyAmountDto"},"default":{"$ref":"#/components/schemas/LinkedInMoneyAmountDto"}},"additionalProperties":false,"required":["min","max","default"]},"LinkedInBidPricingDto":{"type":"object","properties":{"bidLimits":{"$ref":"#/components/schemas/LinkedInMoneyPairDto"},"suggestedBid":{"$ref":"#/components/schemas/LinkedInMoneyTripleDto"},"dailyBudgetLimits":{"$ref":"#/components/schemas/LinkedInMoneyTripleDto"}},"additionalProperties":false,"required":["bidLimits","suggestedBid","dailyBudgetLimits"]},"LinkedInBidPricingResponseDto":{"type":"object","properties":{"available":{"type":"boolean"},"pricing":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LinkedInBidPricingDto"}]}},"additionalProperties":false,"required":["available"]},"LinkedInCompetingBidDto":{"type":"object","properties":{"bidType":{"type":"string","enum":["CPM","CPC","CPV"]},"amount":{"type":"number","minimum":0,"exclusiveMinimum":true}},"additionalProperties":false,"required":["bidType","amount"]},"LinkedInSupplyForecastRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"adAccountId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"spec":{"$ref":"#/components/schemas/AdTargetingSpecDto"},"campaignType":{"type":"string","enum":["SPONSORED_UPDATES","SPONSORED_INMAILS","DYNAMIC"],"default":"SPONSORED_UPDATES"},"timeRangeStart":{"type":"number","format":"int64"},"timeRangeEnd":{"type":"number","format":"int64"},"objectiveType":{"type":"string","minLength":1,"maxLength":128},"optimizationTarget":{"type":"string","minLength":1,"maxLength":128},"dailyBudget":{"type":"number","minimum":0,"exclusiveMinimum":true},"totalBudget":{"type":"number","minimum":0,"exclusiveMinimum":true},"currency":{"type":"string","minLength":3,"maxLength":3,"default":"USD"},"competingBid":{"$ref":"#/components/schemas/LinkedInCompetingBidDto"},"enableAudienceNetwork":{"type":"boolean","default":false},"enableAudienceExpansion":{"type":"boolean","default":false},"connectedTelevisionOnly":{"type":"boolean","default":false}},"additionalProperties":false,"required":["accountId","adAccountId","spec","timeRangeStart","timeRangeEnd"]},"LinkedInAdForecastRangeDto":{"type":"object","properties":{"lowEnd":{"type":"number","minimum":0},"highEnd":{"type":"number","minimum":0}},"additionalProperties":false,"required":["lowEnd","highEnd"]},"LinkedInSupplyForecastPointDto":{"type":"object","properties":{"timestamp":{"type":"number","format":"int64","minimum":0},"value":{"type":"number","minimum":0},"adForecastRange":{"$ref":"#/components/schemas/LinkedInAdForecastRangeDto"}},"additionalProperties":false,"required":["timestamp","value","adForecastRange"]},"LinkedInSupplyForecastSeriesDto":{"type":"object","properties":{"metricType":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,127}$"},"granularity":{"type":"string","enum":["DAILY","SEVEN_DAY","THIRTY_DAY","CUSTOM"]},"timeSeries":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInSupplyForecastPointDto"}}},"additionalProperties":false,"required":["metricType","granularity","timeSeries"]},"LinkedInSupplyForecastResponseDto":{"type":"object","properties":{"available":{"type":"boolean"},"forecast":{"type":"array","items":{"$ref":"#/components/schemas/LinkedInSupplyForecastSeriesDto"}}},"additionalProperties":false,"required":["available"]},"LinkedInOrganizationDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"name":{"type":"string","minLength":1,"maxLength":256},"vanityName":{"type":"string","minLength":1,"maxLength":128},"localizedName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["id","name","localizedName"]},"LinkedInOrganizationsResponseDto":{"type":"object","properties":{"organizations":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/LinkedInOrganizationDto"}}},"additionalProperties":false,"required":["organizations"]},"LinkedInOrganizationUpdateSelectionDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"urn":{"type":"string","pattern":"^urn:li:organization:[1-9][0-9]{0,15}$"},"name":{"type":"string","minLength":1,"maxLength":256},"logoUrl":{"type":"string","format":"uri","maxLength":2048},"vanityName":{"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false},"LinkedInOrganizationUpdateRequestDto":{"type":"object","properties":{"accountType":{"type":"string","enum":["personal","organization"]},"selectedOrganization":{"$ref":"#/components/schemas/LinkedInOrganizationUpdateSelectionDto"}},"additionalProperties":false,"required":["accountType"]},"LinkedInOrganizationUpdateResponseDto":{"type":"object","properties":{"message":{"type":"string"},"accountType":{"type":"string","enum":["personal","organization"]},"accountName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["message","accountType","accountName"]},"RedditVoteInputDto":{"type":"object","properties":{"thingId":{"type":"string","pattern":"^(?:t[13]_)?[a-z0-9]{1,32}$","description":"Reddit post/comment fullname; a bare id is treated as a post."},"direction":{"type":"integer","enum":[1,0,-1]}},"additionalProperties":false,"required":["thingId","direction"]},"RedditEngagementSuccessDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"RedditPostFlairInputDto":{"type":"object","properties":{"subreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","minLength":1,"maxLength":64},"postId":{"type":"string","pattern":"^(?:t3_)?[a-z0-9]{1,32}$","minLength":1,"description":"Reddit post id with or without its t3_ prefix."},"flairTemplateId":{"type":"string","pattern":"^[A-Za-z0-9._~-]{1,36}$","minLength":1,"maxLength":36},"text":{"type":"string","maxLength":64,"description":"Override text for an editable flair template."}},"additionalProperties":false,"required":["subreddit","postId","flairTemplateId"]},"RedditFlairDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9._~-]{1,36}$","maxLength":36,"description":"Reddit link-flair template id."},"text":{"type":"string","maxLength":64,"description":"Provider-visible flair template text."},"textEditable":{"type":"boolean","description":"Whether the template accepts caller-provided flair text."},"textColor":{"type":"string","enum":["dark","light"]},"backgroundColor":{"type":"string","pattern":"^(?:|#[0-9A-Fa-f]{6})$","maxLength":7}},"additionalProperties":false,"required":["id","text","textEditable","textColor","backgroundColor"]},"RedditFlairListDto":{"type":"object","properties":{"flairs":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/RedditFlairDto"}}},"additionalProperties":false,"required":["flairs"]},"RedditReadItemDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9]{1,32}$","maxLength":32},"fullname":{"type":"string","pattern":"^t3_[a-z0-9]{1,32}$","maxLength":35},"title":{"type":"string","minLength":1,"maxLength":300},"selftext":{"type":"string","maxLength":40000},"author":{"type":"string","minLength":1,"maxLength":256},"subreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64},"url":{"type":"string","format":"uri","maxLength":8192},"permalink":{"type":"string","format":"uri","pattern":"^https://www\\.reddit\\.com/r/","maxLength":2080},"score":{"type":"number"},"numComments":{"type":"number","minimum":0},"createdUtc":{"type":"number","minimum":0,"maximum":10000000000},"over18":{"type":"boolean"},"stickied":{"type":"boolean"},"flairText":{"type":"string","nullable":true,"maxLength":64},"isGallery":{"type":"boolean"},"galleryImages":{"type":"array","maxItems":20,"items":{"type":"string","format":"uri"}}},"additionalProperties":false,"required":["id","fullname","title","selftext","author","subreddit","url","permalink","score","numComments","createdUtc","over18","stickied","flairText","isGallery"]},"RedditReadPageDto":{"type":"object","properties":{"items":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/RedditReadItemDto"}},"after":{"type":"string","nullable":true,"pattern":"^t3_[a-z0-9]{1,32}$","maxLength":35},"before":{"type":"string","nullable":true,"pattern":"^t3_[a-z0-9]{1,32}$","maxLength":35}},"additionalProperties":false,"required":["items","after","before"]},"RedditSubredditRuleDto":{"type":"object","properties":{"kind":{"type":"string","enum":["all","link","comment"]},"shortName":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":10000},"violationReason":{"type":"string","minLength":1,"maxLength":100},"createdUtc":{"type":"number","minimum":0,"maximum":10000000000},"priority":{"type":"integer","minimum":0,"maximum":99}},"additionalProperties":false,"required":["kind","shortName","description","violationReason","createdUtc","priority"]},"RedditSubredditRulesResponseDto":{"type":"object","properties":{"rules":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/RedditSubredditRuleDto"}},"siteRules":{"maxItems":100,"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["rules","siteRules"]},"RedditSubredditDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9._~-]{1,256}$","maxLength":256,"description":"Provider subreddit thing id."},"name":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64,"description":"Subreddit display name without an r/ prefix."},"title":{"type":"string","maxLength":512,"description":"Provider-visible subreddit title."},"url":{"type":"string","pattern":"^/r/[A-Za-z0-9_]{1,64}/$","maxLength":68,"description":"Canonical Reddit-relative subreddit path."},"over18":{"type":"boolean","description":"Whether Reddit marks the subreddit as adult-only."}},"additionalProperties":false,"required":["id","name","title","url","over18"]},"RedditSubredditListDto":{"type":"object","properties":{"subreddits":{"maxItems":100,"description":"Autocomplete returns at most 10 items; no-query contributor discovery returns at most the requested limit (100 maximum).","type":"array","items":{"$ref":"#/components/schemas/RedditSubredditDto"}},"defaultSubreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64,"description":"Explicit durable default for this connected provider identity. Omitted until a default has been selected."},"hasMore":{"type":"boolean","description":"Whether another provider Listing page is available."},"nextCursor":{"type":"string","nullable":true,"maxLength":2048,"description":"Opaque cursor for the next no-query discovery page."}},"additionalProperties":false,"required":["subreddits"]},"SetRedditDefaultSubredditDto":{"type":"object","properties":{"defaultSubreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","minLength":1,"maxLength":64,"description":"Subreddit name without an r/ prefix."}},"additionalProperties":false,"required":["defaultSubreddit"]},"RedditDefaultSubredditResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"defaultSubreddit":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$","maxLength":64}},"additionalProperties":false,"required":["success","defaultSubreddit"]},"ValidatedSubredditDto":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_]{1,64}$"},"title":{"type":"string","maxLength":512},"description":{"type":"string","maxLength":10000},"subscribers":{"type":"integer","minimum":0,"maximum":9007199254740991},"isNSFW":{"type":"boolean"},"type":{"type":"string","enum":["public","restricted"]},"allowImages":{"type":"boolean"},"allowVideos":{"type":"boolean"}},"additionalProperties":false,"required":["name","title","description","subscribers","isNSFW","type","allowImages","allowVideos"]},"SubredditExistsResponseDto":{"type":"object","properties":{"exists":{"type":"boolean","enum":[true]},"subreddit":{"$ref":"#/components/schemas/ValidatedSubredditDto"}},"additionalProperties":false,"required":["exists","subreddit"]},"SubredditMissingResponseDto":{"type":"object","properties":{"exists":{"type":"boolean","enum":[false]},"error":{"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false,"required":["exists","error"]},"SlackInboxMessageInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for a connected Slack, Telegram, WhatsApp, Facebook, or Instagram account."},"message":{"type":"string","minLength":1,"maxLength":40000,"description":"Text-only inbox message. Whitespace is preserved. Provider limits apply: Instagram 1000 and Facebook 2000 Unicode code points; Telegram and WhatsApp 4096 characters."},"replyTo":{"type":"string","maxLength":65,"pattern":"^(?:\\d{10}\\.\\d{6}|v1:D[A-Z0-9]{8,31}:\\d{10}\\.\\d{6}:(?:bot|participant))$","description":"Optional Slack-only parent timestamp or same-conversation durable message reference."}},"additionalProperties":false,"required":["accountId","message"]},"SlackInboxMessageDataDto":{"type":"object","properties":{"messageId":{"type":"string","maxLength":2054,"pattern":"^(?:v1:D[A-Z0-9]{8,31}:\\d{10}\\.\\d{6}:bot|-?[1-9][0-9]{0,19}:[1-9][0-9]{0,19}|wamid\\.[!-~]+|[!-~]{1,1024})$","description":"Canonical provider message identity returned by the adapter."},"conversationId":{"type":"string","pattern":"^(?:D[A-Z0-9]{8,31}|-?[1-9][0-9]{0,19}|[1-9][0-9]{0,31})$","description":"Existing provider conversation id."},"sentAt":{"type":"string","format":"date-time","description":"Provider-correlated send timestamp."},"message":{"type":"string","minLength":1,"maxLength":40000,"description":"The exact text correlated with the provider response."}},"additionalProperties":false,"required":["messageId","conversationId","sentAt","message"]},"SlackInboxMessageResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/SlackInboxMessageDataDto"}},"additionalProperties":false,"required":["success","data"]},"SlackMemberDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[UW][A-Z0-9]{8,31}$","description":"Slack member ID; pass it as participantId to start a DM."},"name":{"type":"string","minLength":1,"maxLength":256,"description":"Best available display name."},"username":{"type":"string","nullable":true,"minLength":1,"maxLength":80,"description":"Slack handle, or null when unavailable."},"picture":{"type":"string","format":"uri","nullable":true,"maxLength":2048,"description":"HTTPS avatar URL, or null when unavailable."}},"additionalProperties":false,"required":["id","name","username","picture"]},"SlackMemberPageDto":{"type":"object","properties":{"members":{"maxItems":2000,"type":"array","items":{"$ref":"#/components/schemas/SlackMemberDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192,"description":"Opaque account-, workspace-, revision- and query-bound continuation cursor."}},"additionalProperties":false,"required":["members","hasMore","nextCursor"]},"TelegramCommandDto":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[a-z0-9_]+$","description":"Bot command without the leading slash."},"description":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["command","description"]},"TelegramCommandListDto":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/TelegramCommandDto"}}},"additionalProperties":false,"required":["data"]},"SetTelegramCommandsDto":{"type":"object","properties":{"commands":{"minItems":0,"maxItems":100,"description":"Full replacement for the default, language-neutral command list. Scope, language, and ephemeral-command fields are intentionally unsupported.","type":"array","items":{"$ref":"#/components/schemas/TelegramCommandDto"}}},"additionalProperties":false,"required":["commands"]},"TelegramInboxInlineKeyboardButtonDto":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":64,"description":"Visible button label."},"callbackData":{"type":"string","minLength":1,"maxLength":64,"description":"Opaque callback payload delivered back on tap. Bounded by 64 UTF-8 bytes, not characters. Exactly one of callbackData or url is required."},"url":{"type":"string","minLength":1,"maxLength":2048,"description":"http(s) URL opened on tap. Exactly one of callbackData or url is required."}},"additionalProperties":false,"required":["text"]},"TelegramInboxReplyMarkupDto":{"type":"object","properties":{"type":{"type":"string","enum":["inline_keyboard"],"description":"Only inline keyboards can be attached to an existing message."},"keyboard":{"type":"array","description":"Rows of inline keyboard buttons, at most 100 rows and 100 buttons in total.","minItems":1,"maxItems":100,"items":{"type":"array","items":{"$ref":"#/components/schemas/TelegramInboxInlineKeyboardButtonDto"}}}},"additionalProperties":false,"required":["type","keyboard"]},"TelegramInboxMessageEditRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for the connected Telegram chat."},"text":{"type":"string","minLength":1,"maxLength":4096,"description":"Replacement message text. At least one of text or replyMarkup is required."},"replyMarkup":{"description":"Replacement inline keyboard. At least one of text or replyMarkup is required.","allOf":[{"$ref":"#/components/schemas/TelegramInboxReplyMarkupDto"}]}},"additionalProperties":false,"required":["accountId"]},"TelegramInboxMessageEditDataDto":{"type":"object","properties":{"messageId":{"type":"integer","minimum":1,"description":"The edited Telegram message id, correlated with the connected chat."}},"additionalProperties":false,"required":["messageId"]},"TelegramInboxMessageEditResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/TelegramInboxMessageEditDataDto"}},"additionalProperties":false,"required":["success","data"]},"TelegramInboxAcknowledgementDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"TelegramInboxReactionRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for the connected Telegram chat."},"emoji":{"type":"string","minLength":1,"maxLength":16,"example":"👍","description":"Single emoji reaction. The accepted emoji set is decided by Telegram; an unsupported emoji is rejected by the provider rather than by a local copy of that list."}},"additionalProperties":false,"required":["accountId","emoji"]},"TelegramInboxTypingRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Social account id whose conversation should show a typing indicator."}},"additionalProperties":false,"required":["accountId"]},"TelegramInboxTypingResponseDto":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether a typing indicator actually reached the platform. False on platforms that do not support typing indicators and when the platform call failed."}},"additionalProperties":false,"required":["success"]},"TikTokCreatorSummaryDto":{"type":"object","properties":{"nickname":{"type":"string","minLength":1,"maxLength":256},"avatarUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Short-lived TikTok avatar URL. Omitted when the provider withholds it."},"isVerified":{"type":"boolean","description":"Optional compatibility field. TikTok creator_info does not expose verification, so current responses omit it instead of guessing."},"canPostMore":{"type":"boolean","enum":[true],"description":"True on a successful creator_info response; TikTok returns a posting-cap error instead when the creator cannot post."}},"additionalProperties":false,"required":["nickname","canPostMore"]},"TikTokCreatorPrivacyLevelDto":{"type":"object","properties":{"value":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"label":{"type":"string","minLength":1,"maxLength":64}},"additionalProperties":false,"required":["value","label"]},"TikTokCreatorInteractionSettingsDto":{"type":"object","properties":{"comment":{"type":"boolean"},"duet":{"type":"boolean","description":"Video only; omitted for photo creator-info requests."},"stitch":{"type":"boolean","description":"Video only; omitted for photo creator-info requests."}},"additionalProperties":false,"required":["comment"]},"TikTokCreatorPostingLimitsDto":{"type":"object","properties":{"maxVideoDurationSec":{"type":"integer","minimum":1,"maximum":600,"description":"Video only; omitted for photo creator-info requests."},"interactionSettings":{"$ref":"#/components/schemas/TikTokCreatorInteractionSettingsDto"}},"additionalProperties":false,"required":["interactionSettings"]},"TikTokCommercialContentTypeDto":{"type":"object","properties":{"value":{"type":"string","enum":["none","brand_organic","brand_content"]},"label":{"type":"string","minLength":1,"maxLength":64},"requires":{"maxItems":1,"description":"Publishing disclosure flag implied by this selection.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["value","label","requires"]},"TikTokCreatorInfoDto":{"type":"object","properties":{"creator":{"$ref":"#/components/schemas/TikTokCreatorSummaryDto"},"privacyLevels":{"minItems":1,"maxItems":4,"type":"array","items":{"$ref":"#/components/schemas/TikTokCreatorPrivacyLevelDto"}},"postingLimits":{"$ref":"#/components/schemas/TikTokCreatorPostingLimitsDto"},"commercialContentTypes":{"minItems":3,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/TikTokCommercialContentTypeDto"}},"privacyLevelOptions":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"description":"Visibility options currently offered by TikTok for this creator.","items":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]}},"maxVideoPostDurationSec":{"type":"integer","minimum":1,"maximum":600,"description":"Maximum video duration currently accepted for this creator."},"commentDisabled":{"type":"boolean","description":"Whether TikTok requires comments to remain disabled."},"duetDisabled":{"type":"boolean","description":"Whether TikTok requires duet to remain disabled."},"stitchDisabled":{"type":"boolean","description":"Whether TikTok requires stitch to remain disabled."}},"additionalProperties":false,"required":["creator","privacyLevels","postingLimits","commercialContentTypes","privacyLevelOptions","maxVideoPostDurationSec","commentDisabled","duetDisabled","stitchDisabled"]},"TwitterBookmarkInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},"additionalProperties":false,"required":["accountId","tweetId"]},"TwitterBookmarkDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"bookmarked":{"type":"boolean","enum":[true]},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","tweetId","bookmarked","platform"]},"TwitterRemoveBookmarkDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"bookmarked":{"type":"boolean","enum":[false]},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","tweetId","bookmarked","platform"]},"TwitterFollowInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"targetUserId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},"additionalProperties":false,"required":["accountId","targetUserId"]},"TwitterFollowDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"targetUserId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"following":{"type":"boolean"},"pending_follow":{"type":"boolean"},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","targetUserId","following","pending_follow","platform"]},"TwitterUnfollowDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"targetUserId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"following":{"type":"boolean","enum":[false]},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","targetUserId","following","platform"]},"TwitterReadAuthorDto":{"type":"object","properties":{"id":{"type":"string"},"username":{"type":"string"},"displayName":{"type":"string"},"avatar":{"type":"string"},"verifiedType":{"type":"string"}},"additionalProperties":false,"required":["id","username","displayName","avatar","verifiedType"]},"TwitterReadTweetDto":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"created":{"type":"string","format":"date-time"},"conversationId":{"type":"string"},"inReplyToTweetId":{"type":"string","nullable":true},"lang":{"type":"string"},"author":{"$ref":"#/components/schemas/TwitterReadAuthorDto"},"likeCount":{"type":"number","minimum":0},"replyCount":{"type":"number","minimum":0},"retweetCount":{"type":"number","minimum":0},"quoteCount":{"type":"number","minimum":0},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["id","text","created","conversationId","inReplyToTweetId","lang","author","likeCount","replyCount","retweetCount","quoteCount","platform"]},"TwitterSearchPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["hasMore","cursor"]},"TwitterSearchMetaDto":{"type":"object","properties":{"resultCount":{"type":"number","minimum":0},"newestId":{"type":"string","nullable":true},"oldestId":{"type":"string","nullable":true},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["resultCount","newestId","oldestId","platform"]},"TwitterSearchResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweets":{"type":"array","items":{"$ref":"#/components/schemas/TwitterReadTweetDto"}},"pagination":{"$ref":"#/components/schemas/TwitterSearchPaginationDto"},"meta":{"$ref":"#/components/schemas/TwitterSearchMetaDto"}},"additionalProperties":false,"required":["status","tweets","pagination","meta"]},"TwitterTweetResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweet":{"$ref":"#/components/schemas/TwitterReadTweetDto"}},"additionalProperties":false,"required":["status","tweet"]},"TwitterRetweetInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"}},"additionalProperties":false,"required":["accountId","tweetId"]},"TwitterRetweetDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"retweeted":{"type":"boolean","enum":[true]},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","tweetId","retweeted","platform"]},"TwitterUndoRetweetDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"tweetId":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"retweeted":{"type":"boolean","enum":[false]},"platform":{"type":"string","enum":["twitter"]}},"additionalProperties":false,"required":["status","tweetId","retweeted","platform"]},"ThreadsInboxCommentVisibilityResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"commentId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Canonical Meta Threads reply media ID."},"hidden":{"type":"boolean","description":"The exact desired hidden state applied to the reply."},"platform":{"type":"string","enum":["threads"]}},"additionalProperties":false,"required":["status","commentId","hidden","platform"]},"MetaCommentVisibilityResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"commentId":{"type":"string","maxLength":128},"hidden":{"type":"boolean"},"platform":{"type":"string","enum":["facebook","instagram"]}},"additionalProperties":false,"required":["status","commentId","hidden","platform"]},"ThreadsInboxCommentVisibilityRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for the connected Threads profile."}},"additionalProperties":false,"required":["accountId"]},"ThreadsPendingReplyDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Canonical Meta Threads reply media ID."},"text":{"type":"string","nullable":true,"maxLength":500,"description":"Reply text, or null when the media reply has no text."},"username":{"type":"string","nullable":true,"maxLength":64,"description":"Visible Threads username, or null when Meta withholds it for this viewer."},"permalink":{"type":"string","format":"uri","nullable":true,"description":"Permanent Threads URL, or null when Meta withholds it, including copyright cases."},"timestamp":{"type":"string","format":"date-time","description":"Provider publication timestamp."},"mediaType":{"type":"string","enum":["TEXT_POST","IMAGE","VIDEO","CAROUSEL_ALBUM","AUDIO"]},"hasReplies":{"type":"boolean","description":"Whether this reply has visible immediate child replies."},"rootPostId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Root-level Thread ID for the conversation."},"repliedToId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Immediate parent Thread or reply ID."},"ownedByMe":{"type":"boolean","nullable":true,"description":"Whether the connected profile owns the reply, or null if omitted by Meta."},"hideStatus":{"type":"string","enum":["NOT_HUSHED","UNHUSHED","HIDDEN","COVERED","BLOCKED","RESTRICTED"],"nullable":true,"description":"Meta moderation state, or null when unavailable on this read surface."},"replyAudience":{"type":"string","enum":["EVERYONE","ACCOUNTS_YOU_FOLLOW","MENTIONED_ONLY","PARENT_POST_AUTHOR_ONLY","FOLLOWERS_ONLY"],"nullable":true,"description":"Reply audience for owned replies, or null when Meta omits it."},"approvalStatus":{"type":"string","enum":["pending","ignored"],"description":"Current Meta reply-approval queue state."}},"additionalProperties":false,"required":["id","text","username","permalink","timestamp","mediaType","hasReplies","rootPostId","repliedToId","ownedByMe","hideStatus","replyAudience","approvalStatus"]},"ThreadsPendingReplyPageDto":{"type":"object","properties":{"replies":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ThreadsPendingReplyDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192,"description":"Opaque cursor bound to the account, credential revision, post, order, and approval filter."}},"additionalProperties":false,"required":["replies","hasMore","nextCursor"]},"ThreadsPendingReplyDecisionDto":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","ignore"],"description":"Meta calls the negative decision 'ignore'; it is not a permanent rejection and can later be approved."}},"additionalProperties":false,"required":["decision"]},"ThreadsPendingReplyDecisionResultDto":{"type":"object","properties":{"replyId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Canonical Meta Threads reply media ID."},"status":{"type":"string","enum":["approved","ignored"],"description":"Requested approval state after Meta acknowledged the decision."}},"additionalProperties":false,"required":["replyId","status"]},"ThreadsReplyVisibilityDto":{"type":"object","properties":{"replyId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Canonical Meta Threads top-level reply media ID."},"hidden":{"type":"boolean","description":"The desired reply visibility state after the operation."}},"additionalProperties":false,"required":["replyId","hidden"]},"ThreadsReplyDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Canonical Meta Threads reply media ID."},"text":{"type":"string","nullable":true,"maxLength":500,"description":"Reply text, or null when the media reply has no text."},"username":{"type":"string","nullable":true,"maxLength":64,"description":"Visible Threads username, or null when Meta withholds it for this viewer."},"permalink":{"type":"string","format":"uri","nullable":true,"description":"Permanent Threads URL, or null when Meta withholds it, including copyright cases."},"timestamp":{"type":"string","format":"date-time","description":"Provider publication timestamp."},"mediaType":{"type":"string","enum":["TEXT_POST","IMAGE","VIDEO","CAROUSEL_ALBUM","AUDIO"]},"hasReplies":{"type":"boolean","description":"Whether this reply has visible immediate child replies."},"rootPostId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Root-level Thread ID for the conversation."},"repliedToId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","description":"Immediate parent Thread or reply ID."},"ownedByMe":{"type":"boolean","nullable":true,"description":"Whether the connected profile owns the reply, or null if omitted by Meta."},"hideStatus":{"type":"string","enum":["NOT_HUSHED","UNHUSHED","HIDDEN","COVERED","BLOCKED","RESTRICTED"],"nullable":true,"description":"Meta moderation state, or null when unavailable on this read surface."},"replyAudience":{"type":"string","enum":["EVERYONE","ACCOUNTS_YOU_FOLLOW","MENTIONED_ONLY","PARENT_POST_AUTHOR_ONLY","FOLLOWERS_ONLY"],"nullable":true,"description":"Reply audience for owned replies, or null when Meta omits it."}},"additionalProperties":false,"required":["id","text","username","permalink","timestamp","mediaType","hasReplies","rootPostId","repliedToId","ownedByMe","hideStatus","replyAudience"]},"ThreadsReplyPageDto":{"type":"object","properties":{"replies":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ThreadsReplyDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192,"description":"Opaque, account- and route-bound cursor for the next page; null on the final page."}},"additionalProperties":false,"required":["replies","hasMore","nextCursor"]},"WhatsAppTemplateCreateHeaderExampleDto":{"type":"object","properties":{"header_text":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"string","minLength":1,"maxLength":128}}},"additionalProperties":false,"required":["header_text"]},"WhatsAppTemplateCreateBodyExampleDto":{"type":"object","properties":{"body_text":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"array","minItems":1,"maxItems":32,"items":{"type":"string","minLength":1,"maxLength":128}},"description":"One ordered example row whose values match the contiguous positional variables."}},"additionalProperties":false,"required":["body_text"]},"WhatsAppTemplateCreateTextHeaderDto":{"type":"object","properties":{"type":{"type":"string","enum":["HEADER"]},"format":{"type":"string","enum":["TEXT"]},"text":{"type":"string","minLength":1,"maxLength":60},"example":{"$ref":"#/components/schemas/WhatsAppTemplateCreateHeaderExampleDto"}},"additionalProperties":false,"required":["type","format","text"]},"WhatsAppTemplateCreateTextBodyDto":{"type":"object","properties":{"type":{"type":"string","enum":["BODY"]},"text":{"type":"string","minLength":1,"maxLength":1024},"example":{"$ref":"#/components/schemas/WhatsAppTemplateCreateBodyExampleDto"}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateCreateTextFooterDto":{"type":"object","properties":{"type":{"type":"string","enum":["FOOTER"]},"text":{"type":"string","minLength":1,"maxLength":60}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateCreateQuickReplyButtonDto":{"type":"object","properties":{"type":{"type":"string","enum":["QUICK_REPLY"]},"text":{"type":"string","minLength":1,"maxLength":25}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateCreateTextButtonsDto":{"type":"object","properties":{"type":{"type":"string","enum":["BUTTONS"]},"buttons":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateCreateQuickReplyButtonDto"}}},"additionalProperties":false,"required":["type","buttons"]},"WhatsAppTemplateCreateAuthenticationBodyDto":{"type":"object","properties":{"type":{"type":"string","enum":["BODY"]},"add_security_recommendation":{"type":"boolean"}},"additionalProperties":false,"required":["type"]},"WhatsAppTemplateCreateAuthenticationFooterDto":{"type":"object","properties":{"type":{"type":"string","enum":["FOOTER"]},"code_expiration_minutes":{"type":"number","minimum":1,"maximum":90}},"additionalProperties":false,"required":["type","code_expiration_minutes"]},"WhatsAppTemplateCreateAuthenticationOtpButtonDto":{"type":"object","properties":{"type":{"type":"string","enum":["OTP"]},"otp_type":{"type":"string","enum":["COPY_CODE"]},"text":{"type":"string","minLength":1,"maxLength":25}},"additionalProperties":false,"required":["type","otp_type"]},"WhatsAppTemplateCreateAuthenticationButtonsDto":{"type":"object","properties":{"type":{"type":"string","enum":["BUTTONS"]},"buttons":{"minItems":1,"maxItems":1,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationOtpButtonDto"}}},"additionalProperties":false,"required":["type","buttons"]},"WhatsAppTemplateLibraryBodyInputsDto":{"type":"object","properties":{"add_contact_number":{"type":"boolean"},"add_learn_more_link":{"type":"boolean"},"add_security_recommendation":{"type":"boolean"},"add_track_package_link":{"type":"boolean"},"code_expiration_minutes":{"type":"number","minimum":1,"maximum":90}},"additionalProperties":false},"WhatsAppTemplateLibraryUrlDto":{"type":"object","properties":{"base_url":{"type":"string","format":"uri","minLength":1,"maxLength":2048},"url_suffix_example":{"type":"string","minLength":1,"maxLength":2048,"description":"Full example URL or provider URL-suffix example."}},"additionalProperties":false,"required":["base_url"]},"WhatsAppTemplateLibraryUrlButtonInputDto":{"type":"object","properties":{"type":{"type":"string","enum":["URL","url"]},"url":{"$ref":"#/components/schemas/WhatsAppTemplateLibraryUrlDto"}},"additionalProperties":false,"required":["type","url"]},"WhatsAppTemplateLibraryPhoneButtonInputDto":{"type":"object","properties":{"type":{"type":"string","enum":["PHONE_NUMBER","phone_number"]},"phone_number":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$","minLength":3,"maxLength":16}},"additionalProperties":false,"required":["type","phone_number"]},"WhatsAppTemplateLibraryQuickReplyButtonInputDto":{"type":"object","properties":{"type":{"type":"string","enum":["QUICK_REPLY","quick_reply"]}},"additionalProperties":false,"required":["type"]},"WhatsAppTemplateUpdateTextHeaderDto":{"type":"object","properties":{"type":{"type":"string","enum":["HEADER","header"]},"format":{"type":"string","enum":["TEXT","text"]},"text":{"type":"string","minLength":1,"maxLength":60},"example":{"$ref":"#/components/schemas/WhatsAppTemplateCreateHeaderExampleDto"}},"additionalProperties":false,"required":["type","format","text"]},"WhatsAppTemplateUpdateTextBodyDto":{"type":"object","properties":{"type":{"type":"string","enum":["BODY","body"]},"text":{"type":"string","minLength":1,"maxLength":1024},"example":{"$ref":"#/components/schemas/WhatsAppTemplateCreateBodyExampleDto"}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateUpdateTextFooterDto":{"type":"object","properties":{"type":{"type":"string","enum":["FOOTER","footer"]},"text":{"type":"string","minLength":1,"maxLength":60}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateUpdateQuickReplyButtonDto":{"type":"object","properties":{"type":{"type":"string","enum":["QUICK_REPLY","quick_reply"]},"text":{"type":"string","minLength":1,"maxLength":25}},"additionalProperties":false,"required":["type","text"]},"WhatsAppTemplateUpdateTextButtonsDto":{"type":"object","properties":{"type":{"type":"string","enum":["BUTTONS","buttons"]},"buttons":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateQuickReplyButtonDto"}}},"additionalProperties":false,"required":["type","buttons"]},"WhatsAppTemplateUpdateAuthenticationBodyDto":{"type":"object","properties":{"type":{"type":"string","enum":["BODY","body"]},"add_security_recommendation":{"type":"boolean"}},"additionalProperties":false,"required":["type"]},"WhatsAppTemplateUpdateAuthenticationFooterDto":{"type":"object","properties":{"type":{"type":"string","enum":["FOOTER","footer"]},"code_expiration_minutes":{"type":"number","minimum":1,"maximum":90}},"additionalProperties":false,"required":["type","code_expiration_minutes"]},"WhatsAppTemplateUpdateAuthenticationOtpButtonDto":{"type":"object","properties":{"type":{"type":"string","enum":["OTP","otp"]},"otp_type":{"type":"string","enum":["COPY_CODE","copy_code"]},"text":{"type":"string","minLength":1,"maxLength":25}},"additionalProperties":false,"required":["type","otp_type"]},"WhatsAppTemplateUpdateAuthenticationButtonsDto":{"type":"object","properties":{"type":{"type":"string","enum":["BUTTONS","buttons"]},"buttons":{"minItems":1,"maxItems":1,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationOtpButtonDto"}}},"additionalProperties":false,"required":["type","buttons"]},"WhatsAppTemplateCreateRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24,"description":"Connected Zumpo WhatsApp account id."},"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,511}$","minLength":1,"maxLength":512},"category":{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},"language":{"type":"string","enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"]},"components":{"type":"array","minItems":1,"maxItems":4,"items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextHeaderDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextButtonsDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationButtonsDto"}]},"description":"Required only for custom templates. Canonical ordered custom-text components or the bounded authentication copy-code preset; omit when library_template_name is present."},"library_template_name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","minLength":1,"maxLength":512,"description":"Exact Meta Template Library name. Selects library mode and is mutually exclusive with components; library imports require category UTILITY."},"library_template_body_inputs":{"$ref":"#/components/schemas/WhatsAppTemplateLibraryBodyInputsDto"},"library_template_button_inputs":{"type":"array","minItems":1,"maxItems":10,"items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppTemplateLibraryUrlButtonInputDto"},{"$ref":"#/components/schemas/WhatsAppTemplateLibraryPhoneButtonInputDto"},{"$ref":"#/components/schemas/WhatsAppTemplateLibraryQuickReplyButtonInputDto"}]},"description":"Ordered URL, phone-number, or quick-reply inputs required by the selected library template."}},"additionalProperties":false,"required":["accountId","name","category","language"]},"WhatsAppTemplateCreatedDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,511}$","maxLength":512},"category":{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},"language":{"type":"string","enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"]},"status":{"type":"string","enum":["PENDING","APPROVED"]},"providerReview":{"type":"string","enum":["pending","preapproved"]}},"additionalProperties":false,"required":["id","name","category","language","status","providerReview"]},"WhatsAppTemplateCreateResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"template":{"$ref":"#/components/schemas/WhatsAppTemplateCreatedDto"}},"additionalProperties":false,"required":["success","template"]},"WhatsAppTemplateDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20,"description":"Language-specific Meta message-template id."},"name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","maxLength":512,"description":"Canonical lowercase Meta template name."},"status":{"type":"string","enum":["APPROVED","ARCHIVED","DELETED","DISABLED","IN_APPEAL","LIMIT_EXCEEDED","PAUSED","PENDING","PENDING_DELETION","REJECTED"]},"category":{"oneOf":[{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},{"type":"string","pattern":"^(?!(?:AUTHENTICATION|MARKETING|UTILITY)$)[A-Z][A-Z0-9_]{0,63}$"}],"maxLength":64,"description":"Canonical Zernio categories plus non-overlapping uppercase provider extensions returned by Meta."},"language":{"type":"string","pattern":"^[a-z]{2,3}(?:_[A-Z]{2})?$","maxLength":6,"description":"Meta template language code."},"components":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":true},"description":"Provider-owned Meta component definitions. Shapes vary across text, media, commerce, carousel, Flow, and authentication templates."}},"additionalProperties":false,"required":["id","name","status","category","language","components"]},"WhatsAppTemplateListDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"templates":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true,"maxLength":8192,"description":"Opaque account-, mode-, identity-, revision-, and page-size-bound cursor; null on the final page."}},"additionalProperties":false,"required":["success","templates","hasMore","nextCursor"]},"WhatsAppTemplateDetailDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,511}$","maxLength":512},"status":{"type":"string","enum":["APPROVED","ARCHIVED","DELETED","DISABLED","IN_APPEAL","LIMIT_EXCEEDED","PAUSED","PENDING","PENDING_DELETION","REJECTED"]},"category":{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},"language":{"type":"string","enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"]},"components":{"type":"array","minItems":1,"maxItems":4,"items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextHeaderDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateTextButtonsDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateCreateAuthenticationButtonsDto"}]}}},"additionalProperties":false,"required":["id","name","status","category","language","components"]},"WhatsAppTemplateDetailResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"template":{"$ref":"#/components/schemas/WhatsAppTemplateDetailDto"}},"additionalProperties":false,"required":["success","template"]},"WhatsAppTemplateUpdateByIdRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"components":{"type":"array","minItems":1,"maxItems":4,"items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextHeaderDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextButtonsDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationButtonsDto"}]}}},"additionalProperties":false,"required":["accountId","components"]},"WhatsAppTemplateUpdatedDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,511}$","maxLength":512},"category":{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},"language":{"type":"string","enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"]},"accepted":{"type":"boolean","enum":[true]},"outcome":{"type":"string","enum":["accepted","already_current","reconciled"]},"status":{"type":"string","enum":["APPROVED","ARCHIVED","DELETED","DISABLED","IN_APPEAL","LIMIT_EXCEEDED","PAUSED","PENDING","PENDING_DELETION","REJECTED"],"description":"Present only when Meta confirmed a status through preflight or reconciliation."},"providerReview":{"type":"string","enum":["status-webhook-or-read-required"]}},"additionalProperties":false,"required":["id","name","category","language","accepted","outcome","providerReview"]},"WhatsAppTemplateUpdateResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"template":{"$ref":"#/components/schemas/WhatsAppTemplateUpdatedDto"}},"additionalProperties":false,"required":["success","template"]},"WhatsAppTemplateDeleteResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","minLength":1,"maxLength":1024},"templateId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20,"description":"Language-specific Meta message-template id selected for deletion."},"name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","maxLength":512,"description":"Canonical template name paired with the language-specific id."},"accepted":{"type":"boolean","enum":[true]},"providerState":{"type":"string","enum":["pending_deletion_or_deleted"]}},"additionalProperties":false,"required":["success","message","templateId","name","accepted","providerState"]},"WhatsAppTemplateUpdateRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"templateId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","maxLength":20,"description":"Language-specific Meta template id. Name-only updates are deliberately unsupported."},"language":{"type":"string","enum":["af","sq","ar","ar_EG","ar_AE","ar_LB","ar_MA","ar_QA","az","be_BY","bn","bn_IN","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","prs_AF","nl","nl_BE","en","en_GB","en_US","en_AE","en_AU","en_CA","en_GH","en_IE","en_IN","en_JM","en_MY","en_NZ","en_QA","en_SG","en_UG","en_ZA","et","fil","fi","fr","fr_BE","fr_CA","fr_CH","fr_CI","fr_MA","ka","de","de_AT","de_CH","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","ps_AF","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","si_LK","sk","sl","es","es_AR","es_CL","es_CO","es_CR","es_DO","es_EC","es_HN","es_MX","es_PA","es_PE","es_ES","es_UY","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"]},"category":{"type":"string","enum":["AUTHENTICATION","MARKETING","UTILITY"]},"components":{"type":"array","minItems":1,"maxItems":4,"items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextHeaderDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateTextButtonsDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationBodyDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationFooterDto"},{"$ref":"#/components/schemas/WhatsAppTemplateUpdateAuthenticationButtonsDto"}]}}},"additionalProperties":false,"required":["accountId","templateId","language","category","components"]},"WhatsAppCallingAccountConfigResponseDto":{"type":"object","properties":{"phoneNumberDocId":{"type":"string"},"phoneNumber":{"type":"string"},"callingEnabled":{"type":"boolean"},"callDeepLink":{"type":"string","nullable":true},"forwardTo":{"type":"string","nullable":true},"recordingEnabled":{"type":"boolean"},"sipAuthUsername":{"type":"string","nullable":true},"sipAuthPasswordConfigured":{"type":"boolean"},"callIconCountries":{"type":"array","nullable":true,"items":{"type":"string","minLength":2,"maxLength":2}},"callerIdMode":{"type":"string","enum":["business","platform"]},"callerIdVerified":{"type":"boolean"},"maxCallDurationSeconds":{"type":"number","nullable":true},"forwardCallerId":{"type":"string","enum":["business","caller"]}},"required":["phoneNumberDocId","phoneNumber","callingEnabled","callDeepLink","forwardTo","recordingEnabled","sipAuthUsername","sipAuthPasswordConfigured","callIconCountries","callerIdMode","callerIdVerified","maxCallDurationSeconds","forwardCallerId"]},"WhatsAppCallPermissionDto":{"type":"object","properties":{"status":{"type":"string","enum":["temporary","no_permission","permanent"]},"expiration_time":{"type":"number"}},"required":["status"]},"WhatsAppCallPermissionActionDto":{"type":"object","properties":{"action_name":{"type":"string","enum":["send_call_permission_request","start_call"]},"can_perform_action":{"type":"boolean"}},"required":["action_name","can_perform_action"]},"WhatsAppCallPermissionsResponseDto":{"type":"object","properties":{"permission":{"$ref":"#/components/schemas/WhatsAppCallPermissionDto"},"actions":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppCallPermissionActionDto"}}},"required":["permission","actions"]},"WhatsAppCallInitiateRequestDto":{"type":"object","properties":{"accountId":{"type":"string"},"to":{"type":"string"},"action":{"type":"string","enum":["send_call_permission_request"]},"bodyText":{"type":"string","maxLength":1024},"forwardTo":{"type":"string"},"recordOverride":{"type":"boolean"},"biz_opaque_callback_data":{"type":"string","maxLength":512}},"additionalProperties":false,"required":["accountId","to"]},"WhatsAppCallInitiateResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"callId":{"type":"string"},"telnyxCallControlId":{"type":"string"},"status":{"type":"string","enum":["dialing"]},"direction":{"type":"string","enum":["outbound"]},"to":{"type":"string"},"forwardTo":{"type":"string","nullable":true},"recordingEnabled":{"type":"boolean"}},"required":["success","callId","telnyxCallControlId","status","direction","to","forwardTo","recordingEnabled"]},"WhatsAppCallBillingDto":{"type":"object","properties":{"metaCostUSD":{"type":"number"},"telnyxCostUSD":{"type":"number"},"recordingCostUSD":{"type":"number"},"billableCostUSD":{"type":"number"},"totalCostUSD":{"type":"number"},"currency":{"type":"string"}},"required":["metaCostUSD","telnyxCostUSD","recordingCostUSD","billableCostUSD","totalCostUSD","currency"]},"WhatsAppCallDto":{"type":"object","properties":{"_id":{"type":"string"},"direction":{"type":"string","enum":["inbound","outbound"]},"from":{"type":"string"},"to":{"type":"string"},"status":{"type":"string","enum":["ringing","answered","ended","failed"]},"startedAt":{"type":"string","format":"date-time"},"endedAt":{"type":"string","format":"date-time"},"durationSeconds":{"type":"number"},"endReason":{"type":"string","enum":["hangup","no_answer","rejected","error"]},"recordingUrl":{"type":"string"},"billing":{"$ref":"#/components/schemas/WhatsAppCallBillingDto"}},"required":["_id","direction","from","to","status","startedAt","durationSeconds","billing"]},"WhatsAppCallListResponseDto":{"type":"object","properties":{"calls":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppCallDto"}},"nextCursor":{"type":"string","nullable":true,"format":"date-time"}},"required":["calls","nextCursor"]},"WhatsAppCallEstimateBreakdownDto":{"type":"object","properties":{"metaMinutes":{"type":"number"},"metaCostUSD":{"type":"number"},"telnyxCostUSD":{"type":"number"},"recordingCostUSD":{"type":"number"},"billableCostUSD":{"type":"number"},"totalCostUSD":{"type":"number"}},"required":["metaMinutes","metaCostUSD","telnyxCostUSD","recordingCostUSD","billableCostUSD","totalCostUSD"]},"WhatsAppCallEstimateResponseDto":{"type":"object","properties":{"destinationCountry":{"type":"string","nullable":true},"perMinuteUsd":{"type":"number"},"breakdown":{"$ref":"#/components/schemas/WhatsAppCallEstimateBreakdownDto"}},"required":["destinationCountry","perMinuteUsd","breakdown"]},"WhatsAppCallResponseDto":{"type":"object","properties":{"call":{"$ref":"#/components/schemas/WhatsAppCallDto"}},"required":["call"]},"WhatsAppCallRecordingResponseDto":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]},"WhatsAppCallingEnableRequestDto":{"type":"object","properties":{"accountId":{"type":"string"},"forwardTo":{"type":"string","description":"tel:+E164 / sip:... / wss://... destination"},"sipAuthUsername":{"type":"string"},"sipAuthPassword":{"type":"string","writeOnly":true},"recordingEnabled":{"type":"boolean","default":false},"callIconCountries":{"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"maxCallDurationSeconds":{"type":"number","minimum":30,"maximum":14400},"forwardCallerId":{"type":"string","enum":["business","caller"],"default":"business"}},"additionalProperties":false,"required":["accountId","forwardTo"]},"WhatsAppCallingEnableResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"callingEnabled":{"type":"boolean"},"sipHostname":{"type":"string"},"forwardTo":{"type":"string"},"callerIdMode":{"type":"string","enum":["business","platform"]}},"required":["success","callingEnabled","sipHostname","forwardTo","callerIdMode"]},"WhatsAppCallingUpdateRequestDto":{"type":"object","properties":{"accountId":{"type":"string"},"forwardTo":{"type":"string"},"sipAuthUsername":{"type":"string","nullable":true},"sipAuthPassword":{"type":"string","nullable":true,"writeOnly":true},"recordingEnabled":{"type":"boolean"},"callIconCountries":{"type":"array","nullable":true,"items":{"type":"string","minLength":2,"maxLength":2}},"maxCallDurationSeconds":{"type":"number","nullable":true,"minimum":30,"maximum":14400},"forwardCallerId":{"type":"string","enum":["business","caller"]}},"additionalProperties":false,"required":["accountId"]},"WhatsAppCallingMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"callingEnabled":{"type":"boolean"}},"required":["success"]},"WhatsAppCallingNumberConfigResponseDto":{"type":"object","properties":{"phoneNumber":{"type":"string"},"callingEnabled":{"type":"boolean"},"callDeepLink":{"type":"string","nullable":true},"forwardTo":{"type":"string","nullable":true},"recordingEnabled":{"type":"boolean"},"sipAuthUsername":{"type":"string","nullable":true},"sipAuthPasswordConfigured":{"type":"boolean"},"callIconCountries":{"type":"array","nullable":true,"items":{"type":"string","minLength":2,"maxLength":2}},"outboundDisabled":{"type":"boolean"},"callerIdMode":{"type":"string","enum":["business","platform"]},"callerIdVerified":{"type":"boolean"},"maxCallDurationSeconds":{"type":"number","nullable":true},"forwardCallerId":{"type":"string","enum":["business","caller"]}},"required":["phoneNumber","callingEnabled","callDeepLink","forwardTo","recordingEnabled","sipAuthUsername","sipAuthPasswordConfigured","callIconCountries","outboundDisabled","callerIdMode","callerIdVerified","maxCallDurationSeconds","forwardCallerId"]},"WhatsAppCallerIdVerificationStartRequestDto":{"type":"object","properties":{"method":{"type":"string","enum":["sms","call"],"default":"sms"}},"additionalProperties":false},"WhatsAppCallerIdVerificationStartResponseDto":{"type":"object","properties":{"verified":{"type":"boolean"},"codeSent":{"type":"boolean"},"method":{"type":"string","enum":["sms","call"]}},"required":["verified","codeSent","method"]},"WhatsAppCallerIdVerificationConfirmRequestDto":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":10}},"required":["code"]},"WhatsAppCallerIdVerificationConfirmResponseDto":{"type":"object","properties":{"verified":{"type":"boolean"}},"required":["verified"]},"WhatsAppFlowValidationErrorDto":{"type":"object","properties":{"error":{"type":"string","maxLength":128},"error_type":{"type":"string","maxLength":128},"message":{"type":"string","maxLength":2048},"line_start":{"type":"number","minimum":0},"line_end":{"type":"number","minimum":0},"column_start":{"type":"number","minimum":0},"column_end":{"type":"number","minimum":0}},"additionalProperties":false},"WhatsAppFlowPreviewDto":{"type":"object","properties":{"preview_url":{"type":"string","nullable":true,"format":"uri","maxLength":2048},"expires_at":{"type":"string","nullable":true,"maxLength":64}},"additionalProperties":false,"required":["preview_url","expires_at"]},"WhatsAppFlowDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20},"name":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string","enum":["DRAFT","PUBLISHED","DEPRECATED","BLOCKED","THROTTLED"]},"categories":{"type":"array","minItems":1,"items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"validation_errors":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowValidationErrorDto"}},"json_version":{"type":"string","nullable":true,"maxLength":32},"preview":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/WhatsAppFlowPreviewDto"}]},"version":{"type":"number","minimum":1},"lineageId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20}},"additionalProperties":false,"required":["id","name","status","categories","validation_errors","version","lineageId"]},"WhatsAppFlowListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"flows":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowDto"}}},"additionalProperties":false,"required":["success","flows"]},"CreateWhatsAppFlowDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"name":{"type":"string","minLength":1,"maxLength":128},"categories":{"type":"array","minItems":1,"items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"cloneFlowId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20},"asVersion":{"type":"boolean"},"endpointUri":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["accountId","name","categories"]},"WhatsAppFlowResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"flow":{"$ref":"#/components/schemas/WhatsAppFlowDto"}},"additionalProperties":false,"required":["success","flow"]},"WhatsAppFlowActionPayloadDto":{"type":"object","properties":{"screen":{"type":"string","minLength":1,"maxLength":128},"data":{"type":"object","additionalProperties":true}},"additionalProperties":false},"WhatsAppFlowHeaderDto":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","minLength":1,"maxLength":60}},"additionalProperties":false,"required":["type","text"]},"SendWhatsAppFlowMessageDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"to":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$","maxLength":16},"flow_id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20},"flow_cta":{"type":"string","minLength":1,"maxLength":20},"flow_action":{"type":"string","enum":["navigate","data_exchange"],"default":"navigate"},"flow_token":{"type":"string","minLength":1,"maxLength":200},"flow_action_payload":{"$ref":"#/components/schemas/WhatsAppFlowActionPayloadDto"},"body":{"type":"string","minLength":1,"maxLength":4096},"header":{"$ref":"#/components/schemas/WhatsAppFlowHeaderDto"},"footer":{"type":"string","minLength":1,"maxLength":60},"draft":{"type":"boolean"}},"additionalProperties":false,"required":["accountId","to","flow_id","flow_cta","body"]},"SendWhatsAppFlowMessageResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"messageId":{"type":"string","pattern":"^wamid\\.","maxLength":2054}},"additionalProperties":false,"required":["success","messageId"]},"WhatsAppFlowDetailsPreviewDto":{"type":"object","properties":{"preview_url":{"type":"string","format":"uri","maxLength":2048},"expires_at":{"type":"string","maxLength":64}},"additionalProperties":false},"WhatsAppFlowDetailsDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20},"name":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string","enum":["DRAFT","PUBLISHED","DEPRECATED","BLOCKED","THROTTLED"]},"categories":{"type":"array","minItems":1,"items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"validation_errors":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowValidationErrorDto"}},"json_version":{"type":"string","maxLength":32},"preview":{"$ref":"#/components/schemas/WhatsAppFlowDetailsPreviewDto"},"version":{"type":"number","minimum":1},"lineageId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20}},"additionalProperties":false,"required":["id","name","status","categories","validation_errors","version","lineageId"]},"WhatsAppFlowDetailsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"flow":{"$ref":"#/components/schemas/WhatsAppFlowDetailsDto"}},"additionalProperties":false,"required":["success","flow"]},"UpdateWhatsAppFlowDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"name":{"type":"string","minLength":1,"maxLength":128},"categories":{"type":"array","minItems":1,"items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"endpointUri":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["accountId"]},"WhatsAppFlowMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"WhatsAppFlowAssetDto":{"type":"object","properties":{"name":{"type":"string","enum":["flow.json"]},"asset_type":{"type":"string","enum":["FLOW_JSON"]},"download_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["name","asset_type","download_url"]},"WhatsAppFlowAssetsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"assets":{"maxItems":16,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowAssetDto"}}},"additionalProperties":false,"required":["success","assets"]},"UploadWhatsAppFlowJsonDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"flow_json":{"oneOf":[{"type":"object","additionalProperties":true},{"type":"string","minLength":2,"maxLength":10485760}]}},"additionalProperties":false,"required":["accountId","flow_json"]},"UploadWhatsAppFlowJsonResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"validation_errors":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowValidationErrorDto"}}},"additionalProperties":false,"required":["success","validation_errors"]},"WhatsAppFlowVersionDto":{"type":"object","properties":{"flowId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20},"version":{"type":"number","minimum":1},"parentFlowId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$","minLength":1,"maxLength":20,"nullable":true},"name":{"type":"string","nullable":true,"maxLength":128},"status":{"type":"string","enum":["DRAFT","PUBLISHED","DEPRECATED","BLOCKED","THROTTLED"],"nullable":true},"missing":{"type":"boolean"}},"additionalProperties":false,"required":["flowId","version","parentFlowId","name","status","missing"]},"WhatsAppFlowVersionsResponseDto":{"type":"object","properties":{"versions":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowVersionDto"}}},"additionalProperties":false,"required":["versions"]},"WhatsAppFlowAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24}},"additionalProperties":false,"required":["accountId"]},"WhatsAppFlowSubmittedResponseDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":2048},"receivedAt":{"type":"string","format":"date-time"},"from":{"type":"string","nullable":true,"maxLength":64},"senderName":{"type":"string","nullable":true,"maxLength":512},"conversationId":{"type":"string","nullable":true,"maxLength":2048},"flowToken":{"type":"string","nullable":true,"maxLength":200},"data":{"type":"object","additionalProperties":true},"raw":{"type":"string","nullable":true,"maxLength":262144}},"additionalProperties":false,"required":["id","receivedAt","from","senderName","conversationId","flowToken","data","raw"]},"WhatsAppFlowResponsesDto":{"type":"object","properties":{"responses":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppFlowSubmittedResponseDto"}}},"additionalProperties":false,"required":["responses"]},"WhatsAppGroupSummaryDto":{"type":"object","properties":{"id":{"type":"string","minLength":8,"maxLength":512},"subject":{"type":"string","minLength":1,"maxLength":128},"createdAt":{"type":"string","minLength":1,"maxLength":64}},"additionalProperties":false,"required":["id","subject","createdAt"]},"WhatsAppGroupPagingCursorsDto":{"type":"object","properties":{"after":{"type":"string","maxLength":2048},"before":{"type":"string","maxLength":2048}},"additionalProperties":false},"WhatsAppGroupPagingDto":{"type":"object","properties":{"cursors":{"$ref":"#/components/schemas/WhatsAppGroupPagingCursorsDto"}},"additionalProperties":false,"required":["cursors"]},"WhatsAppGroupListResponseDto":{"type":"object","properties":{"groups":{"maxItems":1024,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppGroupSummaryDto"}},"paging":{"$ref":"#/components/schemas/WhatsAppGroupPagingDto"}},"additionalProperties":false,"required":["groups","paging"]},"CreateWhatsAppGroupDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"subject":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","maxLength":2048},"joinApprovalMode":{"type":"string","enum":["approval_required","auto_approve"]}},"additionalProperties":false,"required":["accountId","subject"]},"WhatsAppCreatedGroupDto":{"type":"object","properties":{"groupId":{"type":"string","minLength":8,"maxLength":512},"inviteLink":{"type":"string","pattern":"^https://chat\\.whatsapp\\.com/","maxLength":300}},"additionalProperties":false,"required":["groupId"]},"WhatsAppGroupCreateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"group":{"$ref":"#/components/schemas/WhatsAppCreatedGroupDto"}},"additionalProperties":false,"required":["success"]},"WhatsAppGroupParticipantDto":{"type":"object","properties":{"user":{"type":"string","minLength":8,"maxLength":64},"admin":{"type":"string","maxLength":64}},"additionalProperties":false,"required":["user"]},"WhatsAppGroupDetailDto":{"type":"object","properties":{"id":{"type":"string","minLength":8,"maxLength":512},"subject":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","maxLength":2048},"joinApprovalMode":{"type":"string","enum":["approval_required","auto_approve"]},"participants":{"maxItems":1024,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppGroupParticipantDto"}},"participantCount":{"type":"number","minimum":0},"createdAt":{"type":"number","minimum":0},"isSuspended":{"type":"boolean"}},"additionalProperties":false,"required":["id","subject","description","joinApprovalMode","participants","participantCount","createdAt","isSuspended"]},"WhatsAppGroupDetailResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"group":{"$ref":"#/components/schemas/WhatsAppGroupDetailDto"}},"additionalProperties":false,"required":["success","group"]},"UpdateWhatsAppGroupDto":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":128},"description":{"type":"string","maxLength":2048},"joinApprovalMode":{"type":"string","enum":["approval_required","auto_approve"]}},"additionalProperties":false},"WhatsAppGroupMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["success","message"]},"WhatsAppGroupParticipantsDto":{"type":"object","properties":{"phoneNumbers":{"minItems":1,"maxItems":8,"uniqueItems":true,"type":"array","items":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$"}}},"additionalProperties":false,"required":["phoneNumbers"]},"WhatsAppGroupInviteLinkResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"inviteLink":{"type":"string","pattern":"^https://chat\\.whatsapp\\.com/","maxLength":300}},"additionalProperties":false,"required":["success","inviteLink"]},"WhatsAppGroupJoinRequestDto":{"type":"object","properties":{"user":{"type":"string","minLength":8,"maxLength":64},"timestamp":{"type":"number","minimum":0}},"additionalProperties":false,"required":["user","timestamp"]},"WhatsAppGroupJoinRequestsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"joinRequests":{"maxItems":1024,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppGroupJoinRequestDto"}}},"additionalProperties":false,"required":["success","joinRequests"]},"RegisterWhatsAppNumberRequestDto":{"type":"object","properties":{"pin":{"type":"string","pattern":"^\\d{6}$","minLength":6,"maxLength":6}},"additionalProperties":false},"RegisterWhatsAppNumberResponseDto":{"type":"object","properties":{"registered":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"phoneNumberId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},"additionalProperties":false,"required":["registered","accountId","phoneNumberId"]},"WhatsAppLibraryTemplateButtonDto":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","maxLength":256}},"additionalProperties":false,"required":["type","text"]},"WhatsAppLibraryTemplateDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":512},"language":{"type":"string","minLength":2,"maxLength":16},"availableLanguages":{"minItems":1,"maxItems":100,"uniqueItems":true,"type":"array","items":{"type":"string"}},"category":{"type":"string","minLength":1,"maxLength":64},"body":{"type":"string","maxLength":4096},"body_params":{"maxItems":64,"type":"array","items":{"type":"string"}},"buttons":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppLibraryTemplateButtonDto"}}},"additionalProperties":false,"required":["name","language","availableLanguages","category","body","body_params","buttons"]},"WhatsAppLibraryTemplateResponseDto":{"type":"object","properties":{"template":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/WhatsAppLibraryTemplateDto"}]}},"additionalProperties":false,"required":["template"]},"WhatsAppAccountEventDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^wae_[0-9a-f]{64}:[0-9a-f]{24}$"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"type":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"severity":{"type":"string","enum":["info","success","warning","critical"]},"title":{"type":"string","minLength":1,"maxLength":256},"detail":{"type":"string","minLength":1,"maxLength":4096},"createdAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["id","accountId","type","severity","title","detail","createdAt"]},"WhatsAppAccountEventsResponseDto":{"type":"object","properties":{"events":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppAccountEventDto"}}},"additionalProperties":false,"required":["events"]},"WhatsAppBlockStatusResponseDto":{"type":"object","properties":{"blocked":{"type":"boolean"}},"additionalProperties":false,"required":["blocked"]},"WhatsAppBlockedUserDto":{"type":"object","properties":{"waId":{"type":"string","pattern":"^[1-9][0-9]{1,14}$"}},"additionalProperties":false,"required":["waId"]},"WhatsAppBlockedUsersResponseDto":{"type":"object","properties":{"blockedUsers":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppBlockedUserDto"}},"nextCursor":{"type":"string","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["blockedUsers","nextCursor"]},"WhatsAppBlockUsersRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"users":{"minItems":1,"maxItems":1000,"uniqueItems":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["accountId","users"]},"WhatsAppBlockMutationSuccessDto":{"type":"object","properties":{"input":{"type":"string","minLength":1,"maxLength":32},"waId":{"type":"string","pattern":"^[1-9][0-9]{1,14}$"}},"additionalProperties":false,"required":["input","waId"]},"WhatsAppBlockMutationFailureDto":{"type":"object","properties":{"input":{"type":"string","minLength":1,"maxLength":32},"errors":{"minItems":1,"maxItems":16,"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["input","errors"]},"WhatsAppBlockUsersResponseDto":{"type":"object","properties":{"blocked":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppBlockMutationSuccessDto"}},"failed":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppBlockMutationFailureDto"}}},"additionalProperties":false,"required":["blocked","failed"]},"WhatsAppUnblockUsersResponseDto":{"type":"object","properties":{"unblocked":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppBlockMutationSuccessDto"}},"failed":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppBlockMutationFailureDto"}}},"additionalProperties":false,"required":["unblocked","failed"]},"WhatsAppDatasetResponseDto":{"type":"object","properties":{"datasetId":{"type":"string","nullable":true,"pattern":"^[1-9][0-9]{0,19}$"}},"additionalProperties":false,"required":["datasetId"]},"WhatsAppDatasetRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24}},"additionalProperties":false,"required":["accountId"]},"WhatsAppDatasetProvisionResponseDto":{"type":"object","properties":{"datasetId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"created":{"type":"boolean"}},"additionalProperties":false,"required":["datasetId","created"]},"WhatsAppConversionEventDto":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"eventName":{"type":"string","enum":["LeadSubmitted","Purchase","AddToCart","InitiateCheckout","ViewContent"]},"conversationId":{"type":"string","nullable":true},"eventsReceived":{"type":"number","minimum":0},"eventsFailed":{"type":"number","minimum":0},"traceId":{"type":"string","minLength":1,"maxLength":256},"durationMs":{"type":"number","minimum":0}},"additionalProperties":false,"required":["timestamp","eventName","conversationId","eventsReceived","eventsFailed","traceId","durationMs"]},"WhatsAppConversionsResponseDto":{"type":"object","properties":{"events":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppConversionEventDto"}}},"additionalProperties":false,"required":["events"]},"SendWhatsAppConversionRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":1,"maxLength":24,"description":"WhatsApp account id. The ObjectId pattern remains authoritative; minLength mirrors the Zernio contract."},"eventName":{"type":"string","enum":["LeadSubmitted","Purchase","AddToCart","InitiateCheckout","ViewContent"]},"eventId":{"type":"string","minLength":1,"maxLength":256},"eventTime":{"type":"number","minimum":1},"conversationId":{"type":"string","minLength":1,"maxLength":256},"phoneE164":{"type":"string","pattern":"^[1-9][0-9]{1,14}$","minLength":1,"maxLength":15},"value":{"type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$","minLength":3,"maxLength":3},"contentIds":{"maxItems":100,"uniqueItems":true,"type":"array","items":{"type":"string"}},"email":{"type":"string","format":"email","maxLength":254},"externalId":{"type":"string","minLength":1,"maxLength":256},"testCode":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["accountId","eventName","eventId"]},"WhatsAppConversionFailureDto":{"type":"object","properties":{"eventIndex":{"type":"number","minimum":0},"eventId":{"type":"string","minLength":1,"maxLength":256},"code":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false,"required":["eventIndex","eventId","code","message"]},"SendWhatsAppConversionResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"]},"eventsReceived":{"type":"number","minimum":0},"eventsFailed":{"type":"number","minimum":0},"failures":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppConversionFailureDto"}},"traceId":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["platform","eventsReceived","eventsFailed","failures","traceId"]},"WhatsAppKycInlineDocumentDto":{"type":"object","properties":{"requirementId":{"type":"string"},"filename":{"type":"string","maxLength":512},"base64":{"type":"string","format":"byte"}},"additionalProperties":false,"required":["requirementId","filename","base64"]},"WhatsAppKycUploadedDocumentDto":{"type":"object","properties":{"requirementId":{"type":"string"},"documentId":{"type":"string"}},"additionalProperties":false,"required":["requirementId","documentId"]},"WhatsAppKycAddressDto":{"type":"object","properties":{"requirementId":{"type":"string"},"country_code":{"type":"string","minLength":2,"maxLength":2},"business_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"street_address":{"type":"string"},"locality":{"type":"string"},"administrative_area":{"type":"string"},"postal_code":{"type":"string"}},"additionalProperties":false},"PurchaseWhatsAppCheckoutResponseDto":{"type":"object","properties":{"message":{"type":"string"},"checkoutUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["message","checkoutUrl"]},"PurchaseWhatsAppProvisionedNumberDto":{"type":"object","properties":{"id":{"type":"string"},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},"status":{"type":"string","enum":["pending_payment","pending_regulatory","regulatory_declined","provisioning","verifying","active","suspended","releasing","released"]},"country":{"type":"string","minLength":2,"maxLength":2},"provisionedAt":{"type":"string","format":"date-time"},"metaPreverifiedId":{"type":"string"},"metaVerificationStatus":{"type":"string"}},"additionalProperties":false,"required":["id","phoneNumber","status","country"]},"PurchaseWhatsAppProvisionedResponseDto":{"type":"object","properties":{"message":{"type":"string"},"phoneNumber":{"$ref":"#/components/schemas/PurchaseWhatsAppProvisionedNumberDto"}},"additionalProperties":false,"required":["message","phoneNumber"]},"PurchaseWhatsAppAlreadyPurchasedResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["already_purchased"]},"numberId":{"type":"string"},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"additionalProperties":false,"required":["status","numberId","phoneNumber"]},"PurchaseWhatsAppKycRequiredResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["kyc_required"]},"country":{"type":"string","minLength":2,"maxLength":2},"numberType":{"type":"string","enum":["local","mobile","national","toll_free"]},"kycUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["status","country","numberType","kycUrl"]},"WhatsAppPhoneNumberProfileReferenceDto":{"type":"object","properties":{"_id":{"type":"string"}},"additionalProperties":false,"required":["_id"]},"WhatsAppPhoneNumberListItemDto":{"type":"object","properties":{"_id":{"type":"string"},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},"country":{"type":"string","minLength":2,"maxLength":2},"status":{"type":"string","enum":["pending_payment","pending_regulatory","regulatory_declined","provisioning","verifying","active","suspended","releasing","released"]},"registrantName":{"type":"string","nullable":true},"telnyxOrderId":{"type":"string","nullable":true},"monthlyCents":{"type":"number","minimum":0},"hostedByZernio":{"type":"boolean"},"profileId":{"$ref":"#/components/schemas/WhatsAppPhoneNumberProfileReferenceDto"},"provisionedAt":{"type":"string","format":"date-time"},"metaPreverifiedId":{"type":"string"},"metaVerificationStatus":{"type":"string"},"onfidoVerificationUrl":{"type":"string","format":"uri","nullable":true},"endUserFirstName":{"type":"string","nullable":true},"endUserLastName":{"type":"string","nullable":true},"regulatoryDeclineReason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["_id","phoneNumber","country","status","registrantName","telnyxOrderId","monthlyCents","hostedByZernio","profileId","onfidoVerificationUrl","endUserFirstName","endUserLastName","regulatoryDeclineReason","createdAt"]},"WhatsAppConnectedPhoneNumberDto":{"type":"object","properties":{"accountId":{"type":"string"},"phoneNumber":{"type":"string","nullable":true},"displayName":{"type":"string","nullable":true},"profileId":{"type":"string","nullable":true},"connectedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["accountId","phoneNumber","displayName","profileId","connectedAt"]},"WhatsAppSandboxTemplateDto":{"type":"object","properties":{"name":{"type":"string"},"language":{"type":"string"}},"additionalProperties":false,"required":["name","language"]},"WhatsAppSandboxNumberDto":{"type":"object","properties":{"phoneNumber":{"type":"string"},"accountId":{"type":"string","nullable":true},"template":{"$ref":"#/components/schemas/WhatsAppSandboxTemplateDto"},"isSandbox":{"type":"boolean"}},"additionalProperties":false,"required":["phoneNumber","accountId","template","isSandbox"]},"WhatsAppPhoneNumbersResponseDto":{"type":"object","properties":{"numbers":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppPhoneNumberListItemDto"}},"connected":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppConnectedPhoneNumberDto"}},"sandbox":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/WhatsAppSandboxNumberDto"}]}},"additionalProperties":false,"required":["numbers","connected","sandbox"]},"PurchaseWhatsAppPhoneNumberDto":{"type":"object","properties":{"profileId":{"type":"string"},"country":{"type":"string","default":"US","minLength":2,"maxLength":2},"purchaseIntentId":{"type":"string","minLength":1,"maxLength":100},"allowMultiple":{"type":"boolean","default":false}},"additionalProperties":false,"required":["profileId"]},"WhatsAppNumberCountryDto":{"type":"object","properties":{"code":{"type":"string","minLength":2,"maxLength":2},"tier":{"type":"number","enum":[1,2,3,4]},"monthlyCents":{"type":"number","minimum":0},"needsKyc":{"type":"boolean"},"outboundCallingAvailable":{"type":"boolean"}},"additionalProperties":false,"required":["code","tier","monthlyCents","needsKyc","outboundCallingAvailable"]},"WhatsAppNumberCountriesResponseDto":{"type":"object","properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppNumberCountryDto"}}},"additionalProperties":false,"required":["countries"]},"AvailableWhatsAppNumberDto":{"type":"object","properties":{"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"additionalProperties":false,"required":["phoneNumber"]},"AvailableWhatsAppNumbersResponseDto":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"numberType":{"type":"string"},"numbers":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/AvailableWhatsAppNumberDto"}}},"additionalProperties":false,"required":["country","numberType","numbers"]},"WhatsAppNumberAreaOptionDto":{"type":"object","properties":{"ndc":{"type":"string","pattern":"^\\d{1,4}$"},"name":{"type":"string"},"count":{"type":"number","minimum":0}},"additionalProperties":false,"required":["ndc","name","count"]},"WhatsAppNumberAvailabilityResponseDto":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"numberType":{"type":"string","enum":["local","mobile","national","toll_free"]},"available":{"type":"boolean"},"addressConstraint":{"type":"string","enum":["geo","country","none"]},"areas":{"type":"array","items":{"type":"string"}},"areaOptions":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppNumberAreaOptionDto"}}},"additionalProperties":false,"required":["country","numberType","available","addressConstraint","areas","areaOptions"]},"SubmitWhatsAppNumberKycDto":{"type":"object","properties":{"profileId":{"type":"string"},"country":{"type":"string","minLength":2,"maxLength":2},"submissionId":{"type":"string","maxLength":128},"quantity":{"type":"number","minimum":1,"maximum":5,"default":1},"reuse":{"type":"boolean"},"reuseOptionId":{"type":"string"},"reuseFrom":{"type":"string"},"areaCode":{"type":"string","pattern":"^\\d{1,4}$"},"endUserFirstName":{"type":"string"},"endUserLastName":{"type":"string"},"entityType":{"type":"string","enum":["business","individual"]},"values":{"type":"object","additionalProperties":{"type":"string"}},"documents":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppKycInlineDocumentDto"},{"$ref":"#/components/schemas/WhatsAppKycUploadedDocumentDto"}]}},"address":{"$ref":"#/components/schemas/WhatsAppKycAddressDto"}},"additionalProperties":false,"required":["profileId","country"]},"WhatsAppNumberKycPrimaryDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending_payment","pending_regulatory","regulatory_declined","provisioning","verifying","active","suspended","releasing","released"]},"country":{"type":"string","minLength":2,"maxLength":2}},"additionalProperties":false,"required":["id","status","country"]},"WhatsAppNumberKycResultNumberDto":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending_payment","pending_regulatory","regulatory_declined","provisioning","verifying","active","suspended","releasing","released"]},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},"country":{"type":"string","minLength":2,"maxLength":2}},"additionalProperties":false,"required":["id","status","phoneNumber","country"]},"SubmitWhatsAppNumberKycResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["kyc_submitted","kyc_reused","kyc_already_submitted"]},"phoneNumber":{"$ref":"#/components/schemas/WhatsAppNumberKycPrimaryDto"},"numbers":{"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppNumberKycResultNumberDto"}}},"additionalProperties":false,"required":["status","phoneNumber","numbers"]},"WhatsAppKycDocumentUploadResponseDto":{"type":"object","properties":{"documentId":{"type":"string"}},"additionalProperties":false,"required":["documentId"]},"ValidateWhatsAppNumberKycAddressDto":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"street_address":{"type":"string"},"locality":{"type":"string"},"administrative_area":{"type":"string"},"postal_code":{"type":"string"}},"additionalProperties":false,"required":["country","street_address","locality","postal_code"]},"ValidateWhatsAppNumberKycAddressResponseDto":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"skipped":{"type":"boolean"}},"additionalProperties":false,"required":["ok","skipped"]},"WhatsAppKycBrandingDto":{"type":"object","properties":{"companyName":{"type":"string","maxLength":60},"logoUrl":{"type":"string","format":"uri"},"brandColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"CreateWhatsAppNumberKycLinkDto":{"type":"object","properties":{"profileId":{"type":"string"},"country":{"type":"string","minLength":2,"maxLength":2},"areaCode":{"type":"string","pattern":"^\\d{1,4}$"},"branding":{"$ref":"#/components/schemas/WhatsAppKycBrandingDto"},"redirect_url":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["profileId","country"]},"CreateWhatsAppNumberKycLinkResponseDto":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"token":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["url","token","expiresAt"]},"WhatsAppNumberKycFieldDto":{"type":"object","properties":{"requirementId":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","date","address","file","action"]},"description":{"type":"string","nullable":true},"example":{"type":"string","nullable":true},"localTo":{"type":"string","nullable":true},"audience":{"type":"string","enum":["business","individual"],"nullable":true}},"additionalProperties":false,"required":["requirementId","label","kind","description","example","localTo","audience"]},"WhatsAppNumberRemediationResponseDto":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"numberType":{"type":"string","enum":["local","mobile","national","toll_free"]},"declineReason":{"type":"string","nullable":true},"fields":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppNumberKycFieldDto"}}},"additionalProperties":false,"required":["country","numberType","declineReason","fields"]},"RemediateWhatsAppNumberDto":{"type":"object","properties":{"values":{"type":"object","additionalProperties":{"type":"string"}},"documents":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/WhatsAppKycInlineDocumentDto"},{"$ref":"#/components/schemas/WhatsAppKycUploadedDocumentDto"}]}},"address":{"$ref":"#/components/schemas/WhatsAppKycAddressDto"}},"additionalProperties":false},"RemediateWhatsAppNumberResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["resubmitted"]},"phoneNumber":{"type":"object","additionalProperties":false,"required":["id","status"],"properties":{"id":{"type":"string"},"status":{"type":"string"}}}},"additionalProperties":false,"required":["status"]},"WhatsAppPhoneNumberDetailDto":{"type":"object","properties":{"id":{"type":"string"},"phoneNumber":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},"status":{"type":"string","enum":["pending_payment","pending_regulatory","regulatory_declined","provisioning","verifying","active","suspended","releasing","released"]},"country":{"type":"string","minLength":2,"maxLength":2},"metaPreverifiedId":{"type":"string"},"metaVerificationStatus":{"type":"string"},"onfidoVerificationUrl":{"type":"string","format":"uri","nullable":true},"endUserFirstName":{"type":"string","nullable":true},"endUserLastName":{"type":"string","nullable":true},"regulatoryDeclineReason":{"type":"string","nullable":true},"provisionedAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["id","phoneNumber","status","country","onfidoVerificationUrl","endUserFirstName","endUserLastName","regulatoryDeclineReason"]},"GetWhatsAppPhoneNumberResponseDto":{"type":"object","properties":{"phoneNumber":{"$ref":"#/components/schemas/WhatsAppPhoneNumberDetailDto"}},"additionalProperties":false,"required":["phoneNumber"]},"ReleaseWhatsAppPhoneNumberResponseDto":{"type":"object","properties":{"message":{"type":"string"},"phoneNumber":{"type":"object","additionalProperties":false,"required":["id","phoneNumber","status","releasedAt"],"properties":{"id":{"type":"string"},"phoneNumber":{"type":"string"},"status":{"type":"string","enum":["released"]},"releasedAt":{"type":"string","format":"date-time"}}}},"additionalProperties":false,"required":["message"]},"WhatsAppKycReusableSummaryDetailDto":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false},"WhatsAppKycReusableOptionDetailDto":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"documentId":{"type":"string"}},"additionalProperties":false},"WhatsAppKycReusableOptionDto":{"type":"object","properties":{"id":{"type":"string"},"fromPhoneNumber":{"type":"string"},"instant":{"type":"boolean"},"details":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppKycReusableOptionDetailDto"}}},"additionalProperties":false},"WhatsAppKycReusableDto":{"type":"object","properties":{"available":{"type":"boolean"},"fromPhoneNumber":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppKycReusableSummaryDetailDto"}},"options":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppKycReusableOptionDto"}}},"additionalProperties":false},"WhatsAppNumberKycFormResponseDto":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"numberType":{"type":"string","enum":["local","mobile","national","toll_free"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/WhatsAppNumberKycFieldDto"}},"reusable":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/WhatsAppKycReusableDto"}]}},"additionalProperties":false,"required":["country","numberType","fields","reusable"]},"MoveWhatsAppNumberToProfileDto":{"type":"object","properties":{"profileId":{"type":"string"}},"additionalProperties":false,"required":["profileId"]},"MoveWhatsAppNumberToProfileResponseDto":{"type":"object","properties":{"message":{"type":"string"},"profileId":{"type":"string"},"movedPlatforms":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["message","profileId"]},"WhatsAppSandboxSessionDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"phoneE164":{"type":"string","pattern":"^[1-9][0-9]{1,14}$","example":"34688246216"},"status":{"type":"string","enum":["pending","active"]},"expiresAt":{"type":"string","format":"date-time"},"activatedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["id","phoneE164","status","expiresAt","activatedAt","createdAt"]},"ListWhatsAppSandboxSessionsResponseDto":{"type":"object","properties":{"sessions":{"maxItems":1,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppSandboxSessionDto"}},"sandboxNumber":{"type":"string","nullable":true,"pattern":"^\\+[1-9][0-9]{1,14}$","example":"+12029087457"}},"additionalProperties":false,"required":["sessions","sandboxNumber"]},"CreateWhatsAppSandboxSessionRequestDto":{"type":"object","properties":{"phone":{"type":"string","minLength":2,"maxLength":64,"example":"+34688246216","description":"International phone; digits, spaces, dashes and one leading + are accepted."}},"additionalProperties":false,"required":["phone"]},"CreateWhatsAppSandboxSessionResponseDto":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/WhatsAppSandboxSessionDto"},"sandboxNumber":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$","example":"+12029087457"}},"additionalProperties":false,"required":["session","sandboxNumber"]},"DeleteWhatsAppSandboxSessionResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"WhatsAppProfilePhotoUrlDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["accountId","url"]},"WhatsAppBusinessProfileDto":{"type":"object","properties":{"about":{"type":"string","maxLength":139},"address":{"type":"string","maxLength":256},"description":{"type":"string","maxLength":512},"email":{"type":"string","maxLength":254},"profilePictureUrl":{"type":"string","format":"uri"},"websites":{"maxItems":2,"type":"array","items":{"type":"string","format":"uri"}},"vertical":{"type":"string","maxLength":64}},"additionalProperties":false,"required":["about","address","description","email","profilePictureUrl","websites","vertical"]},"WhatsAppBusinessProfileResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"businessProfile":{"$ref":"#/components/schemas/WhatsAppBusinessProfileDto"}},"additionalProperties":false,"required":["success","businessProfile"]},"UpdateWhatsAppBusinessProfileDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"about":{"type":"string","maxLength":139},"address":{"type":"string","maxLength":256},"description":{"type":"string","maxLength":512},"email":{"type":"string","format":"email","maxLength":254},"websites":{"type":"array","maxItems":2,"uniqueItems":true,"items":{"type":"string","format":"uri","maxLength":2048}},"vertical":{"type":"string","maxLength":64},"profilePictureHandle":{"type":"string","minLength":1,"maxLength":4096,"description":"Opaque Meta resumable-upload handle."}},"additionalProperties":false,"required":["accountId"]},"WhatsAppMessageResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["success","message"]},"WhatsAppDisplayNameDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":512},"status":{"type":"string","enum":["APPROVED","PENDING_REVIEW","DECLINED","NONE"]},"phoneNumber":{"type":"string","maxLength":64}},"additionalProperties":false,"required":["name","status","phoneNumber"]},"WhatsAppDisplayNameResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"displayName":{"$ref":"#/components/schemas/WhatsAppDisplayNameDto"}},"additionalProperties":false,"required":["success","displayName"]},"UpdateWhatsAppDisplayNameDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"displayName":{"type":"string","minLength":3,"maxLength":512}},"additionalProperties":false,"required":["accountId","displayName"]},"PendingWhatsAppDisplayNameDto":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":512},"status":{"type":"string","enum":["PENDING_REVIEW"]}},"additionalProperties":false,"required":["name","status"]},"UpdateWhatsAppDisplayNameResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","minLength":1,"maxLength":256},"displayName":{"$ref":"#/components/schemas/PendingWhatsAppDisplayNameDto"}},"additionalProperties":false,"required":["success","message","displayName"]},"WhatsAppUsernameResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"username":{"type":"string","nullable":true,"minLength":3,"maxLength":35},"status":{"type":"string","enum":["approved","reserved","none"]}},"additionalProperties":false,"required":["success","username","status"]},"SetWhatsAppUsernameDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"username":{"type":"string","minLength":3,"maxLength":35,"pattern":"^[A-Za-z0-9._]+$"},"transferAction":{"type":"string","enum":["none","force_transfer"],"default":"none"}},"additionalProperties":false,"required":["accountId","username"]},"SetWhatsAppUsernameResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"username":{"type":"string","minLength":3,"maxLength":35},"status":{"type":"string","enum":["approved","reserved","none"]}},"additionalProperties":false,"required":["success","username","status"]},"DeleteWhatsAppUsernameDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24}},"additionalProperties":false,"required":["accountId"]},"DeleteWhatsAppUsernameResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"WhatsAppUsernameSuggestionsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"suggestions":{"maxItems":50,"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["success","suggestions"]},"WhatsAppThroughputDto":{"type":"object","properties":{"level":{"type":"string","maxLength":64}},"additionalProperties":false,"required":["level"]},"WhatsAppPhoneInfoDto":{"type":"object","properties":{"display_phone_number":{"type":"string","maxLength":64},"verified_name":{"type":"string","maxLength":512},"name_status":{"type":"string","maxLength":64},"quality_rating":{"type":"string","maxLength":64},"messaging_limit_tier":{"type":"string","maxLength":64},"throughput":{"$ref":"#/components/schemas/WhatsAppThroughputDto"},"status":{"type":"string","maxLength":64},"is_official_business_account":{"type":"boolean"},"platform_type":{"type":"string","maxLength":64},"health_status":{"type":"object","additionalProperties":true}},"additionalProperties":false,"required":["display_phone_number","verified_name","name_status","quality_rating","messaging_limit_tier","throughput","status","is_official_business_account","platform_type","health_status"]},"WhatsAppWabaInfoDto":{"type":"object","properties":{"name":{"type":"string","maxLength":512},"business_verification_status":{"type":"string","maxLength":64},"timezone_id":{"type":"string","maxLength":128},"health_status":{"type":"object","additionalProperties":true}},"additionalProperties":false,"required":["name","business_verification_status","timezone_id","health_status"]},"WhatsAppNumberInfoResponseDto":{"type":"object","properties":{"phone":{"$ref":"#/components/schemas/WhatsAppPhoneInfoDto"},"waba":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/WhatsAppWabaInfoDto"}]}},"additionalProperties":false,"required":["phone","waba"]},"YoutubeCommentDeleteDataDto":{"type":"object","properties":{"message":{"type":"string","enum":["Comment is absent."]}},"additionalProperties":false,"required":["message"]},"YoutubeCommentDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/YoutubeCommentDeleteDataDto"}},"additionalProperties":false,"required":["success","data"]},"YoutubeCommentModerationRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["youtube"]},"moderationStatus":{"type":"string","enum":["published","rejected","heldForReview"],"description":"Approves, rejects, or returns the YouTube comment to owner review."},"banAuthor":{"type":"boolean","description":"Also bans the author. This key is accepted only with moderationStatus=rejected."}},"additionalProperties":false,"required":["accountId","platform","moderationStatus"]},"YoutubeCommentModerationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"YoutubeCommentReplyInputDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo account id for the connected YouTube channel."},"message":{"type":"string","minLength":1,"maxLength":10000,"description":"Reply text. Whitespace is preserved."},"commentId":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]{1,256}$","description":"Provider top-level comment id. Required for YouTube because this endpoint does not create top-level video comments."}},"additionalProperties":false,"required":["accountId","message"]},"YoutubeCommentReplyDataDto":{"type":"object","properties":{"commentId":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]{1,256}$","description":"Provider id of the newly created YouTube reply."},"isReply":{"type":"boolean","enum":[true]},"cid":{"type":"string","nullable":true,"description":"Always null because YouTube does not use Bluesky CIDs."}},"additionalProperties":false,"required":["commentId","isReply","cid"]},"YoutubeCommentReplyResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/YoutubeCommentReplyDataDto"}},"additionalProperties":false,"required":["success","data"]},"YoutubeCommentAuthorDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^UC[A-Za-z0-9_-]{1,120}$","description":"YouTube author channel id. Omitted when YouTube withholds it."},"name":{"type":"string","minLength":1,"maxLength":256},"username":{"type":"string","maxLength":256,"description":"Platform username when one is exposed. YouTube comments omit this field."},"picture":{"type":"string","format":"uri","nullable":true,"maxLength":2048},"isOwner":{"type":"boolean"},"verifiedType":{"type":"string","enum":["blue","government","business","none"],"nullable":true,"description":"Always null because YouTube does not expose this badge taxonomy."}},"additionalProperties":false,"required":["name","picture","isOwner","verifiedType"]},"YoutubeInboxCommentDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$"},"message":{"type":"string","minLength":1,"maxLength":20000},"createdTime":{"type":"string","format":"date-time"},"from":{"$ref":"#/components/schemas/YoutubeCommentAuthorDto"},"likeCount":{"type":"integer","minimum":0},"replyCount":{"type":"integer","minimum":0},"platform":{"type":"string","enum":["youtube"]},"url":{"type":"string","format":"uri","nullable":true,"maxLength":512},"replies":{"maxItems":0,"description":"Always empty: YouTube commentThreads can contain only a partial reply subset.","type":"array","items":{"type":"object"}},"canReply":{"type":"boolean"},"canDelete":{"type":"boolean"},"canHide":{"type":"boolean"},"canLike":{"type":"boolean"},"isHidden":{"type":"boolean"},"isLiked":{"type":"boolean"},"likeUri":{"type":"string","nullable":true,"maxLength":512},"cid":{"type":"string","nullable":true,"maxLength":512},"parentId":{"type":"string","nullable":true,"maxLength":256},"rootUri":{"type":"string","nullable":true,"maxLength":2048},"rootCid":{"type":"string","nullable":true,"maxLength":512}},"additionalProperties":false,"required":["id","message","createdTime","from","likeCount","replyCount","platform","url","replies","canReply","canDelete","canHide","canLike","isHidden","isLiked","likeUri","cid","parentId","rootUri","rootCid"]},"YoutubeCommentPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","nullable":true,"minLength":1,"maxLength":8192,"description":"Opaque context-bound continuation cursor; never a raw YouTube token."}},"additionalProperties":false,"required":["hasMore","cursor"]},"YoutubeInboxAdCommentsDto":{"type":"object","properties":{"adId":{"type":"string","minLength":1,"maxLength":128},"adCommentsUrl":{"type":"string","minLength":1,"maxLength":2048}},"additionalProperties":false},"YoutubeCommentMetaDto":{"type":"object","properties":{"platform":{"type":"string","enum":["youtube"]},"postId":{"type":"string","minLength":1,"maxLength":128},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"subreddit":{"type":"string","nullable":true},"lastUpdated":{"type":"string","format":"date-time"},"adComments":{"nullable":true,"description":"Boosted Meta-post redirect metadata. Null for YouTube comments.","type":"object","allOf":[{"$ref":"#/components/schemas/YoutubeInboxAdCommentsDto"}]}},"additionalProperties":false,"required":["platform","postId","accountId","subreddit","lastUpdated"]},"YoutubeInboxRedditPostDto":{"type":"object","properties":{"id":{"type":"string"},"fullname":{"type":"string"},"title":{"type":"string"},"selftext":{"type":"string"},"author":{"type":"string"},"subreddit":{"type":"string"},"permalink":{"type":"string","format":"uri"},"url":{"type":"string","format":"uri"},"score":{"type":"integer"},"numComments":{"type":"integer","minimum":0},"createdUtc":{"type":"integer","minimum":0},"over18":{"type":"boolean"},"stickied":{"type":"boolean"},"flairText":{"type":"string","nullable":true},"isGallery":{"type":"boolean"}},"additionalProperties":false},"YoutubeInboxCommentsResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"comments":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/YoutubeInboxCommentDto"}},"pagination":{"$ref":"#/components/schemas/YoutubeCommentPaginationDto"},"meta":{"$ref":"#/components/schemas/YoutubeCommentMetaDto"},"post":{"nullable":true,"description":"Reddit target-post preview. Null for YouTube and other non-Reddit platforms.","type":"object","allOf":[{"$ref":"#/components/schemas/YoutubeInboxRedditPostDto"}]}},"additionalProperties":false,"required":["status","comments","pagination","meta"]},"MetaCommentAuthorDto":{"type":"object","properties":{"id":{"type":"string","maxLength":128},"name":{"type":"string","nullable":true,"maxLength":512},"picture":{"type":"string","nullable":true},"isOwner":{"type":"boolean"},"verifiedType":{"type":"string","nullable":true}},"additionalProperties":false,"required":["name","picture","isOwner","verifiedType"]},"MetaInboxCommentDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,31}(?:_[1-9][0-9]{0,31})?$"},"message":{"type":"string","nullable":true,"maxLength":20000},"createdTime":{"type":"string","nullable":true,"format":"date-time"},"from":{"$ref":"#/components/schemas/MetaCommentAuthorDto"},"likeCount":{"type":"integer","minimum":0,"nullable":true},"replyCount":{"type":"integer","minimum":0,"nullable":true,"description":"Null when the provider does not return a complete reply count."},"platform":{"type":"string","enum":["facebook","instagram"]},"url":{"type":"string","nullable":true},"replies":{"maxItems":0,"description":"This page contains top-level comments; nested replies are not claimed to be complete.","type":"array","items":{"type":"object"}},"canReply":{"type":"boolean"},"canDelete":{"type":"boolean"},"canHide":{"type":"boolean"},"canLike":{"type":"boolean"},"isHidden":{"type":"boolean","nullable":true},"isLiked":{"type":"boolean","nullable":true},"likeUri":{"type":"string","nullable":true},"cid":{"type":"string","nullable":true},"parentId":{"type":"string","nullable":true},"rootUri":{"type":"string","nullable":true},"rootCid":{"type":"string","nullable":true}},"additionalProperties":false,"required":["id","message","createdTime","from","likeCount","replyCount","platform","url","replies","canReply","canDelete","canHide","canLike","isHidden","isLiked","likeUri","cid","parentId","rootUri","rootCid"]},"MetaCommentMetaDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram"]},"postId":{"type":"string","maxLength":128},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"subreddit":{"type":"string","nullable":true},"lastUpdated":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["platform","postId","accountId","subreddit","lastUpdated"]},"MetaInboxCommentsResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["success"]},"comments":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/MetaInboxCommentDto"}},"pagination":{"$ref":"#/components/schemas/YoutubeCommentPaginationDto"},"meta":{"$ref":"#/components/schemas/MetaCommentMetaDto"}},"additionalProperties":false,"required":["status","comments","pagination","meta"]},"YoutubeCaptionTrackKind":{"type":"string","enum":["asr","standard"]},"YoutubeCaptionSource":{"type":"string","enum":["cache","youtube"]},"YoutubeCaptionCueDto":{"type":"object","properties":{"start":{"type":"number","minimum":0,"example":1.6},"end":{"type":"number","minimum":0,"example":8.88},"text":{"type":"string","minLength":1,"maxLength":16384}},"additionalProperties":false,"required":["start","end","text"]},"YoutubeCaptionTrackDto":{"type":"object","properties":{"trackId":{"type":"string","minLength":1,"maxLength":512},"language":{"type":"string","pattern":"^[A-Za-z0-9]{1,8}(?:-[A-Za-z0-9]{1,8}){0,7}$"},"trackKind":{"allOf":[{"$ref":"#/components/schemas/YoutubeCaptionTrackKind"}]},"name":{"type":"string","maxLength":150}},"additionalProperties":false,"required":["trackId","language","trackKind","name"]},"YoutubeCaptionsResponseDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"videoId":{"type":"string","minLength":1,"maxLength":128},"language":{"type":"string"},"trackId":{"type":"string"},"trackKind":{"allOf":[{"$ref":"#/components/schemas/YoutubeCaptionTrackKind"}]},"source":{"allOf":[{"$ref":"#/components/schemas/YoutubeCaptionSource"}]},"fetchedAt":{"type":"string","format":"date-time"},"text":{"type":"string","minLength":1,"maxLength":10485760},"cues":{"maxItems":100000,"type":"array","items":{"$ref":"#/components/schemas/YoutubeCaptionCueDto"}},"srt":{"type":"string","minLength":1,"maxLength":10485760},"availableTracks":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/YoutubeCaptionTrackDto"}}},"additionalProperties":false,"required":["accountId","videoId","language","trackId","trackKind","source","fetchedAt","text","availableTracks"]},"YoutubePlaylistPrivacy":{"type":"string","enum":["public","private","unlisted"],"description":"Current YouTube playlist visibility."},"YoutubePlaylistDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","description":"Provider-owned YouTube playlist ID."},"title":{"type":"string","minLength":1,"maxLength":150,"description":"YouTube playlist title."},"description":{"type":"string","maxLength":5000,"description":"YouTube playlist description; empty when none is set."},"privacy":{"description":"Current YouTube playlist visibility.","allOf":[{"$ref":"#/components/schemas/YoutubePlaylistPrivacy"}]},"itemCount":{"type":"integer","minimum":0,"description":"Provider-reported number of videos in the playlist."},"thumbnailUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Canonical HTTPS playlist thumbnail URL when provided by YouTube."}},"additionalProperties":false,"required":["id","title","description","privacy","itemCount"]},"YoutubePlaylistsResponseDto":{"type":"object","properties":{"playlists":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/YoutubePlaylistDto"}},"defaultPlaylistId":{"type":"string","nullable":true,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128,"example":null,"description":"Explicit durable client preference, or null until one is selected."}},"additionalProperties":false,"required":["playlists","defaultPlaylistId"]},"SetYoutubeDefaultPlaylistDto":{"type":"object","properties":{"defaultPlaylistId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","minLength":1,"maxLength":128,"description":"Provider-owned YouTube playlist ID to remember."},"defaultPlaylistName":{"type":"string","maxLength":150,"description":"Optional exact provider-title assertion. When omitted, the verified provider title is stored."}},"additionalProperties":false,"required":["defaultPlaylistId"]},"YoutubeDefaultPlaylistResultDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["success"]},"YoutubeVideoMetadataUpdateDto":{"type":"object","properties":{"platform":{"type":"string","enum":["youtube"],"example":"youtube"},"videoId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128,"description":"Required when postId is \"_\". For a stored post, an optional value must match its published YouTube target."},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24,"description":"Required when postId is \"_\". For a stored post, an optional value must match its publishing account."},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":5000,"description":"At most 5,000 UTF-8 bytes; YouTube also rejects angle brackets."},"tags":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":500,"description":"Unique non-empty tags, each at most 100 characters and at most 500 weighted characters combined."},"categoryId":{"type":"string","pattern":"^[1-9][0-9]{0,2}$","maxLength":3},"privacyStatus":{"type":"string","enum":["private","public","unlisted"]},"thumbnailUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Direct public HTTPS URL of a JPEG, PNG or GIF thumbnail no larger than 2 MB."},"madeForKids":{"type":"boolean"},"containsSyntheticMedia":{"type":"boolean"},"playlistId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128,"description":"Existing playlist owned by the connected channel. YouTube confirms writability during the at-most-once membership operation."}},"additionalProperties":false,"required":["platform"]},"YoutubeVideoMetadataUpdateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"YouTube video metadata updated successfully"},"videoId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"updatedFields":{"type":"array","minItems":1,"maxItems":9,"items":{"type":"string","enum":["title","description","tags","categoryId","privacyStatus","thumbnailUrl","madeForKids","containsSyntheticMedia","playlistId"]}}},"additionalProperties":false,"required":["success","message","videoId","updatedFields"]},"SlackSettingsAccountDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["slack"],"example":"slack"},"displayName":{"type":"string","nullable":true},"channelId":{"type":"string","nullable":true,"pattern":"^[CDG][A-Z0-9]{8,31}$"},"channelName":{"type":"string","nullable":true,"minLength":1,"maxLength":80},"channelType":{"type":"string","nullable":true,"enum":["public","private"],"description":"public or private"},"teamId":{"type":"string","nullable":true,"pattern":"^T[A-Z0-9]{8,31}$"},"teamName":{"type":"string","nullable":true,"minLength":1,"maxLength":256},"defaultUsername":{"type":"string","nullable":true,"maxLength":80},"defaultIconUrl":{"type":"string","format":"uri","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["_id","platform","displayName","channelId","channelName","channelType","teamId","teamName","defaultUsername","defaultIconUrl"]},"SlackSettingsResponseDto":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/SlackSettingsAccountDto"}},"additionalProperties":false,"required":["account"]},"UpdateSlackSettingsDto":{"type":"object","properties":{"defaultUsername":{"type":"string","maxLength":80,"description":"Author name shown on posts. Empty string clears it."},"defaultIconUrl":{"type":"string","maxLength":2048,"description":"Author avatar image URL. Empty string clears it."}},"additionalProperties":false},"DiscordGuildMemberUserDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"username":{"type":"string","minLength":1,"maxLength":32},"discriminator":{"type":"string","pattern":"^(?:0|[0-9]{4})$"},"avatar":{"type":"string","nullable":true,"minLength":1,"maxLength":256},"global_name":{"type":"string","nullable":true,"minLength":1,"maxLength":32}},"additionalProperties":false,"required":["id","username","discriminator","avatar","global_name"]},"DiscordGuildMemberDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/DiscordGuildMemberUserDto"},"nick":{"type":"string","nullable":true,"minLength":1,"maxLength":32},"roles":{"maxItems":250,"uniqueItems":true,"type":"array","items":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},"joined_at":{"type":"string","format":"date-time"},"premium_since":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["user","nick","roles","joined_at","premium_since"]},"DiscordGuildMemberPaginationDto":{"type":"object","properties":{"nextCursor":{"type":"string","nullable":true,"pattern":"^[1-9][0-9]{14,19}$"},"hasMore":{"type":"boolean"}},"additionalProperties":false,"required":["nextCursor","hasMore"]},"DiscordGuildMembersResponseDto":{"type":"object","properties":{"data":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/DiscordGuildMemberDto"}},"pagination":{"$ref":"#/components/schemas/DiscordGuildMemberPaginationDto"}},"additionalProperties":false,"required":["data","pagination"]},"DiscordGuildMemberSearchResponseDto":{"type":"object","properties":{"data":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/DiscordGuildMemberDto"}}},"additionalProperties":false,"required":["data"]},"DiscordGuildMemberResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DiscordGuildMemberDto"}},"additionalProperties":false,"required":["data"]},"DiscordMemberRoleAssignedResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"operation":{"type":"string","enum":["role_assigned"]},"guildId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"userId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"roleId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},"additionalProperties":false,"required":["success","operation","guildId","userId","roleId"]},"DiscordMemberRoleRemovedResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"operation":{"type":"string","enum":["role_removed"]},"guildId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"userId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"roleId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},"additionalProperties":false,"required":["success","operation","guildId","userId","roleId"]},"DiscordScheduledEventExternalEntityDto":{"type":"object","properties":{"type":{"type":"string","enum":["external"]},"location":{"type":"string","minLength":1,"maxLength":100},"endsAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["type","location","endsAt"]},"DiscordScheduledEventVoiceEntityDto":{"type":"object","properties":{"type":{"type":"string","enum":["voice"]},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"endsAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["type","channelId"]},"DiscordScheduledEventStageEntityDto":{"type":"object","properties":{"type":{"type":"string","enum":["stage"]},"channelId":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"endsAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["type","channelId"]},"DiscordScheduledEventEntityMetadataDto":{"type":"object","properties":{"location":{"type":"string","minLength":1,"maxLength":100}},"required":["location"]},"DiscordScheduledEventDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"guild_id":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"},"channel_id":{"type":"string","nullable":true,"pattern":"^[1-9][0-9]{14,19}$"},"creator_id":{"type":"string","nullable":true,"pattern":"^[1-9][0-9]{14,19}$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","nullable":true,"maxLength":1000},"scheduled_start_time":{"type":"string","format":"date-time"},"scheduled_end_time":{"type":"string","nullable":true,"format":"date-time"},"privacy_level":{"type":"integer","enum":[2]},"status":{"type":"integer","enum":[1,2,3,4]},"entity_type":{"type":"integer","enum":[1,2,3]},"entity_id":{"type":"string","nullable":true,"pattern":"^[1-9][0-9]{14,19}$"},"entity_metadata":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/DiscordScheduledEventEntityMetadataDto"}]},"user_count":{"type":"integer","minimum":0},"image":{"type":"string","nullable":true}},"required":["id","guild_id","channel_id","name","scheduled_start_time","scheduled_end_time","privacy_level","status","entity_type","entity_id","entity_metadata"]},"DiscordScheduledEventsResponseDto":{"type":"object","properties":{"data":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/DiscordScheduledEventDto"}}},"additionalProperties":false,"required":["data"]},"DiscordScheduledEventCreateRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":1000},"startsAt":{"type":"string","format":"date-time"},"entity":{"oneOf":[{"$ref":"#/components/schemas/DiscordScheduledEventExternalEntityDto"},{"$ref":"#/components/schemas/DiscordScheduledEventVoiceEntityDto"},{"$ref":"#/components/schemas/DiscordScheduledEventStageEntityDto"}],"discriminator":{"propertyName":"type","mapping":{"external":"#/components/schemas/DiscordScheduledEventExternalEntityDto","voice":"#/components/schemas/DiscordScheduledEventVoiceEntityDto","stage":"#/components/schemas/DiscordScheduledEventStageEntityDto"}}},"imageDataUri":{"type":"string","pattern":"^data:image/(png|jpeg|gif);base64,"}},"additionalProperties":false,"required":["accountId","name","startsAt","entity"]},"DiscordScheduledEventResponseDto":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/DiscordScheduledEventDto"}},"additionalProperties":false,"required":["data"]},"DiscordScheduledEventUpdateRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":1000},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"location":{"type":"string","minLength":1,"maxLength":100},"status":{"type":"string","enum":["scheduled","active","completed","cancelled"]},"imageDataUri":{"type":"string","pattern":"^data:image/(png|jpeg|gif);base64,"}},"additionalProperties":false,"minProperties":2,"required":["accountId"]},"DiscordScheduledEventDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"deleted":{"type":"string","pattern":"^[1-9][0-9]{14,19}$"}},"additionalProperties":false,"required":["success","deleted"]},"InstagramIceBreakerDto":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":80},"payload":{"type":"string","minLength":1}},"additionalProperties":false,"required":["question","payload"]},"InstagramIceBreakersResponseDto":{"type":"object","properties":{"data":{"maxItems":4,"type":"array","items":{"$ref":"#/components/schemas/InstagramIceBreakerDto"}}},"additionalProperties":false,"required":["data"]},"SetInstagramIceBreakersDto":{"type":"object","properties":{"ice_breakers":{"minItems":1,"maxItems":4,"type":"array","items":{"$ref":"#/components/schemas/InstagramIceBreakerDto"}}},"additionalProperties":false,"required":["ice_breakers"]},"FacebookPageInsightsDateRangeDto":{"type":"object","properties":{"since":{"type":"string","format":"date"},"until":{"type":"string","format":"date"}},"additionalProperties":false,"required":["since","until"]},"FacebookPageInsightUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["page_media_view","page_views_total","page_post_engagements","page_video_views","page_video_view_time","page_follows","followers_gained","followers_lost","content_monetization_earnings","monetization_approximate_earnings"]},"reason":{"type":"string","enum":["not_enrolled","permission_missing","unsupported_metric","no_data","unreadable_value","mixed_currency","upstream_error"]},"message":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["metric","reason","message"]},"FacebookPageInsightsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["facebook"]},"dateRange":{"$ref":"#/components/schemas/FacebookPageInsightsDateRangeDto"},"metricType":{"type":"string","enum":["time_series","total_value"]},"breakdown":{"type":"string"},"metrics":{"type":"object","additionalProperties":{"type":"object","required":["total"],"additionalProperties":false,"properties":{"total":{"type":"number","minimum":0},"values":{"type":"array","items":{"type":"object","required":["date","value"],"additionalProperties":false,"properties":{"date":{"type":"string","format":"date"},"value":{"type":"number","minimum":0}}}},"breakdowns":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"value":{"type":"number"}}}},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true,"pattern":"^[A-Z]{3}$"}}}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/FacebookPageInsightUnavailableMetricDto"}},"dataDelay":{"type":"string","enum":["Meta page insights may be delayed up to 24 hours. Metrics reflect the current (post-November 2025) Graph API names. Monetization earnings are approximate and Meta restates them after the fact."]}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metricType","metrics","dataDelay"]},"InstagramFollowStatusResponseDto":{"type":"object","properties":{"userId":{"type":"string","pattern":"^[1-9]\\d{0,31}$"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"isFollower":{"type":"boolean","nullable":true},"isFollowedByAccount":{"type":"boolean","nullable":true},"followerCount":{"type":"number","minimum":0,"nullable":true},"isVerified":{"type":"boolean","nullable":true},"username":{"type":"string","nullable":true,"maxLength":512},"name":{"type":"string","nullable":true,"maxLength":512},"unavailableReason":{"type":"string","enum":["consent_required","dm_access_disabled","not_messageable","error"],"nullable":true}},"additionalProperties":false,"required":["userId","accountId","isFollower"]},"ConfigureTikTokAdsBrandIdentityDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"displayName":{"type":"string","minLength":1,"maxLength":40},"imageUrl":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["accountId","displayName","imageUrl"]},"TikTokAdsBrandIdentityResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"identityId":{"type":"string","minLength":1,"maxLength":128},"displayName":{"type":"string","minLength":1,"maxLength":40}},"additionalProperties":false,"required":["success","identityId","displayName"]},"ShopifyBlogDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"},"platform":{"type":"string","enum":["shopify"]},"title":{"type":"string","minLength":1,"maxLength":512},"handle":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["id","platform","title","handle"]},"ShopifyBlogListResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["shopify"]},"blogs":{"type":"array","items":{"$ref":"#/components/schemas/ShopifyBlogDto"}},"nextCursor":{"type":"string","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["platform","blogs","nextCursor"]},"ShopifyBlogCreateDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":512},"handle":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["title"]},"ShopifyBlogResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["shopify"]},"blog":{"$ref":"#/components/schemas/ShopifyBlogDto"}},"additionalProperties":false,"required":["platform","blog"]},"ShopifyBlogUpdateDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":512},"handle":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false},"ShopifyBlogImageDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":4096},"altText":{"type":"string","nullable":true,"maxLength":2000}},"additionalProperties":false,"required":["url"]},"ShopifyBlogArticleSummaryDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"},"blogId":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"},"platform":{"type":"string","enum":["shopify"]},"title":{"type":"string","minLength":1,"maxLength":512},"handle":{"type":"string","minLength":1,"maxLength":512},"tags":{"maxItems":250,"items":{"type":"string","maxLength":512},"type":"array"},"author":{"type":"string","nullable":true,"maxLength":512},"excerpt":{"type":"string","nullable":true,"maxLength":65535},"image":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ShopifyBlogImageDto"}]},"isPublished":{"type":"boolean"},"publishedAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64},"createdAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64},"updatedAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64}},"additionalProperties":false,"required":["id","blogId","platform","title","handle","tags","author","excerpt","image","isPublished","publishedAt","createdAt","updatedAt"]},"ShopifyBlogArticleListResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["shopify"]},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ShopifyBlogArticleSummaryDto"}},"nextCursor":{"type":"string","nullable":true,"maxLength":2048}},"additionalProperties":false,"required":["platform","articles","nextCursor"]},"ShopifyBlogSeoDto":{"type":"object","properties":{"title":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":1024}},"additionalProperties":false},"ShopifyBlogArticleCreateDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":512},"bodyHtml":{"type":"string","maxLength":250000},"handle":{"type":"string","minLength":1,"maxLength":512},"tags":{"maxItems":250,"items":{"type":"string","minLength":1,"maxLength":512},"type":"array"},"author":{"type":"string","minLength":1,"maxLength":512},"excerpt":{"type":"string","maxLength":65535},"image":{"$ref":"#/components/schemas/ShopifyBlogImageDto"},"seo":{"$ref":"#/components/schemas/ShopifyBlogSeoDto"},"isPublished":{"type":"boolean"},"publishDate":{"type":"string","format":"date-time","maxLength":64}},"additionalProperties":false,"required":["title"]},"ShopifyBlogArticleDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"},"blogId":{"type":"string","pattern":"^[1-9][0-9]{0,29}$"},"platform":{"type":"string","enum":["shopify"]},"title":{"type":"string","minLength":1,"maxLength":512},"bodyHtml":{"type":"string","nullable":true,"maxLength":250000,"description":"Article HTML returned by create, get and update operations."},"handle":{"type":"string","minLength":1,"maxLength":512},"tags":{"maxItems":250,"items":{"type":"string","maxLength":512},"type":"array"},"author":{"type":"string","nullable":true,"maxLength":512},"excerpt":{"type":"string","nullable":true,"maxLength":65535},"image":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ShopifyBlogImageDto"}]},"isPublished":{"type":"boolean"},"publishedAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64},"createdAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64},"updatedAt":{"type":"string","format":"date-time","nullable":true,"maxLength":64}},"additionalProperties":false,"required":["id","blogId","platform","title","bodyHtml","handle","tags","author","excerpt","image","isPublished","publishedAt","createdAt","updatedAt"]},"ShopifyBlogArticleResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["shopify"]},"article":{"$ref":"#/components/schemas/ShopifyBlogArticleDto"}},"additionalProperties":false,"required":["platform","article"]},"ShopifyBlogArticleWriteDto":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":512},"bodyHtml":{"type":"string","maxLength":250000},"handle":{"type":"string","minLength":1,"maxLength":512},"tags":{"maxItems":250,"items":{"type":"string","minLength":1,"maxLength":512},"type":"array"},"author":{"type":"string","minLength":1,"maxLength":512},"excerpt":{"type":"string","maxLength":65535},"image":{"$ref":"#/components/schemas/ShopifyBlogImageDto"},"seo":{"$ref":"#/components/schemas/ShopifyBlogSeoDto"},"isPublished":{"type":"boolean"},"publishDate":{"type":"string","format":"date-time","maxLength":64}},"additionalProperties":false},"AccountGroupDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex account group id"},"name":{"type":"string","example":"Acme — all channels"},"accountIds":{"example":["b1c2d3e4f5a6b7c8d9e0f1a2"],"description":"The account ids in the group. A group can gather accounts from more than one profile.","type":"array","items":{"type":"string"}}},"required":["id","name","accountIds"]},"ZernioAccountGroupProjectionDto":{"type":"object","properties":{"_id":{"type":"string"},"name":{"type":"string"},"accountIds":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"},"profileId":{"type":"string","deprecated":true}}},"AccountGroupListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AccountGroupDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ZernioAccountGroupProjectionDto"}}},"required":["data","hasMore","nextCursor","groups"]},"CreateAccountGroupDto":{"type":"object","properties":{"name":{"type":"string","example":"Acme — all channels"},"accountIds":{"example":["b1c2d3e4f5a6b7c8d9e0f1a2"],"description":"Zernio-compatible clients send this field. For legacy clients a missing value is accepted as the empty set.","type":"array","items":{"type":"string"}},"profileId":{"type":"string","deprecated":true,"description":"Accepted for legacy compatibility and ignored."}},"required":["name","accountIds"]},"AccountGroupMutationResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex account group id"},"name":{"type":"string","example":"Acme — all channels"},"accountIds":{"example":["b1c2d3e4f5a6b7c8d9e0f1a2"],"description":"The account ids in the group. A group can gather accounts from more than one profile.","type":"array","items":{"type":"string"}},"message":{"type":"string"},"group":{"$ref":"#/components/schemas/ZernioAccountGroupProjectionDto"}},"required":["id","name","accountIds","message","group"]},"UpdateAccountGroupDto":{"type":"object","properties":{"name":{"type":"string","example":"Acme — video only"},"accountIds":{"description":"If provided, membership is replaced ENTIRELY by this set; there is no partial add/remove.","type":"array","items":{"type":"string"}}}},"AccountGroupDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Account group deleted successfully"}}},"CustomFieldDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex custom field id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2","description":"The profile the field belongs to. Definitions are profile scoped."},"name":{"type":"string","example":"Customer segment"},"slug":{"type":"string","example":"customer-segment","description":"The key the value is addressed by. Because it is a path parameter it is restricted to a URL-safe form, and it cannot be changed after creation."},"type":{"type":"string","enum":["text","number","date","boolean","select"],"example":"select"},"options":{"nullable":true,"example":["corporate","individual"],"description":"Filled only for type='select'; always null on other types.","type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","name","slug","type","options","createdAt","updatedAt"]},"CustomFieldListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"CreateCustomFieldDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"name":{"type":"string","example":"Customer segment"},"slug":{"type":"string","example":"customer-segment","description":"If omitted it is DERIVED from name: diacritics are reduced to ASCII (o-umlaut -> o, s-cedil -> s, eszett -> ss), letters are lowercased, every non-alphanumeric run becomes a single -, the start and the end are trimmed, and a result exceeding 64 characters is truncated. If the derivation comes out empty a random slug IS NOT GENERATED; 400 slug_not_derivable is returned and an explicit slug is asked for. Sending an empty string does not count as absence, it produces 400 invalid_slug. If the same slug already exists in the same profile 409 is returned; no automatic suffix is added. It cannot be changed after creation."},"type":{"type":"string","enum":["text","number","date","boolean","select"],"example":"select"},"options":{"example":["corporate","individual"],"description":"REQUIRED for type='select' and cannot be empty; supplying it on other types produces 400.","type":"array","items":{"type":"string"}}},"required":["profileId","name","type"]},"UpdateCustomFieldDto":{"type":"object","properties":{"name":{"type":"string","example":"Customer tier"},"options":{"description":"Accepted only on type='select' fields and replaces the option set ENTIRELY.","type":"array","items":{"type":"string"}}}},"CustomFieldDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Custom field deleted successfully"}},"required":["message"]},"ContactChannelDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"contactId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the channel is talked over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account, not taken from the client. It is part of the uniqueness key."},"externalId":{"type":"string","example":"905551112233","description":"The identifier of the contact on the platform side (PRD §6.3 'external_id'). On the Zernio wire it appears under the name 'platformIdentifier'."},"displayIdentifier":{"type":"string","nullable":true,"example":"Ayse Yilmaz","description":"For display only; it does not enter any uniqueness or matching decision."},"createdAt":{"type":"string","format":"date-time"}},"required":["id","contactId","accountId","platform","externalId","displayIdentifier","createdAt"]},"ContactDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex contact id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"displayName":{"type":"string","nullable":true,"example":"Ayse Yilmaz"},"email":{"type":"string","nullable":true,"example":"ayse@example.com"},"company":{"type":"string","nullable":true,"example":"Acme Ltd"},"avatarUrl":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"locale":{"type":"string","nullable":true,"example":"tr-TR"},"timezone":{"type":"string","nullable":true,"example":"Europe/Istanbul"},"tags":{"example":["VIP","campaign-2026"],"description":"Tags are stored NORMALIZED (tags + contact_tags) and are PROJECTED here as a flat array. Matching is CASE INSENSITIVE, the spelling is the one written first.","type":"array","items":{"type":"string"}},"isSubscribed":{"type":"boolean","example":true},"isBlocked":{"type":"boolean","example":false,"description":"LOCAL tenant flag. No provider blocking API is called; it can diverge from /v1/whatsapp/block-users BY DESIGN."},"customFields":{"type":"object","additionalProperties":true,"example":{"customer-segment":"corporate"},"description":"The custom field values of this contact, keyed by the slug of the definition. A field without a value does NOT appear here at all."},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ContactChannelDto"}},"firstSeenAt":{"type":"string","format":"date-time","description":"The moment the contact was FIRST seen. It is SEPARATE from createdAt: an imported contact is created today but has existed for months."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","displayName","email","company","avatarUrl","notes","locale","timezone","tags","isSubscribed","isBlocked","customFields","channels","firstSeenAt","createdAt","updatedAt"]},"ContactListFiltersDto":{"type":"object","properties":{"tags":{"example":["VIP","campaign-2026"],"description":"ALL tags used across the profiles in scope of the query, alphabetical. Not paginated - the per profile ceiling (500) is written in code for exactly this reason.","type":"array","items":{"type":"string"}}},"required":["tags"]},"ContactListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContactDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"},"filters":{"$ref":"#/components/schemas/ContactListFiltersDto"},"total":{"type":"number","minimum":0,"description":"Returned only when limit or skip is supplied (Zernio offset model)."},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1,"maximum":200}},"required":["data","hasMore","nextCursor","filters"]},"CreateContactDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"displayName":{"type":"string","example":"Ayse Yilmaz"},"email":{"type":"string","example":"ayse@example.com"},"company":{"type":"string","example":"Acme Ltd"},"avatarUrl":{"type":"string"},"notes":{"type":"string"},"locale":{"type":"string","example":"tr-TR"},"timezone":{"type":"string","example":"Europe/Istanbul"},"tags":{"example":["VIP"],"type":"array","items":{"type":"string"}},"isSubscribed":{"type":"boolean","default":true},"isBlocked":{"type":"boolean","default":false,"description":"LOCAL flag. Setting it to true calls no provider and DOES NOT CHANGE the state of /v1/whatsapp/block-users."},"firstSeenAt":{"type":"string","format":"date-time","description":"If omitted, now. On import the first-seen moment of the source system is written."},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"If provided, the first channel is created in the same call and externalId becomes REQUIRED."},"externalId":{"type":"string","example":"905551112233","description":"Required when accountId is supplied; the identifier of the contact on the platform side."},"platform":{"type":"string","example":"whatsapp","description":"Optional and for VALIDATION only: it is derived from the platform of the account, on mismatch 400."},"displayIdentifier":{"type":"string","example":"Ayse Yilmaz"}},"required":["profileId"]},"BulkContactDto":{"type":"object","properties":{"displayName":{"type":"string","example":"Ayse Yilmaz"},"email":{"type":"string","example":"ayse@example.com"},"company":{"type":"string"},"avatarUrl":{"type":"string"},"notes":{"type":"string"},"locale":{"type":"string"},"timezone":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"isSubscribed":{"type":"boolean"},"isBlocked":{"type":"boolean"},"firstSeenAt":{"type":"string","format":"date-time"},"accountId":{"type":"string"},"externalId":{"type":"string"},"platform":{"type":"string"},"displayIdentifier":{"type":"string"}}},"BulkCreateContactsDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"contacts":{"description":"At most 1000 rows. The limit lives in code, not in env (CLAUDE.md \"Kilitli sozlesmeler\").","type":"array","items":{"$ref":"#/components/schemas/BulkContactDto"}}},"required":["profileId","contacts"]},"BulkSkippedDto":{"type":"object","properties":{"index":{"type":"number","description":"Index of the row in the request (0 based)."},"contactId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"The existing contact the tags were MERGED into."}},"required":["index","contactId"]},"BulkErrorDto":{"type":"object","properties":{"index":{"type":"number"},"code":{"type":"string","example":"invalid_email"},"message":{"type":"string","example":"email must be a non-empty string"},"param":{"type":"string","example":"email"}},"required":["index","code","message"]},"BulkCreateContactsResponseDto":{"type":"object","properties":{"created":{"type":"array","items":{"$ref":"#/components/schemas/ContactDto"}},"skipped":{"description":"If the same channel is already linked to another contact the row is SKIPPED and its tags are MERGED into that contact (createContact returns 409 in the same situation).","type":"array","items":{"$ref":"#/components/schemas/BulkSkippedDto"}},"errors":{"description":"Row level errors are returned in the 200 BODY. If a single invalid row rejected a 1000 row import, the client could not learn which one was broken.","type":"array","items":{"$ref":"#/components/schemas/BulkErrorDto"}}},"required":["created","skipped","errors"]},"UpdateContactDto":{"type":"object","properties":{"displayName":{"type":"string","nullable":true,"description":"Sending null CLEARS the field; not sending the field at all does not touch it."},"email":{"type":"string","nullable":true},"company":{"type":"string","nullable":true},"avatarUrl":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"locale":{"type":"string","nullable":true},"timezone":{"type":"string","nullable":true},"tags":{"description":"If provided it replaces the tag set ENTIRELY (it does not merge).","type":"array","items":{"type":"string"}},"isSubscribed":{"type":"boolean"},"isBlocked":{"type":"boolean","description":"LOCAL tenant mute. No provider blocking API is called and the state of /v1/whatsapp/block-users DOES NOT CHANGE; the two can diverge by design."}}},"ContactDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Contact deleted successfully"}},"required":["message"]},"ContactChannelListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ContactChannelDto"}}},"required":["data"]},"SetContactFieldValueDto":{"type":"object","properties":{"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"description":"The value is validated according to the type of the DEFINITION: text -> string, number -> finite number, boolean -> boolean, date -> ISO-8601 date or date-time string, select -> a member of the options list of the definition."}},"required":["value"]},"ContactFieldValueDto":{"type":"object","properties":{"contactId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"slug":{"type":"string","example":"customer-segment"},"fieldId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"example":"corporate"},"updatedAt":{"type":"string","format":"date-time"}},"required":["contactId","slug","fieldId","value","updatedAt"]},"ContactFieldValueDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Custom field value cleared successfully"}},"required":["message"]},"BroadcastDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex broadcast id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the send is made over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400."},"name":{"type":"string","example":"November campaign"},"description":{"type":"string","nullable":true,"example":"Black Friday announcement"},"message":{"type":"string","nullable":true,"example":"Hi! Our campaign has started."},"template":{"type":"object","additionalProperties":true,"nullable":true,"description":"Provider template. Presence is validated when recipients are compiled (WhatsApp broadcasts require it); the template body itself is never inspected by this API."},"segmentFilters":{"type":"object","additionalProperties":true,"nullable":true,"description":"Audience filter. It is compiled into concrete recipient rows only when you call addBroadcastRecipients with useSegment=true. Editing it afterwards does NOT change an already frozen audience."},"status":{"type":"string","enum":["draft","scheduled","sending","completed","failed","cancelled"],"example":"draft","description":"Lifecycle state. Due scheduled broadcasts are moved to sending by the durable runtime; frozen recipients are delivered at most once, then the runtime writes completed or failed."},"scheduledAt":{"type":"string","format":"date-time","nullable":true,"description":"Set by scheduleBroadcast and kept as history. The durable runtime automatically moves a due scheduled broadcast to sending."},"startedAt":{"type":"string","format":"date-time","nullable":true,"description":"Set by sendBroadcast when the broadcast entered the sending state."},"finishedAt":{"type":"string","format":"date-time","nullable":true,"description":"Set by the delivery runtime when every frozen recipient is terminal and the broadcast reaches 'completed' or 'failed'."},"cancelledAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","accountId","platform","name","description","message","template","segmentFilters","status","scheduledAt","startedAt","finishedAt","cancelledAt","createdAt","updatedAt"]},"BroadcastPaginationDto":{"type":"object","properties":{"total":{"type":"number","minimum":0,"description":"Total records matching the filters."},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1},"hasMore":{"type":"boolean","description":"Derived: skip + number of returned records < total."}},"required":["total","skip","limit","hasMore"]},"BroadcastListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"broadcasts":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastDto"}},"pagination":{"$ref":"#/components/schemas/BroadcastPaginationDto"}},"required":["success","broadcasts","pagination"]},"CreateBroadcastDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"platform":{"type":"string","example":"whatsapp","description":"Must be the SAME as the platform of the account; on mismatch 400."},"name":{"type":"string","example":"November campaign"},"description":{"type":"string","example":"Black Friday announcement"},"message":{"type":"string","example":"Hi! Our campaign has started."},"template":{"type":"object","additionalProperties":true},"segmentFilters":{"type":"object","additionalProperties":true}},"required":["profileId","accountId","platform","name"]},"BroadcastResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"broadcast":{"$ref":"#/components/schemas/BroadcastDto"}},"required":["success","broadcast"]},"UpdateBroadcastDto":{"type":"object","properties":{"name":{"type":"string","description":"Passing empty DOES NOT CHANGE the field."},"description":{"type":"string","nullable":true,"description":"Sending null CLEARS the field; not sending the field at all does not touch it."},"message":{"type":"string","nullable":true},"template":{"type":"object","additionalProperties":true,"nullable":true},"segmentFilters":{"type":"object","additionalProperties":true,"nullable":true,"description":"Changing this does NOT change recipients that were already compiled from it. Recipients are frozen at compile time; call addBroadcastRecipients again to grow the audience."}}},"BroadcastDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"Broadcast deleted successfully"}},"required":["success","message"]},"AddBroadcastRecipientsDto":{"type":"object","properties":{"contactIds":{"description":"Contact ids. Each contact must belong to this broadcast profile and must have a channel on the broadcast account - that channel supplies the frozen address.","type":"array","items":{"type":"string"}},"phones":{"description":"Raw addresses (phone numbers) with no contact behind them. Per-platform address validation belongs to the adapter at delivery time and delivery is not running in this API version, so only the generic shape is checked here.","type":"array","items":{"type":"string"}},"useSegment":{"type":"boolean","description":"Compile the broadcast's stored segmentFilters into concrete recipient rows. Requires non-empty segmentFilters: an empty filter is rejected rather than treated as 'everyone'."}}},"BroadcastRecipientErrorDto":{"type":"object","properties":{"contactId":{"type":"string","nullable":true,"description":"The contactId that failed, when the input was a contact id."},"phone":{"type":"string","nullable":true,"description":"The phone that failed, when the input was a raw phone number."},"code":{"type":"string","example":"contact_has_no_channel_on_account"},"message":{"type":"string"}},"required":["contactId","phone","code","message"]},"AddBroadcastRecipientsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"added":{"type":"number","description":"Recipient rows materialised by this call."},"skipped":{"type":"number","description":"Addresses that were already in the frozen audience. Re-sending the same request is therefore harmless."},"total":{"type":"number","description":"Total recipients on this broadcast after the call."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastRecipientErrorDto"}}},"required":["success","added","skipped","total","errors"]},"BroadcastRecipientDto":{"type":"object","properties":{"id":{"type":"string","example":"d1e2f3a4b5c6d7e8f9a0b1c2"},"broadcastId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"contactId":{"type":"string","nullable":true,"description":"Provenance. null when the recipient was added as a raw phone number."},"channelId":{"type":"string","nullable":true,"description":"Provenance: the contact channel the address was copied from."},"address":{"type":"string","example":"15550001111","description":"The frozen delivery address. Copied at compile time and never re-read from the channel."},"status":{"type":"string","enum":["pending","sent","delivered","read","failed"],"example":"pending","description":"Always 'pending' in this API version: nothing sends. A cancelled broadcast leaves its untouched recipients pending on purpose - there is no row-level cancelled label, and marking them failed would claim a delivery attempt that never happened."},"sentAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"readAt":{"type":"string","format":"date-time","nullable":true},"failedAt":{"type":"string","format":"date-time","nullable":true},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"attempts":{"type":"number","minimum":0,"description":"Delivery attempts so far."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","broadcastId","contactId","channelId","address","status","sentAt","deliveredAt","readAt","failedAt","errorCode","errorMessage","attempts","createdAt","updatedAt"]},"BroadcastRecipientListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/BroadcastRecipientDto"}},"pagination":{"$ref":"#/components/schemas/BroadcastPaginationDto"}},"required":["success","recipients","pagination"]},"ScheduleBroadcastDto":{"type":"object","properties":{"scheduledAt":{"type":"string","format":"date-time","example":"2026-12-01T09:00:00.000Z","description":"ISO 8601 instant, strictly in the future and at most 365 days out. The durable runtime starts delivery when this instant is due."}},"required":["scheduledAt"]},"CommentAutomationDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex comment automation id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the rule will run on."},"name":{"type":"string","example":"Campaign comment automation"},"dmMessage":{"type":"string","example":"Hi! Here is the link you asked for.","description":"The DM body to be sent to the comment author."},"trigger":{"type":"string","nullable":true,"example":"comment","description":"Free text, NOT a CLOSED set. The extracted contract gives no value set for this field; inventing a set would turn a valid request into a 400."},"platformPostId":{"type":"string","nullable":true,"description":"The post id of the platform itself. It is opaque; in this API version it is not matched against any post record."},"postId":{"type":"string","nullable":true,"description":"The post id of the source system. It is opaque and IS NOT LINKED to a zumpo `posts` record - a migrating client sends its own id."},"postTitle":{"type":"string","nullable":true,"example":"November campaign reels"},"keywords":{"nullable":true,"example":["link","info"],"description":"If an empty array is sent it is stored as null.","type":"array","items":{"type":"string"}},"matchMode":{"type":"string","nullable":true,"example":"contains","description":"Free text, NOT a CLOSED set - the same rationale as `trigger`."},"excludeKeywords":{"nullable":true,"type":"array","items":{"type":"string"}},"typoTolerance":{"type":"boolean","example":false},"buttons":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true,"description":"OPAQUE. This API version does not interpret its content."},"template":{"type":"object","additionalProperties":true,"nullable":true,"description":"Provider template, OPAQUE. This API version does not interpret its content."},"commentReply":{"type":"string","nullable":true},"dmMessageVariations":{"nullable":true,"type":"array","items":{"type":"string"}},"commentReplyVariations":{"nullable":true,"type":"array","items":{"type":"string"}},"linkTracking":{"type":"boolean","example":false},"clickTag":{"type":"string","nullable":true},"dmDelaySeconds":{"type":"number","minimum":0,"example":0},"commentReplyDelaySeconds":{"type":"number","minimum":0,"example":0},"alsoMatchInDms":{"type":"boolean","example":false},"audience":{"type":"object","additionalProperties":true,"nullable":true,"description":"Audience filter, OPAQUE. This API version does not interpret its content."},"followGate":{"type":"object","additionalProperties":true,"nullable":true,"description":"Follow gate setting, OPAQUE. This API version does not interpret its content."},"isActive":{"type":"boolean","example":true,"description":"Whether the rule is on. Active rules are matched by the durable worker on incoming comment.received events."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","accountId","name","dmMessage","trigger","platformPostId","postId","postTitle","keywords","matchMode","excludeKeywords","typoTolerance","buttons","template","commentReply","dmMessageVariations","commentReplyVariations","linkTracking","clickTag","dmDelaySeconds","commentReplyDelaySeconds","alsoMatchInDms","audience","followGate","isActive","createdAt","updatedAt"]},"CommentAutomationPaginationDto":{"type":"object","properties":{"total":{"type":"number","minimum":0,"description":"Total records matching the filters."},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1},"hasMore":{"type":"boolean","description":"Derived: skip + number of returned records < total."}},"required":["total","skip","limit","hasMore"]},"CommentAutomationListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"automations":{"type":"array","items":{"$ref":"#/components/schemas/CommentAutomationDto"}},"pagination":{"$ref":"#/components/schemas/CommentAutomationPaginationDto"}},"required":["success","automations","pagination"]},"CreateCommentAutomationDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The account must belong to the SAME profile as `profileId`; otherwise 400."},"name":{"type":"string","example":"Campaign comment automation"},"dmMessage":{"type":"string","example":"Hi! Here is the link you asked for.","description":"REQUIRED: a comment-to-DM rule without a DM body is undefined."},"trigger":{"type":"string","example":"comment"},"platformPostId":{"type":"string"},"postId":{"type":"string"},"postTitle":{"type":"string"},"keywords":{"example":["link","info"],"type":"array","items":{"type":"string"}},"matchMode":{"type":"string","example":"contains"},"excludeKeywords":{"type":"array","items":{"type":"string"}},"typoTolerance":{"type":"boolean","default":false},"buttons":{"type":"array","items":{"type":"object","additionalProperties":true}},"template":{"type":"object","additionalProperties":true},"commentReply":{"type":"string"},"dmMessageVariations":{"type":"array","items":{"type":"string"}},"commentReplyVariations":{"type":"array","items":{"type":"string"}},"linkTracking":{"type":"boolean","default":false},"clickTag":{"type":"string"},"dmDelaySeconds":{"type":"number","minimum":0,"default":0},"commentReplyDelaySeconds":{"type":"number","minimum":0,"default":0},"alsoMatchInDms":{"type":"boolean","default":false},"audience":{"type":"object","additionalProperties":true},"followGate":{"type":"object","additionalProperties":true}},"required":["profileId","accountId","name","dmMessage"]},"CommentAutomationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"automation":{"$ref":"#/components/schemas/CommentAutomationDto"}},"required":["success","automation"]},"UpdateCommentAutomationDto":{"type":"object","properties":{"name":{"type":"string","description":"Passing empty DOES NOT CHANGE the field."},"dmMessage":{"type":"string"},"trigger":{"type":"string","nullable":true,"description":"Sending null CLEARS the field; not sending the field at all does not touch it."},"platformPostId":{"type":"string","nullable":true},"postId":{"type":"string","nullable":true},"postTitle":{"type":"string","nullable":true},"keywords":{"nullable":true,"type":"array","items":{"type":"string"}},"matchMode":{"type":"string","nullable":true},"excludeKeywords":{"nullable":true,"type":"array","items":{"type":"string"}},"typoTolerance":{"type":"boolean"},"buttons":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"template":{"type":"object","additionalProperties":true,"nullable":true},"commentReply":{"type":"string","nullable":true},"dmMessageVariations":{"nullable":true,"type":"array","items":{"type":"string"}},"commentReplyVariations":{"nullable":true,"type":"array","items":{"type":"string"}},"linkTracking":{"type":"boolean"},"clickTag":{"type":"string","nullable":true},"dmDelaySeconds":{"type":"number","minimum":0},"commentReplyDelaySeconds":{"type":"number","minimum":0},"alsoMatchInDms":{"type":"boolean"},"audience":{"type":"object","additionalProperties":true,"nullable":true},"followGate":{"type":"object","additionalProperties":true,"nullable":true},"isActive":{"type":"boolean","description":"Turn the rule on/off. WARNING: `true` FIRES nothing in this version."}}},"CommentAutomationDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"Comment automation deleted successfully"}},"required":["success","message"]},"CommentAutomationLogDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"automationId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"status":{"type":"string","enum":["pending","sent","failed","skipped","gated"],"example":"pending"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","automationId","status","createdAt"]},"CommentAutomationLogListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"logs":{"description":"Carries the comment.received match and private-reply results of the active rules.","type":"array","items":{"$ref":"#/components/schemas/CommentAutomationLogDto"}},"pagination":{"$ref":"#/components/schemas/CommentAutomationPaginationDto"}},"required":["success","logs","pagination"]},"SequenceDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex sequence id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the steps are sent over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400."},"name":{"type":"string","example":"New customer welcome"},"description":{"type":"string","nullable":true,"example":"Three-step welcome series"},"status":{"type":"string","enum":["draft","active","paused"],"example":"draft","description":"draft: enrollment is NOT ACCEPTED. active: enrollment is accepted. paused: new enrollments are not accepted, existing enrollments KEEP their state."},"exitOnReply":{"type":"boolean","description":"Ends the enrollment when the contact writes a reply (exitReason=replied). Default true."},"exitOnUnsubscribe":{"type":"boolean","description":"Ends the enrollment when the contact unsubscribes (exitReason=unsubscribed). Default true."},"stepCount":{"type":"number","minimum":0,"description":"Step count on the sequence. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the steps (response size) and the client being able to answer \"is this sequence empty\" without making a separate call."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","accountId","platform","name","description","status","exitOnReply","exitOnUnsubscribe","stepCount","createdAt","updatedAt"]},"SequencePaginationDto":{"type":"object","properties":{"total":{"type":"number","minimum":0,"description":"Total records matching the filters."},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1},"hasMore":{"type":"boolean","description":"Derived: skip + number of returned records < total."}},"required":["total","skip","limit","hasMore"]},"SequenceListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"sequences":{"type":"array","items":{"$ref":"#/components/schemas/SequenceDto"}},"pagination":{"$ref":"#/components/schemas/SequencePaginationDto"}},"required":["success","sequences","pagination"]},"SequenceStepInputDto":{"type":"object","properties":{"name":{"type":"string","example":"First touch"},"message":{"type":"string","example":"Hi! We have something new."},"template":{"type":"object","additionalProperties":true},"delayMinutes":{"type":"number","minimum":0,"maximum":525600,"default":0,"description":"Minutes to wait after the previous step."}}},"CreateSequenceDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"platform":{"type":"string","example":"whatsapp","description":"Must be the SAME as the platform of the account; on mismatch 400."},"name":{"type":"string","example":"New customer welcome"},"description":{"type":"string","example":"Three-step welcome series"},"steps":{"description":"Step ORDER is determined by the order in the array; the client does not send order and gets 400 if it does. May be left empty - the sequence is born as a draft and its steps are added later.","type":"array","items":{"$ref":"#/components/schemas/SequenceStepInputDto"}},"exitOnReply":{"type":"boolean","default":true},"exitOnUnsubscribe":{"type":"boolean","default":true}},"required":["profileId","accountId","platform","name"]},"SequenceStepDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex step id"},"order":{"type":"number","minimum":1,"example":1,"description":"Order of the step, 1 based. The currentStepOrder field of an enrollment row points at this value."},"name":{"type":"string","nullable":true,"example":"First touch"},"message":{"type":"string","nullable":true,"example":"Hi! We have something new."},"template":{"type":"object","additionalProperties":true,"nullable":true,"description":"Provider template, OPAQUE. The content is validated by the worker at send time; an unsupported template ends the enrollment with the failed reason."},"delayMinutes":{"type":"number","minimum":0,"example":2880,"description":"MINUTES to wait since the previous step completed. For the first step it is measured from the moment of enrollment. Upper bound 525600 (365 days)."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","order","name","message","template","delayMinutes","createdAt","updatedAt"]},"SequenceDetailDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex sequence id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the steps are sent over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400."},"name":{"type":"string","example":"New customer welcome"},"description":{"type":"string","nullable":true,"example":"Three-step welcome series"},"status":{"type":"string","enum":["draft","active","paused"],"example":"draft","description":"draft: enrollment is NOT ACCEPTED. active: enrollment is accepted. paused: new enrollments are not accepted, existing enrollments KEEP their state."},"exitOnReply":{"type":"boolean","description":"Ends the enrollment when the contact writes a reply (exitReason=replied). Default true."},"exitOnUnsubscribe":{"type":"boolean","description":"Ends the enrollment when the contact unsubscribes (exitReason=unsubscribed). Default true."},"stepCount":{"type":"number","minimum":0,"description":"Step count on the sequence. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the steps (response size) and the client being able to answer \"is this sequence empty\" without making a separate call."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/SequenceStepDto"}}},"required":["id","profileId","accountId","platform","name","description","status","exitOnReply","exitOnUnsubscribe","stepCount","createdAt","updatedAt","steps"]},"SequenceResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"sequence":{"$ref":"#/components/schemas/SequenceDetailDto"}},"required":["success","sequence"]},"UpdateSequenceDto":{"type":"object","properties":{"name":{"type":"string","description":"Passing empty DOES NOT CHANGE the field."},"description":{"type":"string","nullable":true,"description":"Sending null CLEARS the field; not sending the field at all does not touch it."},"steps":{"description":"If provided it replaces the ENTIRE step list (there is NO partial step update). Accepted only while in the draft state.","type":"array","items":{"$ref":"#/components/schemas/SequenceStepInputDto"}},"exitOnReply":{"type":"boolean"},"exitOnUnsubscribe":{"type":"boolean"}}},"SequenceDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"Sequence deleted successfully"}},"required":["success","message"]},"EnrollContactsDto":{"type":"object","properties":{"contactIds":{"example":["c1d2e3f4a5b6c7d8e9f0a1b2"],"description":"Ids of the contacts to enroll. Duplicates are de-duplicated.","type":"array","items":{"type":"string"}},"channelIds":{"description":"Ids of the usable channels - it is a FILTER, not a list matched to contacts. For each contact the first channel in this list that BELONGS TO that contact is chosen; if none belongs, that contact is reported inside errors[]. If omitted, channel selection is left to send time.","type":"array","items":{"type":"string"}}},"required":["contactIds"]},"SequenceEnrollmentDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"sequenceId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"contactId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"channelId":{"type":"string","nullable":true,"description":"The conversation address of this enrollment. If null, the channel was not chosen at enrollment time; it is chosen at send time."},"status":{"type":"string","enum":["active","completed","exited","paused"],"example":"active"},"currentStepOrder":{"type":"number","minimum":1,"description":"Order of the NEXT step - not of the one already done."},"nextRunAt":{"type":"string","format":"date-time","nullable":true,"description":"Due time of the currentStepOrder step. On an active enrollment it is ALWAYS filled; on a completed/exited enrollment it is ALWAYS null (database constraint)."},"lastStepAt":{"type":"string","format":"date-time","nullable":true,"description":"The moment of the step most recently COMPLETED by the durable worker."},"exitReason":{"type":"string","enum":["manual","replied","unsubscribed","blocked","no_channel","failed"],"nullable":true,"description":"ALWAYS filled together with status=exited, otherwise ALWAYS null. In addition to a manual exit, the worker can write the replied/unsubscribed/blocked/no_channel/failed reasons."},"exitedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","sequenceId","contactId","channelId","status","currentStepOrder","nextRunAt","lastStepAt","exitReason","exitedAt","createdAt","updatedAt"]},"SequenceEnrollmentSkipDto":{"type":"object","properties":{"contactId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"code":{"type":"string","example":"already_enrolled"},"message":{"type":"string","example":"Contact is already enrolled in this sequence"},"enrollmentId":{"type":"string","description":"Id of the already existing enrollment; filled only for already_enrolled."}},"required":["contactId","code","message"]},"SequenceEnrollmentErrorDto":{"type":"object","properties":{"contactId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"code":{"type":"string","example":"contact_not_found"},"message":{"type":"string","example":"No contact found with id 'c1d2e3f4a5b6c7d8e9f0a1b2'"}},"required":["contactId","code","message"]},"EnrollContactsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"enrolled":{"type":"array","items":{"$ref":"#/components/schemas/SequenceEnrollmentDto"}},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/SequenceEnrollmentSkipDto"}},"errors":{"type":"array","items":{"$ref":"#/components/schemas/SequenceEnrollmentErrorDto"}}},"required":["success","enrolled","skipped","errors"]},"UnenrollContactResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"Contact unenrolled successfully"},"enrollment":{"$ref":"#/components/schemas/SequenceEnrollmentDto"}},"required":["success","message","enrollment"]},"SequenceEnrollmentListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"enrollments":{"type":"array","items":{"$ref":"#/components/schemas/SequenceEnrollmentDto"}},"pagination":{"$ref":"#/components/schemas/SequencePaginationDto"}},"required":["success","enrollments","pagination"]},"WorkflowDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex workflow id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the graph is executed over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400. The account can be changed but the platform DOES NOT CHANGE."},"name":{"type":"string","example":"New customer welcome flow"},"description":{"type":"string","nullable":true,"example":"Auto-reply to the first message"},"status":{"type":"string","enum":["draft","active","paused"],"example":"draft","description":"draft: cannot be triggered, the graph is edited freely. active: can be triggered; editing the graph gets 409 (pause first). paused: new triggers are not accepted, the graph can be edited again."},"currentVersion":{"type":"number","nullable":true,"minimum":1,"description":"LIVE version number; null means the workflow was never activated. While status=active the graph of this version is EXACTLY the same as the working graph (a database constraint plus the activation/restore gates guarantee this together)."},"nodeCount":{"type":"number","minimum":0,"description":"Node count in the graph. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the graph (response size) and the client being able to answer \"is this workflow empty\" without making a separate call (the same decision as `stepCount` on sequences)."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","profileId","accountId","platform","name","description","status","currentVersion","nodeCount","createdAt","updatedAt"]},"WorkflowPaginationDto":{"type":"object","properties":{"total":{"type":"number","minimum":0,"description":"Total records matching the filters."},"skip":{"type":"number","minimum":0},"limit":{"type":"number","minimum":1},"hasMore":{"type":"boolean","description":"Derived: skip + number of returned records < total."}},"required":["total","skip","limit","hasMore"]},"WorkflowListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"workflows":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDto"}},"pagination":{"$ref":"#/components/schemas/WorkflowPaginationDto"}},"required":["success","workflows","pagination"]},"WorkflowNodeDto":{"type":"object","properties":{"id":{"type":"string","example":"trigger-1","description":"UNIQUE node id within the graph. THE CLIENT assigns it; this API does not generate it. Edges and entryNodeId refer to this value."},"type":{"type":"string","example":"message","description":"Node type. CONSTRAINED FREE TEXT, NOT a closed set. The durable runtime interprets the trigger/entry/start/noop, message/send_message and end/exit types; another type is accepted and can be stored but fails closed with unsupported_node_type in the triggered execution."},"text":{"type":"string","example":"Hi there!","description":"For type=message or type=send_message, the body sent to the provider. If it is empty or missing while either of these two types runs, the execution ends as failed with message_text_missing; on other types it is an opaque field."}},"required":["id","type"]},"WorkflowEdgeDto":{"type":"object","properties":{"from":{"type":"string","example":"trigger-1","description":"Id of the source node."},"to":{"type":"string","example":"message-1","description":"Id of the target node."}},"required":["from","to"]},"CreateWorkflowDto":{"type":"object","properties":{"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2"},"name":{"type":"string","example":"New customer welcome flow"},"platform":{"type":"string","example":"whatsapp","description":"If provided it must be the SAME as the platform of the account; on mismatch 400. If omitted it is derived from the account."},"description":{"type":"string","example":"Auto-reply to the first message"},"nodes":{"description":"May be left empty - the workflow is born as a draft and its graph is written later.","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"entryNodeId":{"type":"string","description":"If provided it MUST EXIST within nodes."}},"required":["profileId","accountId","name"]},"WorkflowDetailDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex workflow id"},"profileId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"accountId":{"type":"string","example":"c1d2e3f4a5b6c7d8e9f0a1b2","description":"The connected social account the graph is executed over."},"platform":{"type":"string","example":"whatsapp","description":"DERIVED from the platform of the account. A value supplied in the request is for validation only; on mismatch 400. The account can be changed but the platform DOES NOT CHANGE."},"name":{"type":"string","example":"New customer welcome flow"},"description":{"type":"string","nullable":true,"example":"Auto-reply to the first message"},"status":{"type":"string","enum":["draft","active","paused"],"example":"draft","description":"draft: cannot be triggered, the graph is edited freely. active: can be triggered; editing the graph gets 409 (pause first). paused: new triggers are not accepted, the graph can be edited again."},"currentVersion":{"type":"number","nullable":true,"minimum":1,"description":"LIVE version number; null means the workflow was never activated. While status=active the graph of this version is EXACTLY the same as the working graph (a database constraint plus the activation/restore gates guarantee this together)."},"nodeCount":{"type":"number","minimum":0,"description":"Node count in the graph. NOT a part of the Zernio envelope, it is our addition: the trade-off between the list endpoint not carrying the graph (response size) and the client being able to answer \"is this workflow empty\" without making a separate call (the same decision as `stepCount` on sequences)."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"nodes":{"description":"Nodes. Fields are stored and returned as they are; on message/send_message nodes the durable runtime interprets the `text` field as the provider body.","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"entryNodeId":{"type":"string","nullable":true,"description":"Start node of the graph. MUST EXIST within nodes (400). CANNOT be null while status=active."}},"required":["id","profileId","accountId","platform","name","description","status","currentVersion","nodeCount","createdAt","updatedAt","nodes","edges","entryNodeId"]},"WorkflowResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"workflow":{"$ref":"#/components/schemas/WorkflowDetailDto"}},"required":["success","workflow"]},"UpdateWorkflowDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true,"description":"Sending null CLEARS the field; not sending the field at all does not touch it."},"nodes":{"description":"If provided it replaces the ENTIRE node list.","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"description":"If provided it replaces the ENTIRE edge list.","type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"entryNodeId":{"type":"string","nullable":true},"accountId":{"type":"string","description":"The platform of the new account must be the same; otherwise 400."}}},"WorkflowDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string","example":"Workflow deleted successfully"}},"required":["success","message"]},"WorkflowExecutionDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"workflowId":{"type":"string","example":"b1c2d3e4f5a6b7c8d9e0f1a2"},"workflowVersion":{"type":"number","minimum":1,"description":"PINNED version. The execution runs the version that was live at the moment it was triggered and this value NEVER CHANGES AGAIN: even if the workflow is edited later or rolled back to an older version, this in-flight execution follows its own graph."},"status":{"type":"string","enum":["running","waiting","completed","exited","failed"],"example":"waiting","description":"waiting: awaiting to be claimed; running: claimed by the durable worker; completed/exited/failed are terminal states."},"currentNodeId":{"type":"string","nullable":true,"description":"Id of the current, or last terminal, node in the pinned graph."},"to":{"type":"string","nullable":true,"description":"The target from the triggerWorkflow body. A message/send_message node uses this as the provider conversation target when conversationId is absent."},"conversationId":{"type":"string","nullable":true,"description":"The provider conversation id from the triggerWorkflow body; it comes before the `to` field on message/send_message delivery."},"text":{"type":"string","nullable":true,"description":"The trigger text stored, uninterpreted, from the triggerWorkflow body."},"finishedAt":{"type":"string","format":"date-time","nullable":true,"description":"Filled when the durable worker moves it into the completed, exited or failed state."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workflowId","workflowVersion","status","currentNodeId","to","conversationId","text","finishedAt","createdAt","updatedAt"]},"WorkflowExecutionListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"executions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionDto"}},"pagination":{"$ref":"#/components/schemas/WorkflowPaginationDto"}},"required":["success","executions","pagination"]},"TriggerWorkflowDto":{"type":"object","properties":{"to":{"type":"string","description":"Recipient address. Stored uninterpreted; this API version does not validate its format."},"conversationId":{"type":"string","description":"The conversation to attach to; stored uninterpreted."},"text":{"type":"string","description":"The triggering text; stored uninterpreted."}}},"WorkflowExecutionResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"execution":{"$ref":"#/components/schemas/WorkflowExecutionDto"}},"required":["success","execution"]},"WorkflowExecutionEventDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"seq":{"type":"number","minimum":1,"description":"Increasing order number within the execution."},"type":{"type":"string","example":"execution.created","description":"Event type, constrained free text. After execution.created the worker writes node.started/node.completed and execution terminal events in order."},"nodeId":{"type":"string","nullable":true,"description":"The node the event occurred on; null if it is an execution-level event."},"data":{"type":"object","additionalProperties":true,"nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","seq","type","nodeId","data","createdAt"]},"WorkflowExecutionEventListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"events":{"description":"The ordered event stream that begins with execution.created and is extended by the durable worker with node/terminal events.","type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionEventDto"}},"pagination":{"$ref":"#/components/schemas/WorkflowPaginationDto"}},"required":["success","events","pagination"]},"WorkflowVersionSummaryDto":{"type":"object","properties":{"version":{"type":"number","minimum":1,"example":3},"restoredFromVersion":{"type":"number","nullable":true},"nodeCount":{"type":"number","minimum":0,"description":"Node count in this version."},"entryNodeId":{"type":"string"},"isCurrent":{"type":"boolean","description":"Whether this version is LIVE right now (the same as workflow.currentVersion)."},"createdAt":{"type":"string","format":"date-time"}},"required":["version","restoredFromVersion","nodeCount","entryNodeId","isCurrent","createdAt"]},"WorkflowVersionListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"versions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowVersionSummaryDto"}},"pagination":{"$ref":"#/components/schemas/WorkflowPaginationDto"}},"required":["success","versions","pagination"]},"WorkflowVersionDto":{"type":"object","properties":{"version":{"type":"number","minimum":1,"example":3},"restoredFromVersion":{"type":"number","nullable":true,"description":"If this version was born from a restore, the SOURCE version number; if it was born from an activation, null. restoreWorkflowVersion does NOT PULL the version number BACK, it writes forward - the rationale is written in migration 0100 as measured there."},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"entryNodeId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["version","restoredFromVersion","nodes","edges","entryNodeId","createdAt"]},"WorkflowVersionResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"version":{"$ref":"#/components/schemas/WorkflowVersionDto"}},"required":["success","version"]},"CapabilityTextDto":{"type":"object","properties":{"maxLength":{"type":"integer","minimum":1,"example":500}},"additionalProperties":false,"required":["maxLength"]},"CapabilityImageDto":{"type":"object","properties":{"maxCount":{"type":"integer","minimum":1,"example":4},"formats":{"minItems":1,"example":["image/jpeg"],"type":"array","items":{"type":"string"}},"maxBytes":{"type":"integer","minimum":1,"example":10000000}},"additionalProperties":false,"required":["maxCount","formats","maxBytes"]},"CapabilityDocumentDto":{"type":"object","properties":{"maxCount":{"type":"integer","minimum":1,"example":1},"formats":{"minItems":1,"example":["application/pdf","application/zip","application/octet-stream"],"type":"array","items":{"type":"string"}},"maxBytes":{"type":"integer","minimum":1,"example":49000000}},"additionalProperties":false,"required":["maxCount","formats","maxBytes"]},"CapabilityVideoDto":{"type":"object","properties":{"minDurationSec":{"type":"number","minimum":0,"example":1},"maxDurationSec":{"type":"number","minimum":0,"example":3600},"formats":{"minItems":1,"example":["video/mp4"],"type":"array","items":{"type":"string"}},"maxBytes":{"type":"integer","minimum":1,"example":49000000},"aspectRatios":{"example":[],"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["minDurationSec","maxDurationSec","formats","maxBytes","aspectRatios"]},"CapabilityCarouselDto":{"type":"object","properties":{"maxItems":{"type":"integer","minimum":1,"example":10},"mixedMedia":{"type":"boolean","example":false}},"additionalProperties":false,"required":["maxItems","mixedMedia"]},"PublishContentAlternativeDto":{"type":"object","properties":{"text":{"type":"boolean","description":"When true, non-blank text is required. False does not prohibit text."},"media":{"type":"boolean","description":"When true, at least one media item is required. False does not prohibit media."},"options":{"description":"Post option names that must carry a non-empty value.","example":["link"],"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["text","media","options"]},"PublishContentRequirementsDto":{"type":"object","properties":{"alternatives":{"minItems":1,"description":"OR alternatives; requirements inside each item are AND-ed. These are minimums, not exclusive content modes.","type":"array","items":{"$ref":"#/components/schemas/PublishContentAlternativeDto"}}},"additionalProperties":false,"required":["alternatives"]},"PublishCapabilityDto":{"type":"object","properties":{"text":{"$ref":"#/components/schemas/CapabilityTextDto"},"image":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/CapabilityImageDto"}]},"document":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/CapabilityDocumentDto"}],"description":"Additive binary-document capability. Omission means the platform has not declared document support."},"video":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/CapabilityVideoDto"}]},"carousel":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/CapabilityCarouselDto"}]},"nativeScheduling":{"type":"boolean"},"requiredOptions":{"type":"array","items":{"type":"string"}},"contentRequirements":{"description":"Minimum content combinations, present after a platform payload audit.","allOf":[{"$ref":"#/components/schemas/PublishContentRequirementsDto"}]}},"additionalProperties":false,"required":["text","image","video","carousel","nativeScheduling","requiredOptions"]},"InboxCapabilityDto":{"type":"object","properties":{"dm":{"type":"boolean"},"comments":{"type":"boolean"},"reviews":{"type":"boolean"},"mentions":{"type":"boolean"},"reactions":{"type":"boolean"}},"additionalProperties":false,"required":["dm","comments","reviews","mentions","reactions"]},"AnalyticsCompanionCapabilityDto":{"type":"object","properties":{"granularity":{"type":"string","enum":["location"]}},"additionalProperties":false,"required":["granularity"]},"AnalyticsCapabilityDto":{"type":"object","properties":{"post":{"type":"array","items":{"type":"string"}},"account":{"type":"array","items":{"type":"string"}},"companion":{"$ref":"#/components/schemas/AnalyticsCompanionCapabilityDto"}},"additionalProperties":false,"required":["post","account"]},"AdsCapabilityDto":{"type":"object","properties":{"objectives":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["objectives"]},"PlatformCapabilitiesDto":{"type":"object","properties":{"publish":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/PublishCapabilityDto"}]},"inbox":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/InboxCapabilityDto"}]},"analytics":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/AnalyticsCapabilityDto"}]},"ads":{"oneOf":[{"type":"boolean","enum":[false]},{"$ref":"#/components/schemas/AdsCapabilityDto"}]}},"additionalProperties":false,"required":["publish","inbox","analytics","ads"]},"AccountCapabilityDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"freshness":{"type":"string","enum":["fresh","stale"]},"observedAt":{"type":"string","format":"date-time"},"capabilities":{"$ref":"#/components/schemas/PlatformCapabilitiesDto"}},"additionalProperties":false,"required":["accountId","profileId","freshness","observedAt","capabilities"]},"PlatformCapabilityDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"],"description":"Platform id"},"capabilities":{"$ref":"#/components/schemas/PlatformCapabilitiesDto"},"mediaDelivery":{"type":"string","enum":["url","binary","resumable"],"example":"url"},"quotaModel":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","dailyUnits","costPerPost"],"properties":{"type":{"type":"string","enum":["shared"]},"dailyUnits":{"type":"number","minimum":0},"costPerPost":{"type":"number","minimum":0}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["per-tenant"]}}},{"type":"object","additionalProperties":false,"required":["type","unitCost"],"properties":{"type":{"type":"string","enum":["metered"]},"unitCost":{"type":"number","minimum":0}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["unlimited"]}}}],"description":"The structural QuotaModel discriminated union of PRD §7.4."},"apiVersion":{"type":"string","example":"v1","description":"Adapter in hedefledigi platform API surumu"},"apiSunsetAt":{"type":"string","nullable":true,"example":null,"description":"Known deprecation date (ISO) or null"},"accountCapability":{"$ref":"#/components/schemas/AccountCapabilityDto"}},"additionalProperties":false,"required":["platform","capabilities","mediaDelivery","quotaModel","apiVersion","apiSunsetAt"]},"WebhookSettingsDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","minLength":1,"maxLength":50,"example":"Publishing events"},"url":{"type":"string","format":"uri","example":"https://hooks.example.com/zumpo"},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"isActive":{"type":"boolean","example":true},"lastFiredAt":{"type":"string","format":"date-time","nullable":true,"example":null},"failureCount":{"type":"integer","minimum":0,"example":0},"customHeaders":{"type":"object","additionalProperties":{"type":"string"},"example":{"x-customer-id":"customer-42"}},"disabledResourceGroups":{"type":"array","example":[],"items":{"type":"string","enum":["publishing","engagement","messages","contacts","analytics","ads","telephony","accounts","billing","webhooks"]}}},"additionalProperties":false,"required":["_id","name","url","events","isActive","lastFiredAt","failureCount","customHeaders","disabledResourceGroups"]},"WebhookSettingsListDto":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSettingsDto"}}},"additionalProperties":false,"required":["webhooks"]},"CreateWebhookSettingsDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50},"url":{"type":"string","format":"uri"},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"secret":{"type":"string","minLength":16,"maxLength":256},"isActive":{"type":"boolean","default":true},"customHeaders":{"type":"object","additionalProperties":{"type":"string"}},"disabledResourceGroups":{"type":"array","items":{"type":"string","enum":["publishing","engagement","messages","contacts","analytics","ads","telephony","accounts","billing","webhooks"]}}},"additionalProperties":false,"required":["name","url","events"]},"WebhookSettingsCreatedDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","minLength":1,"maxLength":50,"example":"Publishing events"},"url":{"type":"string","format":"uri","example":"https://hooks.example.com/zumpo"},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"isActive":{"type":"boolean","example":true},"lastFiredAt":{"type":"string","format":"date-time","nullable":true,"example":null},"failureCount":{"type":"integer","minimum":0,"example":0},"customHeaders":{"type":"object","additionalProperties":{"type":"string"},"example":{"x-customer-id":"customer-42"}},"disabledResourceGroups":{"type":"array","example":[],"items":{"type":"string","enum":["publishing","engagement","messages","contacts","analytics","ads","telephony","accounts","billing","webhooks"]}},"secret":{"type":"string","description":"Signing secret; returned once at creation only"}},"additionalProperties":false,"required":["_id","name","url","events","isActive","lastFiredAt","failureCount","customHeaders","disabledResourceGroups","secret"]},"WebhookSettingsCreateResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true},"webhook":{"$ref":"#/components/schemas/WebhookSettingsCreatedDto"}},"additionalProperties":false,"required":["success","webhook"]},"UpdateWebhookSettingsDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","minLength":1,"maxLength":50},"url":{"type":"string","format":"uri"},"events":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"secret":{"type":"string","minLength":16,"maxLength":256},"isActive":{"type":"boolean"},"customHeaders":{"type":"object","additionalProperties":{"type":"string"}},"disabledResourceGroups":{"type":"array","items":{"type":"string","enum":["publishing","engagement","messages","contacts","analytics","ads","telephony","accounts","billing","webhooks"]}}},"additionalProperties":false,"required":["_id"]},"WebhookSettingsMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true},"webhook":{"$ref":"#/components/schemas/WebhookSettingsDto"}},"additionalProperties":false,"required":["success","webhook"]},"WebhookDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean","example":true}},"additionalProperties":false,"required":["success"]},"CanonicalWebhookLogDto":{"type":"object","properties":{"webhookId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"eventId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"url":{"type":"string","format":"uri"},"webhookName":{"type":"string","minLength":1,"maxLength":50},"status":{"type":"string","enum":["success","failed"]},"statusCode":{"type":"number","nullable":true},"responseBody":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"responseTime":{"type":"number","nullable":true},"attemptNumber":{"type":"integer","minimum":1},"createdAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["webhookId","eventId","url","webhookName","status","statusCode","responseBody","errorMessage","responseTime","attemptNumber","createdAt"]},"CanonicalWebhookLogsPaginationDto":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":100},"skip":{"type":"integer","minimum":0},"pages":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}},"additionalProperties":false,"required":["total","limit","skip","pages","hasMore"]},"CanonicalWebhookLogsResponseDto":{"type":"object","properties":{"logs":{"type":"array","items":{"$ref":"#/components/schemas/CanonicalWebhookLogDto"}},"pagination":{"$ref":"#/components/schemas/CanonicalWebhookLogsPaginationDto"}},"additionalProperties":false,"required":["logs","pagination"]},"CanonicalWebhookTestDto":{"type":"object","properties":{"webhookId":{"type":"string","pattern":"^[0-9a-f]{24}$"}},"additionalProperties":false,"required":["webhookId"]},"WebhookTestResponseDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Teslimat (webhook_deliveries) id si"},"status":{"type":"string","example":"pending"}},"required":["id","status"]},"CreateWebhookDto":{"type":"object","properties":{"url":{"type":"string","example":"https://hooks.example.com/zumpo"},"events":{"type":"array","example":["post.published","post.platform.published"],"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}}},"required":["url","events"]},"WebhookEndpointCreatedDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex endpoint id"},"url":{"type":"string","example":"https://hooks.example.com/zumpo"},"events":{"type":"array","example":["post.published","post.platform.published"],"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"enabled":{"type":"boolean","example":true,"description":"Born true at registration time; there is no PATCH in this phase"},"secret":{"type":"string","example":"whsec_9f1c2e4a6b8d0f1a3c5e7b9d2f4a6c8e0b1d3f5a7c9e2b4d6f8a0c2e4b6d8a0c2e","description":"The signing secret; shown once, only in this response"}},"required":["id","url","events","enabled","secret"]},"WebhookEndpointDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex endpoint id"},"url":{"type":"string","example":"https://hooks.example.com/zumpo"},"events":{"type":"array","example":["post.published","post.platform.published"],"items":{"type":"string","enum":["post.scheduled","post.published","post.failed","post.partial","post.cancelled","post.recycled","post.platform.published","post.platform.failed","post.platform.deleted","post.tiktok.url_resolved","post.platform.action_required","post.platform.action_resolved","post.external.created","post.external.updated","post.external.deleted","account.connected","account.health_changed","account.disconnected","account.ads.initial_sync_completed","message.received","message.sent","message.edited","message.deleted","message.delivered","message.read","message.failed","conversation.started","reaction.received","referral.received","comment.received","review.new","review.updated","whatsapp.template.status_updated","whatsapp.template.category_updated","whatsapp.account.name_status_updated","whatsapp.automatic_event","lead.received","ad.status_changed"]}},"enabled":{"type":"boolean","example":true,"description":"Born true at registration time; there is no PATCH in this phase"}},"required":["id","url","events","enabled"]},"WebhookEndpointListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"WebhookDeliveryLogDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex delivery id"},"eventId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3","description":"Event id (= outbox id, ObjectId-format)"},"attempt":{"type":"number","example":0,"description":"Number of completed attempts (0-based)"},"status":{"type":"string","example":"success","description":"pending | success | failed"},"statusCode":{"type":"number","nullable":true,"example":200},"responseBody":{"type":"string","nullable":true,"example":"ok","description":"First 2000 characters; the error code on failure"},"durationMs":{"type":"number","nullable":true,"example":42},"nextRetryAt":{"type":"string","nullable":true,"example":null,"description":"ISO-8601; terminal satirlarda null"},"createdAt":{"type":"string","example":"2026-07-28T12:00:00.123456Z","description":"ISO-8601 (UTC)"}},"required":["id","eventId","attempt","status","statusCode","responseBody","durationMs","nextRetryAt","createdAt"]},"WebhookDeliveryLogListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryLogDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"AllowedRedirectDto":{"type":"object","properties":{"redirectUri":{"type":"string","format":"uri","example":"https://app.example.com/oauth/callback"}},"required":["redirectUri"]},"AllowedRedirectListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AllowedRedirectDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"required":["data","hasMore","nextCursor"]},"CreateAllowedRedirectDto":{"type":"object","properties":{"redirectUri":{"type":"string","format":"uri","example":"https://app.example.com/oauth/callback","description":"Absolute http(s) URL, no embedded credentials. Stored normalized and matched exactly, so register the callback you actually redirect to — a different path on the same host will not match."}},"required":["redirectUri"]},"BlueskyCredentialsRequestDto":{"type":"object","properties":{"identifier":{"type":"string","minLength":1,"maxLength":320,"description":"Your Bluesky handle (for example user.bsky.social) or email address","example":"yourhandle.bsky.social"},"appPassword":{"type":"string","format":"password","writeOnly":true,"minLength":1,"maxLength":1024,"description":"App password generated from Bluesky Settings > App Passwords","example":"xxxx-xxxx-xxxx-xxxx"},"state":{"type":"string","pattern":"^[0-9a-f]{24}-[0-9a-f]{24}$","description":"Required state formatted as {userId}-{profileId}. Get userId from GET /v1/users and profileId from GET /v1/profiles.","example":"6507a1b2c3d4e5f6a7b8c9d0-6507a1b2c3d4e5f6a7b8c9d1"},"redirectUri":{"type":"string","format":"uri","maxLength":2048,"description":"Optional URL to redirect to after successful connection","example":"https://yourapp.com/connected"}},"additionalProperties":false,"required":["identifier","appPassword","state"]},"BlueskyConnectedAccountDto":{"type":"object","properties":{"_id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["bluesky"]},"profileId":{"oneOf":[{"type":"string"},{"type":"object","properties":{"_id":{"type":"string"},"userId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"isDefault":{"type":"boolean"},"isOverLimit":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}}]},"username":{"type":"string"},"displayName":{"type":"string"},"profilePicture":{"type":"string","nullable":true},"profileUrl":{"type":"string"},"needsReconnection":{"type":"boolean"},"followersCount":{"type":"number"},"followersLastUpdated":{"type":"string","format":"date-time"},"parentAccountId":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":true},"isActive":{"type":"boolean"}},"additionalProperties":false,"required":["_id","platform","profileId","isActive"]},"BlueskyCredentialsResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Bluesky connected successfully"},"account":{"$ref":"#/components/schemas/BlueskyConnectedAccountDto"}},"required":["message","account"]},"ShopifyOAuthAuthorizeResponseDto":{"type":"object","properties":{"authUrl":{"type":"string","format":"uri"},"state":{"type":"string","minLength":32,"maxLength":4096}},"additionalProperties":false,"required":["authUrl","state"]},"ShopifyTokenConnectDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","minLength":24,"maxLength":24},"shop":{"type":"string","example":"your-store.myshopify.com","minLength":1,"maxLength":77,"pattern":"^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[Mm][Yy][Ss][Hh][Oo][Pp][Ii][Ff][Yy]\\.[Cc][Oo][Mm])?$"},"accessToken":{"type":"string","example":"shpat_0123456789abcdef","pattern":"^shpat_[A-Za-z0-9_-]{16,512}$","minLength":22,"maxLength":518,"writeOnly":true}},"additionalProperties":false,"required":["profileId","shop","accessToken"]},"ShopifyConnectedAccountDto":{"type":"object","properties":{"_id":{"type":"string"},"platform":{"type":"string","enum":["shopify"]},"username":{"type":"string"},"displayName":{"type":"string"},"profileId":{"type":"string"}},"additionalProperties":false,"required":["_id","platform","username","displayName","profileId"]},"ShopifyTokenConnectResponseDto":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/ShopifyConnectedAccountDto"}},"additionalProperties":false,"required":["account"]},"ConnectCompleteResponseDto":{"type":"object","properties":{"accountId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"profileId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"platform":{"type":"string","example":"mastodon"},"platformAccountId":{"type":"string","example":"fake-mastodon-account"},"displayName":{"type":"string","example":"Fake Mastodon Account"},"status":{"type":"string","example":"active"}},"required":["accountId","profileId","platform","platformAccountId","displayName","status"]},"ConnectResourceDto":{"type":"object","properties":{"id":{"type":"string","example":"page_123","minLength":1,"maxLength":256},"type":{"type":"string","example":"page","minLength":1,"maxLength":64},"name":{"type":"string","example":"Acme Public Page","minLength":1,"maxLength":256}},"required":["id","type","name"]},"ConnectPendingResponseDto":{"type":"object","properties":{"pendingConnectionId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"profileId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"platform":{"type":"string","example":"mastodon"},"expiresAt":{"type":"string","format":"date-time","example":"2026-07-29T15:15:00.000Z"},"resources":{"minItems":0,"maxItems":100,"description":"First immutable resource page. Continue with nextCursor at GET /v1/connect/pending/{id}/resources.","type":"array","items":{"$ref":"#/components/schemas/ConnectResourceDto"}},"hasMore":{"type":"boolean","example":false,"description":"True when another stored resource page is available."},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque cursor for the next immutable resource page; otherwise null."}},"required":["pendingConnectionId","profileId","platform","expiresAt","resources","hasMore","nextCursor"]},"ConnectPendingCompatibilityResponseDto":{"type":"object","properties":{"pendingConnectionId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"profileId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"platform":{"type":"string","example":"mastodon"},"expiresAt":{"type":"string","format":"date-time","example":"2026-07-29T15:15:00.000Z"},"resources":{"minItems":0,"maxItems":100,"description":"First immutable resource page. Continue with nextCursor at GET /v1/connect/pending/{id}/resources.","type":"array","items":{"$ref":"#/components/schemas/ConnectResourceDto"}},"hasMore":{"type":"boolean","example":false,"description":"True when another stored resource page is available."},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque cursor for the next immutable resource page; otherwise null."},"pendingDataToken":{"oneOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}],"description":"For headless LinkedIn, Pinterest, and Snapchat selection this is a one-time 256-bit public capability whose digest alone is stored. Other compatibility selection flows retain the authenticated pendingConnectionId alias. It never contains provider credentials."}},"required":["pendingConnectionId","profileId","platform","expiresAt","resources","hasMore","nextCursor","pendingDataToken"]},"ConnectPendingResourcePageDto":{"type":"object","properties":{"data":{"minItems":0,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ConnectResourceDto"}},"hasMore":{"type":"boolean","example":false,"description":"True when another stored resource page is available."},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque cursor for the next immutable resource page; otherwise null."}},"required":["data","hasMore","nextCursor"]},"ConnectAttemptDto":{"type":"object","properties":{"state":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$"}},"required":["state"]},"ConnectAttemptResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["processing","complete","pending_selection","restart_required"]},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"pendingConnectionId":{"type":"string","pattern":"^[0-9a-f]{24}$"}},"required":["status","profileId","platform"]},"ConnectAuthorizeDto":{"type":"object","properties":{"profileId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"platform":{"type":"string","example":"mastodon"},"redirectUrl":{"type":"string","example":"https://app.example.com/oauth/callback"},"instanceUrl":{"type":"string","format":"uri","example":"https://social.example","description":"Required when platform is mastodon: an exact public HTTPS origin whose trailing slash is normalized. Rejected for platforms without instance-aware OAuth."},"purpose":{"type":"string","enum":["meta_ads"],"description":"Facebook only: authorize Meta advertising independently of a publishing Page."},"accountId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4","pattern":"^[0-9a-f]{24}$","description":"Existing account to reconnect; omitted for a new connection."},"loginMethod":{"type":"string","enum":["instagram_login","facebook_login"],"example":"facebook_login","description":"Instagram only. Selects Instagram Login or Facebook Login; rejected for every other platform."}},"required":["profileId","platform","redirectUrl"]},"ConnectAuthorizeResponseDto":{"type":"object","properties":{"oauthToken":{"type":"string","maxLength":512,"description":"OAuth 1.0a request token. Bind it to this state in the initiating browser; submit it as oauthToken with the callback verifier as code. No token secret is exposed."},"authorizationUrl":{"type":"string","example":"https://app.example.com/oauth/callback?state=...&code=zumpo-sandbox"},"state":{"type":"string","example":"z6_B7-wQ3q9o0UPm70PR-kfcP9Z8hR3zFq2RPwS-E78"}},"required":["authorizationUrl","state"]},"ConnectCompleteDto":{"type":"object","properties":{"oauthToken":{"type":"string","maxLength":512,"description":"Required for X Ads OAuth 1.0a: the exact oauth_token from the provider callback. code must contain oauth_verifier. Rejected for OAuth 2.0."},"state":{"type":"string","example":"z6_B7-wQ3q9o0UPm70PR-kfcP9Z8hR3zFq2RPwS-E78"},"code":{"type":"string","example":"provider-authorization-code"}},"required":["state","code"]},"ConnectPendingCompleteDto":{"type":"object","properties":{"resourceId":{"type":"string","example":"page_123","minLength":1,"maxLength":256}},"required":["resourceId"]},"ConnectCredentialsDto":{"type":"object","properties":{"profileId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"platform":{"type":"string","example":"bluesky"},"accountId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4","pattern":"^[0-9a-f]{24}$","description":"Existing account to reconnect; omitted for a new connection."},"credentials":{"type":"object","additionalProperties":{"type":"string"},"examples":[{"identifier":"alice.example.com","appPassword":"[REDACTED]","serviceUrl":"https://bsky.social"},{"botToken":"[REDACTED]","chatId":"-1001234567890"}]}},"required":["profileId","platform","credentials"]},"GoogleBusinessLocationCompatibilityDto":{"type":"object","properties":{"id":{"type":"string","example":"9281089117903930794"},"name":{"type":"string","example":"My Coffee Shop"},"accountId":{"type":"string","example":"accounts/113303573364907650416"}},"required":["id","name","accountId"]},"GoogleBusinessLocationsCompatibilityResponseDto":{"type":"object","properties":{"locations":{"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessLocationCompatibilityDto"}},"hasMore":{"type":"boolean","example":false}},"required":["locations","hasMore"]},"GoogleBusinessSelectLocationCompatibilityDto":{"type":"object","properties":{"profileId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"locationId":{"type":"string","example":"9281089117903930794"},"accountId":{"type":"string","example":"accounts/113303573364907650416"},"pendingDataToken":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Zumpo pending connection id returned by the OAuth completion response."},"redirect_url":{"type":"string","format":"uri","maxLength":2048,"example":"https://app.example.com/accounts/connected","description":"Optional post-connection redirect. Returned with the connection params appended, exactly as the Facebook page, LinkedIn organization, Pinterest board, Snapchat profile and WhatsApp phone selection flows do."}},"required":["profileId","locationId","pendingDataToken"]},"GoogleBusinessSelectLocationCompatibilityResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Google Business location connected successfully"},"redirect_url":{"type":"string","format":"uri","example":"https://app.example.com/accounts/connected?connected=googlebusiness&profileId=a1b2c3d4e5f6a7b8c9d0e1f2&accountId=b2c3d4e5f6a7b8c9d0e1f2a3&username=My+Coffee+Shop","description":"Present only when the request supplied redirect_url; carries the connection params."},"account":{"$ref":"#/components/schemas/GoogleBusinessConnectedAccountCompatibilityDto"}},"required":["message","account"]},"ConnectUrlCompatibilityResponseDto":{"type":"object","properties":{"authUrl":{"type":"string","format":"uri","example":"https://provider.example/oauth/authorize?state=...","description":"Provider authorization URL for the supported headless flow."},"state":{"type":"string","example":"z6_B7-wQ3q9o0UPm70PR-kfcP9Z8hR3zFq2RPwS-E78"}},"required":["authUrl","state"]},"ConnectCallbackCompatibilityDto":{"type":"object","properties":{"oauthToken":{"type":"string","maxLength":512,"description":"Required for X Ads OAuth 1.0a: the exact oauth_token from the provider callback. code must contain oauth_verifier. Rejected for OAuth 2.0."},"state":{"type":"string","example":"z6_B7-wQ3q9o0UPm70PR-kfcP9Z8hR3zFq2RPwS-E78"},"code":{"type":"string","example":"provider-authorization-code"},"profileId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"}},"required":["state","code","profileId"]},"FacebookPageSelectionPageDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"name":{"type":"string","minLength":1,"maxLength":256},"username":{"type":"string","maxLength":100},"access_token":{"type":"string","minLength":1,"maxLength":8192},"category":{"type":"string","maxLength":256},"tasks":{"maxItems":64,"uniqueItems":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["id","name","access_token","tasks"]},"FacebookPageSelectionListResponseDto":{"type":"object","properties":{"pages":{"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/FacebookPageSelectionPageDto"}}},"additionalProperties":false,"required":["pages"]},"FacebookPageSelectionUserProfileDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"name":{"type":"string","minLength":1,"maxLength":256},"profilePicture":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false},"FacebookPageSelectionRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"pageId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"tempToken":{"type":"string","minLength":1,"maxLength":8192},"userProfile":{"$ref":"#/components/schemas/FacebookPageSelectionUserProfileDto"},"redirect_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["profileId","pageId","tempToken","userProfile"]},"FacebookPageSelectionAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["facebook"]},"username":{"type":"string","minLength":1,"maxLength":256},"displayName":{"type":"string","minLength":1,"maxLength":256},"profilePicture":{"type":"string","format":"uri","maxLength":4096},"isActive":{"type":"boolean"},"selectedPageName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["accountId","platform","username","displayName","isActive","selectedPageName"]},"FacebookPageSelectionResponseDto":{"type":"object","properties":{"message":{"type":"string"},"redirect_url":{"type":"string","format":"uri"},"account":{"$ref":"#/components/schemas/FacebookPageSelectionAccountDto"}},"additionalProperties":false,"required":["message","account"]},"InstagramFacebookLoginIdentityDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{1,30}$"},"username":{"type":"string","minLength":1,"maxLength":100},"profile_picture_url":{"type":"string","format":"uri","maxLength":4096}},"additionalProperties":false,"required":["id","username"]},"InstagramFacebookLoginPageDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{1,20}$"},"name":{"type":"string","minLength":1,"maxLength":256},"instagram_business_account":{"$ref":"#/components/schemas/InstagramFacebookLoginIdentityDto"}},"additionalProperties":false,"required":["id","name","instagram_business_account"]},"InstagramFacebookLoginPagesResponseDto":{"type":"object","properties":{"pages":{"maxItems":2000,"type":"array","items":{"$ref":"#/components/schemas/InstagramFacebookLoginPageDto"}}},"additionalProperties":false,"required":["pages"]},"InstagramFacebookLoginSelectionRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"pageId":{"type":"string","pattern":"^\\d{1,20}$"},"tempToken":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Tenant-bound pending connection handle; never a provider token."},"redirect_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["profileId","pageId","tempToken"]},"InstagramFacebookLoginAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["instagram"]},"username":{"type":"string","minLength":1,"maxLength":100},"displayName":{"type":"string","minLength":1,"maxLength":256},"profilePicture":{"type":"string","format":"uri","maxLength":4096},"isActive":{"type":"boolean"},"loginMethod":{"type":"string","enum":["facebook_login"]}},"additionalProperties":false,"required":["accountId","platform","username","displayName","isActive","loginMethod"]},"InstagramFacebookLoginSelectionResponseDto":{"type":"object","properties":{"message":{"type":"string"},"redirect_url":{"type":"string","format":"uri"},"account":{"$ref":"#/components/schemas/InstagramFacebookLoginAccountDto"}},"additionalProperties":false,"required":["message","account"]},"LinkedInOrganizationSelectionDetailsDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"logoUrl":{"type":"string","format":"uri","maxLength":2048},"vanityName":{"type":"string","minLength":1,"maxLength":128},"website":{"type":"string","format":"uri","maxLength":2048},"industry":{"type":"string","minLength":1,"maxLength":256},"description":{"type":"string","minLength":1,"maxLength":4096}},"additionalProperties":false,"required":["id"]},"LinkedInOrganizationSelectionListResponseDto":{"type":"object","properties":{"organizations":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionDetailsDto"}}},"additionalProperties":false,"required":["organizations"]},"LinkedInOrganizationSelectionUserProfileDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,241}$"},"username":{"type":"string","minLength":1,"maxLength":128},"displayName":{"type":"string","minLength":1,"maxLength":256},"profilePicture":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["id","username","displayName"]},"LinkedInSelectedOrganizationDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"},"urn":{"type":"string","pattern":"^urn:li:organization:[1-9][0-9]{0,15}$"},"name":{"type":"string","minLength":1,"maxLength":256},"logoUrl":{"type":"string","format":"uri","maxLength":2048},"vanityName":{"type":"string","minLength":1,"maxLength":128}},"additionalProperties":false,"required":["id","urn","name"]},"LinkedInOrganizationSelectionRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"tempToken":{"type":"string","minLength":1,"maxLength":8192},"userProfile":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionUserProfileDto"},"accountType":{"type":"string","enum":["personal","organization"]},"selectedOrganization":{"$ref":"#/components/schemas/LinkedInSelectedOrganizationDto"},"redirect_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["profileId","tempToken","userProfile","accountType"]},"LinkedInOrganizationSelectionAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["linkedin"]},"username":{"type":"string","minLength":1,"maxLength":256},"displayName":{"type":"string","minLength":1,"maxLength":256},"profilePicture":{"type":"string","format":"uri","maxLength":2048},"isActive":{"type":"boolean"},"accountType":{"type":"string","enum":["personal","organization"]}},"additionalProperties":false,"required":["accountId","platform","username","displayName","isActive","accountType"]},"LinkedInOrganizationSelectionResponseDto":{"type":"object","properties":{"message":{"type":"string"},"redirect_url":{"type":"string","format":"uri"},"account":{"$ref":"#/components/schemas/LinkedInOrganizationSelectionAccountDto"}},"additionalProperties":false,"required":["message","account"]},"PinterestBoardSelectionBoardDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20,"description":"Pinterest board ID."},"name":{"type":"string","minLength":1,"maxLength":180},"description":{"type":"string","maxLength":500},"privacy":{"type":"string","enum":["PUBLIC","PROTECTED","SECRET"]}},"additionalProperties":false,"required":["id","name"]},"PinterestBoardSelectionResponseDto":{"type":"object","properties":{"boards":{"maxItems":2000,"type":"array","items":{"$ref":"#/components/schemas/PinterestBoardSelectionBoardDto"}}},"additionalProperties":false,"required":["boards"]},"PinterestBoardSelectionCompleteRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Your Zernio profile ID"},"boardId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20,"description":"The Pinterest Board ID selected by the user"},"boardName":{"type":"string","minLength":1,"maxLength":180,"description":"The board name (for display purposes)"},"tempToken":{"type":"string","minLength":1,"maxLength":8192,"description":"Temporary Pinterest access token from OAuth"},"userProfile":{"type":"object","additionalProperties":true,"description":"User profile data from OAuth redirect"},"refreshToken":{"type":"string","minLength":1,"maxLength":8192,"description":"Pinterest refresh token (if available)"},"expiresIn":{"type":"number","minimum":1,"description":"Token expiration time in seconds"},"redirect_url":{"type":"string","format":"uri","maxLength":2048,"description":"Custom redirect URL after connection completes"}},"additionalProperties":false,"required":["profileId","boardId","tempToken"]},"PinterestBoardSelectionCompleteAccountDto":{"type":"object","properties":{"accountId":{"type":"string"},"platform":{"type":"string","enum":["pinterest"]},"username":{"type":"string"},"displayName":{"type":"string"},"profilePicture":{"type":"string"},"isActive":{"type":"boolean"},"defaultBoardName":{"type":"string"}},"additionalProperties":false},"PinterestBoardSelectionCompleteResponseDto":{"type":"object","properties":{"message":{"type":"string"},"redirect_url":{"type":"string","description":"Redirect URL with connection params (if provided)"},"account":{"$ref":"#/components/schemas/PinterestBoardSelectionCompleteAccountDto"}},"additionalProperties":false},"PendingOAuthSelectionResourceDto":{"type":"object","properties":{"id":{"type":"string","example":"12345","minLength":1,"maxLength":256},"name":{"type":"string","example":"Acme Corp","minLength":1,"maxLength":256},"urn":{"type":"string","example":"urn:li:organization:12345","description":"Canonical LinkedIn organization URN, present only for LinkedIn."}},"required":["id","name"]},"PendingOAuthDataResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","pinterest","snapchat"]},"profileId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"expiresIn":{"type":"number","minimum":0,"maximum":600,"example":599,"description":"Whole seconds remaining before this public projection expires."},"selectionType":{"type":"string","enum":["organizations","boards","profiles"]},"organizations":{"type":"array","items":{"$ref":"#/components/schemas/PendingOAuthSelectionResourceDto"}},"boards":{"type":"array","items":{"$ref":"#/components/schemas/PendingOAuthSelectionResourceDto"}},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/PendingOAuthSelectionResourceDto"}}},"required":["platform","profileId","expiresIn","selectionType"]},"SnapchatSelectablePublicProfileDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Snapchat Public Profile ID."},"display_name":{"type":"string","minLength":1,"maxLength":256},"username":{"type":"string","minLength":1,"maxLength":128},"profile_image_url":{"type":"string","format":"uri","maxLength":4096},"subscriber_count":{"type":"number","minimum":0}},"additionalProperties":false},"SnapchatProfileSelectionResponseDto":{"type":"object","properties":{"publicProfiles":{"type":"array","items":{"$ref":"#/components/schemas/SnapchatSelectablePublicProfileDto"}}},"additionalProperties":false},"SnapchatSelectedPublicProfileRequestDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display_name":{"type":"string","minLength":1,"maxLength":256},"username":{"type":"string","minLength":1,"maxLength":128},"profile_image_url":{"type":"string","format":"uri","maxLength":4096},"subscriber_count":{"type":"number","minimum":0}},"additionalProperties":false,"required":["id","display_name"]},"SnapchatProfileSelectionRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Your Zernio profile ID."},"selectedPublicProfile":{"$ref":"#/components/schemas/SnapchatSelectedPublicProfileRequestDto"},"tempToken":{"type":"string","minLength":1,"maxLength":8192},"userProfile":{"type":"object","additionalProperties":true,"description":"User profile data from the OAuth redirect."},"refreshToken":{"type":"string","minLength":1,"maxLength":8192},"expiresIn":{"type":"number","minimum":1},"redirect_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["profileId","selectedPublicProfile","tempToken","userProfile"]},"SnapchatProfileSelectionAccountDto":{"type":"object","properties":{"accountId":{"type":"string"},"platform":{"type":"string","enum":["snapchat"]},"username":{"type":"string"},"displayName":{"type":"string"},"profilePicture":{"type":"string","format":"uri"},"isActive":{"type":"boolean"},"publicProfileName":{"type":"string"}},"additionalProperties":false},"SnapchatProfileSelectionCompleteResponseDto":{"type":"object","properties":{"message":{"type":"string"},"redirect_url":{"type":"string","format":"uri"},"account":{"$ref":"#/components/schemas/SnapchatProfileSelectionAccountDto"}},"additionalProperties":false},"TelegramConnectDirectRequestDto":{"type":"object","properties":{"chatId":{"type":"string","example":"-1001234567890"},"profileId":{"type":"string","example":"6507a1b2c3d4e5f6a7b8c9d0"}},"additionalProperties":false,"required":["chatId","profileId"]},"TelegramConnectAccountDto":{"type":"object","properties":{"_id":{"type":"string","example":"64e1f0a9e2b5af0012ab34cd"},"platform":{"type":"string","enum":["telegram"],"example":"telegram"},"username":{"type":"string","example":"mychannel"},"displayName":{"type":"string","example":"My Channel"},"isActive":{"type":"boolean","example":true},"chatType":{"type":"string","enum":["channel","group","supergroup","private"]}},"additionalProperties":false,"required":["_id","platform","username","displayName","isActive","chatType"]},"TelegramConnectDirectResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Telegram channel connected successfully"},"account":{"$ref":"#/components/schemas/TelegramConnectAccountDto"}},"additionalProperties":false,"required":["message","account"]},"WhatsAppEmbeddedSignupRequestDto":{"type":"object","properties":{"code":{"type":"string","minLength":16,"maxLength":8192,"description":"One-time authorization code emitted by Meta Embedded Signup."},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"wabaId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"phoneNumberId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"isCoexistence":{"type":"boolean","description":"Whether the number remains active in WhatsApp Business App."},"expectedPhoneNumber":{"type":"string","minLength":7,"maxLength":64}},"additionalProperties":false,"required":["code","profileId"]},"WhatsAppConnectedAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["whatsapp"]},"username":{"type":"string","minLength":1,"maxLength":64},"displayName":{"type":"string","minLength":1,"maxLength":256},"isActive":{"type":"boolean"},"phoneNumber":{"type":"string","minLength":1,"maxLength":64},"verifiedName":{"type":"string","minLength":1,"maxLength":256},"qualityRating":{"type":"string","minLength":1,"maxLength":64}},"additionalProperties":false,"required":["accountId","platform","username","displayName","isActive","phoneNumber"]},"WhatsAppConnectResponseDto":{"type":"object","properties":{"message":{"type":"string"},"registrationWarning":{"type":"string"},"webhookNotice":{"type":"string","maxLength":1024},"redirect_url":{"type":"string","format":"uri"},"account":{"$ref":"#/components/schemas/WhatsAppConnectedAccountDto"}},"additionalProperties":false,"required":["message","account"]},"WhatsAppCredentialsConnectRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accessToken":{"type":"string","minLength":16,"maxLength":8192},"wabaId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"phoneNumberId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"pin":{"type":"string","pattern":"^\\d{6}$"}},"additionalProperties":false,"required":["profileId","accessToken","wabaId","phoneNumberId"]},"WhatsAppConnectPhoneNumberDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"display_phone_number":{"type":"string","minLength":1,"maxLength":64},"verified_name":{"type":"string","minLength":1,"maxLength":256},"quality_rating":{"type":"string","minLength":1,"maxLength":64},"name_status":{"type":"string","minLength":1,"maxLength":64},"messaging_limit_tier":{"type":"string","minLength":1,"maxLength":64},"wabaId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"wabaName":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false,"required":["id","display_phone_number","verified_name","quality_rating","wabaId","wabaName"]},"WhatsAppPhoneNumberListResponseDto":{"type":"object","properties":{"phoneNumbers":{"minItems":1,"maxItems":2000,"type":"array","items":{"$ref":"#/components/schemas/WhatsAppConnectPhoneNumberDto"}}},"additionalProperties":false,"required":["phoneNumbers"]},"WhatsAppPhoneSelectionRequestDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"phoneNumberId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"wabaId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"tempToken":{"type":"string","minLength":16,"maxLength":8192},"userProfile":{"type":"object","additionalProperties":true,"description":"Optional bounded user-profile passthrough from Embedded Signup."},"redirect_url":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["profileId","phoneNumberId","wabaId","tempToken"]},"PostMediaItemDto":{"type":"object","properties":{"mediaId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","pattern":"^[0-9a-f]{24}$","description":"Team-owned media id."},"altText":{"type":"string","maxLength":10000,"example":"A product dashboard showing weekly growth.","description":"Accessibility description for this ordered attachment. Empty string is preserved intentionally."}},"required":["mediaId"]},"GenericCreatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"mastodon","description":"Existing v1 target shape for every supported platform except Pinterest."},"accountId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"customContent":{"type":"string","description":"Target-specific text. Omitted inherits the root post content."},"customMedia":{"maxItems":35,"description":"Ordered team-owned media override. Omitted inherits root media; an empty array deliberately publishes without root media.","type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"scheduledFor":{"type":"string","format":"date-time","description":"Target-specific dispatch time. Omitted inherits the root schedule."},"options":{"type":"object","additionalProperties":true,"example":{"__simulate":"rate_limited"}},"platformSpecificData":{"type":"object","additionalProperties":true,"description":"Zernio-compatible alias of options. A target must not send both fields."}},"additionalProperties":false,"required":["platform","accountId"]},"PinterestPostOptionsDto":{"type":"object","properties":{"boardId":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[1-9][0-9]{0,19}$","example":"200000000000000001","description":"Positive numeric Pinterest board id. It must identify the board selected by the connected account."},"title":{"type":"string","maxLength":100,"example":"A product launch Pin","description":"Optional Pin title. When omitted, the Pinterest adapter uses the first non-empty description line; if none exists, the title is omitted."},"link":{"type":"string","format":"uri","maxLength":2048,"example":"https://www.example.com/products/launch","description":"Destination URI. At runtime the Pinterest adapter accepts only trimmed public HTTPS URLs without credentials, fragments, private/reserved hosts or known URL-shortener hosts."},"altText":{"type":"string","maxLength":500,"deprecated":true,"example":"A ceramic vase beside a sunlit window.","description":"Legacy alias for accessibility text. Canonical callers use mediaItems[].altText, or validate media descriptor altText for dry runs."},"boardSectionId":{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64,"example":"300000000000000000001","description":"Optional positive numeric Pinterest board-section id, bounded to the canonical public provider-id envelope."},"isAiGenerated":{"type":"boolean","default":false,"example":true,"description":"When true, sends Pinterest's AI_MODIFIED disclosure. False omits the disclosure."},"coverImageUrl":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/pinterest/video-cover.jpg","description":"Optional public HTTPS cover image URL for a video Pin. Mutually exclusive with coverImageKeyFrameTime."},"coverImageKeyFrameTime":{"type":"integer","minimum":0,"maximum":900,"example":0,"description":"Optional whole-second video keyframe used as the Pin cover. Defaults to 0 when no coverImageUrl is supplied and is mutually exclusive with it."}},"additionalProperties":false,"required":["boardId"]},"PinterestCreatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["pinterest"],"example":"pinterest"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"customContent":{"type":"string"},"customMedia":{"maxItems":35,"type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"scheduledFor":{"type":"string","format":"date-time"},"options":{"$ref":"#/components/schemas/PinterestPostOptionsDto"},"platformSpecificData":{"description":"Zernio-compatible alias of options. A target must not send both fields.","allOf":[{"$ref":"#/components/schemas/PinterestPostOptionsDto"}]}},"additionalProperties":false,"required":["platform","accountId"]},"ExternalPostMediaItemDto":{"type":"object","properties":{"type":{"type":"string","enum":["image","video"]},"url":{"type":"string","nullable":true,"format":"uri","maxLength":4096},"thumbnail":{"type":"string","nullable":true,"format":"uri","maxLength":4096},"altText":{"type":"string","maxLength":10000},"mediaStatus":{"type":"string","enum":["available","unavailable"]},"unavailableReason":{"type":"string","enum":["platform_withheld"]}},"additionalProperties":false,"required":["type","url"]},"ExternalPostListItemDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"accountId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"twitter","description":"Derived from the account row, never sent by the client."},"platformPostId":{"type":"string","example":"1789234567890123456"},"content":{"type":"string","nullable":true,"example":"Something we posted straight from the app.","description":"Exactly what was reported; null when no content was supplied."},"mediaItems":{"description":"Provider-sourced media snapshot. Omitted when the sync caller did not provide one; an empty array is preserved.","type":"array","items":{"$ref":"#/components/schemas/ExternalPostMediaItemDto"}},"publishedAt":{"type":"string","format":"date-time","example":"2026-08-01T09:00:00.000Z"},"syncedAt":{"type":"string","format":"date-time","example":"2026-08-04T12:00:00.000Z"}},"required":["id","accountId","platform","platformPostId","content","publishedAt","syncedAt"]},"PostListPaginationDto":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500,"example":25},"page":{"type":"integer","minimum":1,"example":1},"total":{"type":"integer","minimum":0,"example":42},"pages":{"type":"integer","minimum":0,"example":2}},"required":["limit"]},"PostListDto":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/PostDetailDto"},{"$ref":"#/components/schemas/ExternalPostListItemDto"}]},"description":"source=zernio returns posts; source=external returns provider history rows, which carry only the columns external_posts persists."},"posts":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/PostDetailDto"},{"$ref":"#/components/schemas/ExternalPostListItemDto"}]},"description":"Zernio-compatible alias of data."},"pagination":{"description":"Compatibility page metadata. Cursor pages omit totals that cannot be derived safely; explicit page reads include page, total and pages.","allOf":[{"$ref":"#/components/schemas/PostListPaginationDto"}]},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"required":["data","posts","pagination","hasMore","nextCursor"]},"CreatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"pinterest"},"accountId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"customContent":{"type":"string","description":"Target-specific text. Omitted inherits the root post content."},"customMedia":{"maxItems":35,"description":"Ordered team-owned media override. Omitted inherits root media; [] overrides it with no media.","type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"scheduledFor":{"type":"string","format":"date-time","description":"Target-specific dispatch time. Omitted inherits the root schedule."},"options":{"type":"object","additionalProperties":true,"example":{"boardId":"200000000000000001"}},"platformSpecificData":{"type":"object","additionalProperties":true,"description":"Zernio-compatible alias of options. A target must not send both fields."}},"description":"Discriminated target union. Pinterest has a closed typed options contract; every other platform keeps the existing generic v1 options object.","oneOf":[{"$ref":"#/components/schemas/GenericCreatePostPlatformDto"},{"$ref":"#/components/schemas/PinterestCreatePostPlatformDto"}],"discriminator":{"propertyName":"platform","mapping":{"instagram":"#/components/schemas/GenericCreatePostPlatformDto","facebook":"#/components/schemas/GenericCreatePostPlatformDto","threads":"#/components/schemas/GenericCreatePostPlatformDto","whatsapp":"#/components/schemas/GenericCreatePostPlatformDto","twitter":"#/components/schemas/GenericCreatePostPlatformDto","linkedin":"#/components/schemas/GenericCreatePostPlatformDto","youtube":"#/components/schemas/GenericCreatePostPlatformDto","tiktok":"#/components/schemas/GenericCreatePostPlatformDto","reddit":"#/components/schemas/GenericCreatePostPlatformDto","bluesky":"#/components/schemas/GenericCreatePostPlatformDto","telegram":"#/components/schemas/GenericCreatePostPlatformDto","discord":"#/components/schemas/GenericCreatePostPlatformDto","slack":"#/components/schemas/GenericCreatePostPlatformDto","google_business":"#/components/schemas/GenericCreatePostPlatformDto","snapchat":"#/components/schemas/GenericCreatePostPlatformDto","mastodon":"#/components/schemas/GenericCreatePostPlatformDto","pinterest":"#/components/schemas/PinterestCreatePostPlatformDto"}},"required":["platform","accountId"]},"RecyclingConfigDto":{"type":"object","properties":{"enabled":{"type":"boolean","default":true,"description":"Set false to disable recurring copies while preserving its cadence."},"gap":{"type":"integer","minimum":1,"example":2},"gapFreq":{"type":"string","enum":["week","month"],"default":"month"},"startDate":{"type":"string","format":"date-time","description":"Cycle anchor. Defaults to the resolved post schedule."},"expireCount":{"type":"integer","nullable":true,"minimum":1,"description":"Maximum generated copies; null clears the existing limit on update."},"expireDate":{"type":"string","nullable":true,"format":"date-time","description":"Last allowed occurrence; null clears the existing limit on update."},"contentVariations":{"maxItems":20,"description":"Round-robin base content. Use 2-20 entries, or [] on update to clear it. Target customContent still wins.","type":"array","items":{"type":"string"}}},"additionalProperties":false},"CreatePostDto":{"type":"object","properties":{"title":{"type":"string","maxLength":10000,"description":"Durable root title. YouTube consumes it natively unless that target supplies options.title; YouTube limits it to 100 characters."},"content":{"type":"string","example":"Hello from zumpo","description":"Post text. May be omitted or blank only when at least one owned media attachment is supplied; each target adapter still enforces its provider content contract."},"tags":{"maxItems":100,"description":"Durable keywords. Exact duplicates are removed; YouTube consumes them natively and enforces 100 characters per tag and 500 combined.","type":"array","items":{"type":"string"}},"hashtags":{"maxItems":100,"description":"Reference-only hashtags; content is never mutated from this list.","type":"array","items":{"type":"string"}},"mentions":{"maxItems":100,"description":"Reference-only mentions. Provider-native mentions must still be embedded in content/options.","type":"array","items":{"type":"string"}},"crosspostingEnabled":{"type":"boolean","default":true,"description":"Durable caller intent. It does not create targets or synthesize provider-side crossposts."},"metadata":{"type":"object","additionalProperties":true,"description":"Bounded non-secret JSON metadata, echoed in post webhook payloads. Credential-like field names are rejected."},"platforms":{"maxItems":100,"description":"Required and non-empty for every non-draft scheduling mode; drafts persist no targets. At most 100 targets per post.","type":"array","items":{"$ref":"#/components/schemas/CreatePostPlatformDto"}},"tiktokSettings":{"type":"object","additionalProperties":true,"description":"Root TikTok compatibility settings normalized into canonical adapter options for every TikTok target; per-target values win."},"facebookSettings":{"type":"object","additionalProperties":true,"description":"Root Facebook settings normalized into each Facebook target adapter options; direct per-target values and nested per-target facebookSettings win."},"mediaIds":{"maxItems":35,"description":"Ordered team-owned media ids. Each target is constrained by its platform-specific capability.","example":["a1b2c3d4e5f6a7b8c9d0e1f2"],"type":"array","items":{"type":"string"}},"mediaItems":{"maxItems":35,"description":"Ordered team-owned media attachments with optional accessibility text. Mutually exclusive with mediaIds.","type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"scheduledFor":{"type":"string","format":"date-time","example":"2026-07-30T09:00:00.000Z"},"publishNow":{"type":"boolean","default":false,"example":true},"isDraft":{"type":"boolean","default":false,"example":true},"recycling":{"description":"Automatically creates scheduled copies after the source is published. YouTube and TikTok targets are not eligible.","allOf":[{"$ref":"#/components/schemas/RecyclingConfigDto"}]},"timezone":{"type":"string","example":"Europe/Istanbul","description":"IANA timezone for non-queue schedules. In queue mode, when supplied it must match the selected queue timezone."},"exactTiming":{"type":"boolean","default":false,"example":true},"queuedFromProfile":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Selects recurring queue mode. If queueId is omitted, this profile must contain exactly one queue."},"queueId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3","description":"Queue to allocate from. Optional only when queuedFromProfile contains exactly one queue."},"skipDuplicateCheck":{"type":"boolean","default":false,"description":"Bypasses only the 24-hour content duplicate fence; request replay remains active."}},"additionalProperties":false},"PostQueueSlotDto":{"type":"object","properties":{"id":{"type":"string","example":"weekday-morning"},"dayOfWeek":{"type":"number","minimum":0,"maximum":6,"example":1},"time":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","example":"09:30"}},"required":["id","dayOfWeek","time"]},"RecyclingStateDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"gap":{"type":"integer","minimum":1},"gapFreq":{"type":"string","enum":["week","month"]},"startDate":{"type":"string","format":"date-time"},"expireCount":{"type":"integer","minimum":1},"expireDate":{"type":"string","format":"date-time"},"contentVariations":{"maxItems":20,"type":"array","items":{"type":"string"}},"contentVariationIndex":{"type":"integer","minimum":0},"recycleCount":{"type":"integer","minimum":0},"nextRecycleAt":{"type":"string","format":"date-time"},"lastRecycledAt":{"type":"string","format":"date-time"}},"required":["enabled","contentVariations","contentVariationIndex","recycleCount"]},"PostResponsePlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"mastodon"},"accountId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"customContent":{"type":"string","description":"Stored target-specific text override. Absent when root content is inherited."},"customMedia":{"maxItems":35,"description":"Stored target-specific ordered media override. Absent when root media is inherited; [] is an explicit no-media override.","type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"status":{"type":"string","enum":["scheduled","queued","publishing","published","failed","held","cancelled"],"example":"scheduled"},"scheduledFor":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"},"platformPostId":{"type":"string","example":"1900000000000000001"},"platformPostUrl":{"type":"string","format":"uri","example":"https://social.example/posts/1900000000000000001"},"publishedAt":{"type":"string","format":"date-time","example":"2026-07-29T09:00:05.000Z"},"deletedAt":{"type":"string","format":"date-time","description":"Provider-observed native deletion time; present only after deletion is detected."},"platformSpecificData":{"type":"object","additionalProperties":true,"example":{"visibility":"unlisted"},"description":"The exact platforms[].options object stored for this target at create time. Absent when no options were recorded for the row."},"isTrialReel":{"type":"boolean","enum":[true],"description":"Present and true only when this Instagram Reel was created with persisted trialParams."},"trialGraduationStrategy":{"type":"string","enum":["MANUAL","SS_PERFORMANCE"],"description":"Exact creation-time Instagram Trial Reel graduation strategy."},"errorMessage":{"type":"string","example":"Validation failed: Text character limit of 500 exceeded","description":"Provider failure text recorded by the dispatcher on the last delivery attempt. UNSTABLE free text — do not branch on it. Absent until a delivery attempt failed."},"errorCategory":{"type":"string","enum":["auth_expired","user_content","user_abuse","account_issue","platform_rejected","platform_error","platform_rate_limit","quota_exhausted","system_error","unknown"],"description":"Stable error category derived from the durable machine error code, never from errorMessage."},"errorSource":{"type":"string","enum":["user","platform","system"],"description":"Stable error origin derived from the durable machine error code."}},"required":["platform","accountId","status"]},"PostResponseMediaItemDto":{"type":"object","properties":{"mediaId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","pattern":"^[0-9a-f]{24}$","description":"Team-owned media id."},"altText":{"type":"string","maxLength":10000,"example":"A product dashboard showing weekly growth.","description":"Accessibility description for this ordered attachment. Empty string is preserved intentionally."},"type":{"type":"string","enum":["image","video","gif","document"],"example":"image","description":"Durable media kind. GIF is derived only from an image attachment with image/gif MIME metadata."},"mimeType":{"type":"string","example":"image/png","description":"Verified MIME type, falling back to the persisted upload expectation."},"size":{"type":"integer","minimum":0,"example":4096,"description":"Verified byte size, falling back to the persisted upload expectation."}},"required":["mediaId"]},"CreatedPostDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"_id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Zernio-compatible alias of the canonical zumpo `id`."},"profileId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"content":{"type":"string","example":"Hello from zumpo"},"title":{"type":"string","maxLength":10000},"tags":{"maxItems":100,"type":"array","items":{"type":"string"}},"hashtags":{"maxItems":100,"type":"array","items":{"type":"string"}},"mentions":{"maxItems":100,"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","private","unlisted"]},"metadata":{"type":"object","additionalProperties":true,"description":"Bounded non-secret metadata supplied by the caller."},"status":{"type":"string","enum":["draft","scheduled","queued","publishing","published","partial","failed","cancelled"],"example":"scheduled"},"scheduledFor":{"type":"string","nullable":true,"format":"date-time","example":"2026-07-29T09:00:00.000Z"},"timezone":{"type":"string","example":"Europe/Istanbul"},"scheduleKind":{"type":"string","nullable":true,"enum":["absolute","recurring"],"example":"absolute"},"exactTiming":{"type":"boolean","example":true},"scheduleAdjusted":{"type":"boolean","example":false},"queueId":{"type":"string","nullable":true,"example":null},"queueSlot":{"nullable":true,"example":null,"type":"object","allOf":[{"$ref":"#/components/schemas/PostQueueSlotDto"}]},"recycling":{"description":"Durable recurring configuration and runtime cursor.","allOf":[{"$ref":"#/components/schemas/RecyclingStateDto"}]},"recycledFromPostId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Original source post for a generated recurring copy."},"queuedFromProfile":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4","description":"Present only for a post allocated from a recurring queue; derived from its durable profile binding."},"platforms":{"description":"Zernio-compatible target projection. Omitted on collection reads that do not load target relations.","type":"array","items":{"$ref":"#/components/schemas/PostResponsePlatformDto"}},"mediaItems":{"description":"Zernio-compatible durable attachment projection. Omitted on collection reads that do not load media relations.","type":"array","items":{"$ref":"#/components/schemas/PostResponseMediaItemDto"}},"createdAt":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"}},"required":["id","_id","profileId","content","status","scheduledFor","timezone","scheduleKind","exactTiming","scheduleAdjusted","queueId","queueSlot","createdAt","updatedAt"]},"CreatedPostTargetDto":{"type":"object","properties":{"id":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"accountId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"platform":{"type":"string","example":"mastodon"},"status":{"type":"string","enum":["scheduled","queued","publishing","published","failed","held","cancelled"],"example":"scheduled"},"scheduledFor":{"type":"string","nullable":true,"format":"date-time","example":"2026-07-29T09:00:00.000Z"}},"required":["id","accountId","platform","status","scheduledFor"]},"CreatePostResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Post scheduled successfully"},"existingPost":{"type":"boolean","default":false,"description":"True only for a five-minute request replay."},"post":{"$ref":"#/components/schemas/CreatedPostDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatedPostTargetDto"}}},"required":["message","existingPost","post","targets"]},"BulkPostErrorDto":{"type":"object","properties":{"type":{"type":"string","example":"invalid_request_error"},"code":{"type":"string","example":"invalid_platform"},"message":{"type":"string","description":"Human-readable message. UNSTABLE — do not branch on it.","example":"platform is not supported"},"param":{"type":"string","example":"platforms.0.platform"}},"required":["type","code","message"]},"BulkPostResultDto":{"type":"object","properties":{"row":{"type":"number","example":1,"description":"Data row number, 1-based, excluding the header row — the line the customer sees."},"status":{"type":"number","example":202,"description":"Per-row status: the same code POST /v1/posts would have returned for this row."},"post":{"$ref":"#/components/schemas/CreatedPostDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatedPostTargetDto"}},"error":{"$ref":"#/components/schemas/BulkPostErrorDto"}},"required":["row","status"]},"BulkPostsResponseDto":{"type":"object","properties":{"dryRun":{"type":"boolean","example":false,"description":"When true nothing was persisted; every row was rolled back."},"total":{"type":"number","example":3},"succeeded":{"type":"number","example":2},"failed":{"type":"number","example":1},"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkPostResultDto"}}},"required":["dryRun","total","succeeded","failed","results"]},"BulkUploadPostResultDto":{"type":"object","properties":{"rowIndex":{"type":"number","example":1,"minimum":1,"description":"1-based CSV data-row index; the header is excluded."},"ok":{"type":"boolean","example":true},"createdPostId":{"type":"string","example":"65f1c0a9e2b5af0012ab34cd","description":"Created post ID. Omitted for failures and every dry-run result."},"errors":{"minItems":1,"example":["account_not_found"],"description":"Stable Zumpo error codes. Present only when ok is false.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["rowIndex","ok"]},"BulkUploadRateLimitedAccountDto":{"type":"object","properties":{"accountId":{"type":"string"},"platform":{"type":"string"},"username":{"type":"string"},"rateLimitedUntil":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["accountId","platform","username","rateLimitedUntil"]},"BulkUploadPostsResponseDto":{"type":"object","properties":{"total":{"type":"number","example":3,"minimum":1},"valid":{"type":"number","example":2,"minimum":0},"invalid":{"type":"number","example":1,"minimum":0},"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkUploadPostResultDto"}},"warnings":{"example":[],"type":"array","items":{"type":"string"}},"rateLimitedAccounts":{"description":"Structured cooldown metadata when available. Omitted when no row reports an account cooldown.","type":"array","items":{"$ref":"#/components/schemas/BulkUploadRateLimitedAccountDto"}}},"additionalProperties":false,"required":["total","valid","invalid","results","warnings"]},"SyncExternalPostItemDto":{"type":"object","properties":{"accountId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"24 hex account id"},"platformPostId":{"type":"string","example":"1789234567890123456","description":"The id the platform itself assigned. Combined with accountId this is the natural key: re-syncing the same pair updates instead of duplicating."},"publishedAt":{"type":"string","format":"date-time","example":"2026-08-01T09:00:00.000Z","description":"ISO-8601 date-time with an offset or Z, e.g. 2026-08-01T09:00:00Z or 2026-08-01T12:00:00+03:00. Required unless deleted is true. Immutable: re-syncing the same natural key with a different instant answers 409 rather than silently rewriting history."},"content":{"type":"string","nullable":true,"example":"Something we posted straight from the app.","description":"Optional. Changing it is what makes the next sync report \"updated\". Must not contain a NUL (U+0000) character; it is rejected rather than stripped, so what you send is exactly what is stored."},"mediaItems":{"maxItems":20,"description":"Actual provider media metadata. Omitted on re-sync to preserve the prior snapshot; [] explicitly clears it.","type":"array","items":{"$ref":"#/components/schemas/ExternalPostMediaItemDto"}},"deleted":{"type":"boolean","default":false,"example":true,"description":"Assert the post no longer exists on the platform. When true, publishedAt and content must be absent. The resulting post.external.deleted event carries source: 'client_assertion' because zumpo did not observe this."}},"required":["accountId","platformPostId"]},"SyncExternalPostsBodyDto":{"type":"object","properties":{"posts":{"type":"array","items":{"$ref":"#/components/schemas/SyncExternalPostItemDto"}}},"additionalProperties":false,"required":["posts"]},"ExternalPostDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"accountId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"platform":{"type":"string","example":"twitter","description":"Derived from the account, never sent by the client."},"platformPostId":{"type":"string","example":"1789234567890123456"},"mediaItems":{"description":"Exact provider media metadata supplied to this sync operation or retained from an earlier sync.","type":"array","items":{"$ref":"#/components/schemas/ExternalPostMediaItemDto"}},"publishedAt":{"type":"string","format":"date-time","example":"2026-08-01T09:00:00.000Z"},"syncedAt":{"type":"string","format":"date-time","example":"2026-08-04T12:00:00.000Z"}},"required":["id","accountId","platform","platformPostId","publishedAt","syncedAt"]},"SyncExternalPostResultDto":{"type":"object","properties":{"index":{"type":"number","example":0,"description":"0-based index into the submitted posts array."},"status":{"type":"number","example":201,"description":"Per-item status. 200 is overloaded (updated / unchanged / deleted) — branch on `result`, not on this."},"result":{"type":"string","enum":["created","updated","unchanged","deleted"],"example":"created"},"externalPost":{"$ref":"#/components/schemas/ExternalPostDto"},"error":{"$ref":"#/components/schemas/BulkPostErrorDto"}},"required":["index","status"]},"SyncExternalPostsResponseDto":{"type":"object","properties":{"total":{"type":"number","example":4},"created":{"type":"number","example":1},"updated":{"type":"number","example":1},"unchanged":{"type":"number","example":1},"deleted":{"type":"number","example":1},"failed":{"type":"number","example":0},"results":{"type":"array","items":{"$ref":"#/components/schemas/SyncExternalPostResultDto"}}},"required":["total","created","updated","unchanged","deleted","failed","results"]},"RecyclePostDto":{"type":"object","properties":{"platforms":{"description":"Override the copied targets. Omit to reuse the source post targets and options. At most 100 targets per post.","maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/CreatePostPlatformDto"}},"publishNow":{"type":"boolean","default":false,"example":true},"scheduledFor":{"type":"string","format":"date-time","example":"2026-08-10T09:00:00.000Z"},"queuedFromProfile":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"queueId":{"type":"string","example":"d4e5f6a7b8c9d0e1f2a3b4c5"},"timezone":{"type":"string","example":"Europe/Istanbul"},"exactTiming":{"type":"boolean","default":false,"example":true},"skipDuplicateCheck":{"type":"boolean","default":false,"description":"Skip the 24-hour duplicate-content check. Recycling evergreen content within 24 hours of the source needs this; otherwise the request answers 409.","example":true}}},"RecyclePostResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Post scheduled successfully"},"existingPost":{"type":"boolean","default":false,"description":"True only for a five-minute request replay."},"post":{"$ref":"#/components/schemas/CreatedPostDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatedPostTargetDto"}},"sourcePostId":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"The published post this one was recycled from."}},"required":["message","existingPost","post","targets","sourcePostId"]},"PatchPostDto":{"type":"object","properties":{"title":{"type":"string","maxLength":10000,"description":"Omitted preserves the title. YouTube consumes it unless target options.title overrides it."},"content":{"type":"string","example":"Updated post content","description":"Omitted preserves the existing content. Blank text is valid only when the resulting post retains at least one owned media attachment and every target provider accepts it."},"tags":{"maxItems":100,"type":"array","items":{"type":"string"}},"hashtags":{"maxItems":100,"description":"Reference-only; does not mutate content.","type":"array","items":{"type":"string"}},"mentions":{"maxItems":100,"description":"Reference-only; provider mentions remain explicit content/options.","type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","private","unlisted"],"description":"Root visibility intent. It maps only to documented native equivalents (YouTube privacyStatus and Mastodon visibility), and target options win."},"crosspostingEnabled":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":true,"description":"Complete replacement of bounded non-secret post metadata."},"platforms":{"maxItems":100,"description":"Omitted preserves existing targets; supplied replaces the complete target set. At most 100 targets per post.","type":"array","items":{"$ref":"#/components/schemas/CreatePostPlatformDto"}},"tiktokSettings":{"type":"object","additionalProperties":true,"description":"Root TikTok compatibility settings normalized into canonical adapter options for TikTok targets; per-target values win. Requires platforms in the same update."},"facebookSettings":{"type":"object","additionalProperties":true,"description":"Root Facebook settings normalized into Facebook target adapter options. Direct per-target values and nested per-target facebookSettings win. Requires platforms in the same update."},"mediaIds":{"maxItems":35,"description":"Omitted preserves existing media; supplied replaces the complete ordered media set. Each target is constrained by its platform-specific capability.","example":["a1b2c3d4e5f6a7b8c9d0e1f2"],"type":"array","items":{"type":"string"}},"mediaItems":{"maxItems":35,"description":"Omitted preserves existing media metadata; supplied replaces the complete ordered attachment set. Mutually exclusive with mediaIds.","type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"scheduledFor":{"type":"string","format":"date-time","example":"2026-07-30T09:00:00.000Z","description":"Selects a complete absolute scheduling mode. Omitted with every other scheduling field preserves the current schedule."},"publishNow":{"type":"boolean","example":true,"description":"True selects a complete immediate-publish mode. Omitted with every other scheduling field preserves the current schedule."},"isDraft":{"type":"boolean","example":true,"description":"True selects a complete draft mode for an existing draft; a scheduled post cannot be converted back to a draft. Omitted with every other scheduling field preserves the current schedule."},"recycling":{"description":"Merge-patches recurring copy configuration. Published posts accept this field only.","allOf":[{"$ref":"#/components/schemas/RecyclingConfigDto"}]},"timezone":{"type":"string","example":"Europe/Istanbul","description":"Schedule modifier. It cannot replace the schedule without a complete mode selector; when omitted during replacement, the current timezone is preserved."},"exactTiming":{"type":"boolean","example":true,"description":"Schedule modifier. It cannot replace the schedule without a complete mode selector; when omitted during replacement, the current exact-timing choice is preserved."},"queuedFromProfile":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Selects a complete recurring-queue mode. If queueId is omitted, the selected profile must resolve to exactly one queue."},"queueId":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3","description":"Queue modifier for recurring-queue mode. It cannot replace the schedule without queuedFromProfile."},"skipDuplicateCheck":{"type":"boolean","default":false,"description":"Bypasses only the 24-hour content duplicate fence for this patch."}},"additionalProperties":false,"description":"Merge patch. Omitted fields preserve their current values. Scheduling fields may replace the schedule only with a complete scheduling mode; partial schedule field sets are rejected."},"PostDetailDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"_id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Zernio-compatible alias of the canonical zumpo `id`."},"profileId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"content":{"type":"string","example":"Hello from zumpo"},"title":{"type":"string","maxLength":10000},"tags":{"maxItems":100,"type":"array","items":{"type":"string"}},"hashtags":{"maxItems":100,"type":"array","items":{"type":"string"}},"mentions":{"maxItems":100,"type":"array","items":{"type":"string"}},"visibility":{"type":"string","enum":["public","private","unlisted"]},"metadata":{"type":"object","additionalProperties":true,"description":"Bounded non-secret metadata supplied by the caller."},"status":{"type":"string","enum":["draft","scheduled","queued","publishing","published","partial","failed","cancelled"],"example":"scheduled"},"scheduledFor":{"type":"string","nullable":true,"format":"date-time","example":"2026-07-29T09:00:00.000Z"},"timezone":{"type":"string","example":"Europe/Istanbul"},"scheduleKind":{"type":"string","nullable":true,"enum":["absolute","recurring"],"example":"absolute"},"exactTiming":{"type":"boolean","example":true},"scheduleAdjusted":{"type":"boolean","example":false},"queueId":{"type":"string","nullable":true,"example":null},"queueSlot":{"nullable":true,"example":null,"type":"object","allOf":[{"$ref":"#/components/schemas/PostQueueSlotDto"}]},"recycling":{"description":"Durable recurring configuration and runtime cursor.","allOf":[{"$ref":"#/components/schemas/RecyclingStateDto"}]},"recycledFromPostId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Original source post for a generated recurring copy."},"queuedFromProfile":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4","description":"Present only for a post allocated from a recurring queue; derived from its durable profile binding."},"platforms":{"description":"Zernio-compatible target projection. Omitted on collection reads that do not load target relations.","type":"array","items":{"$ref":"#/components/schemas/PostResponsePlatformDto"}},"mediaItems":{"description":"Zernio-compatible durable attachment projection. Omitted on collection reads that do not load media relations.","type":"array","items":{"$ref":"#/components/schemas/PostResponseMediaItemDto"}},"createdAt":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"}},"required":["id","_id","profileId","content","status","scheduledFor","timezone","scheduleKind","exactTiming","scheduleAdjusted","queueId","queueSlot","createdAt","updatedAt"]},"PostDetailResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Post updated successfully","description":"Present on mutation responses; omitted by non-mutation post actions."},"warnings":{"description":"Present on post updates; empty when the update completed without warnings.","type":"array","items":{"type":"string"}},"post":{"$ref":"#/components/schemas/PostDetailDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatedPostTargetDto"}},"mediaIds":{"type":"array","items":{"type":"string"}},"mediaItems":{"type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}}},"required":["post","targets","mediaIds","mediaItems"]},"RetryPostDto":{"type":"object","properties":{"targetIds":{"minItems":1,"uniqueItems":true,"example":["b2c3d4e5f6a7b8c9d0e1f2a3"],"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{24}$"}}},"description":"Retries failed targets only. When targetIds is omitted, every failed target is retried atomically."},"EditPostDto":{"type":"object","properties":{"platform":{"type":"string","enum":["twitter","discord","facebook","reddit","mastodon","google_business"],"example":"twitter","description":"Published target platform. Exactly one published target on this platform is edited."},"content":{"type":"string","minLength":1,"maxLength":40000,"example":"Updated published post text.","description":"Replacement text. The platform-specific limit is enforced at runtime (X weighted 280, Discord 2000, Facebook 5000, Reddit 40000, Mastodon 500, Google Business 1500)."}},"additionalProperties":false,"required":["platform","content"]},"EditPostResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"example":true},"id":{"type":"string","minLength":1,"maxLength":256,"example":"1900000000000000001","description":"Provider post/message ID confirmed by the edit response."},"url":{"type":"string","format":"uri","example":"https://x.com/i/web/status/1900000000000000001"},"message":{"type":"string","example":"twitter post edited successfully"}},"additionalProperties":false,"required":["success","id","url","message"]},"UnpublishPostDto":{"type":"object","properties":{"platform":{"type":"string","enum":["threads","facebook","twitter","linkedin","youtube","pinterest","reddit","bluesky","googlebusiness","telegram"],"example":"threads","description":"The one social platform whose published target(s) must be removed."}},"additionalProperties":false,"required":["platform"]},"UnpublishPostResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Post deleted from threads successfully","description":"Present on mutation responses; omitted by non-mutation post actions."},"warnings":{"description":"Present on post updates; empty when the update completed without warnings.","type":"array","items":{"type":"string"}},"post":{"$ref":"#/components/schemas/PostDetailDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatedPostTargetDto"}},"mediaIds":{"type":"array","items":{"type":"string"}},"mediaItems":{"type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}},"success":{"type":"boolean","example":true}},"required":["post","targets","mediaIds","mediaItems","success"]},"PostDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"Post deleted successfully"}},"additionalProperties":false},"TwitterPostEditHistoryDto":{"type":"object","properties":{"editNumber":{"type":"integer","minimum":1,"example":1},"previousPlatformPostId":{"type":"string","example":"1900000000000000000"},"platformPostId":{"type":"string","example":"1900000000000000001"},"platformPostUrl":{"type":"string","nullable":true,"format":"uri","example":"https://x.com/i/web/status/1900000000000000001"},"previousContent":{"type":"string","nullable":true,"maxLength":10000,"example":"Original published text."},"content":{"type":"string","minLength":1,"maxLength":10000,"example":"Edited text."},"createdAt":{"type":"string","format":"date-time","example":"2026-07-29T09:05:00.000Z"}},"required":["editNumber","previousPlatformPostId","platformPostId","platformPostUrl","previousContent","content","createdAt"]},"HeldTargetDecisionDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"d4e5f6a7b8c9d0e1f2a3b4c5","description":"Pass as the {decisionId} path segment of resumeHeldTarget / cancelHeldTarget."},"heldSince":{"type":"string","format":"date-time","example":"2026-07-29T09:00:00.000Z"},"notifiedAt":{"type":"string","format":"date-time","example":"2026-07-30T09:00:00.000Z","description":"Never earlier than heldSince + 24h; a shorter hold has no decision."}},"required":["id","heldSince","notifiedAt"]},"PostDetailTargetDto":{"type":"object","properties":{"id":{"type":"string","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"accountId":{"type":"string","example":"c3d4e5f6a7b8c9d0e1f2a3b4"},"platform":{"type":"string","example":"mastodon"},"status":{"type":"string","enum":["scheduled","queued","publishing","published","failed","held","cancelled"],"example":"scheduled"},"scheduledFor":{"type":"string","nullable":true,"format":"date-time","example":"2026-07-29T09:00:00.000Z"},"platformPostId":{"type":"string","nullable":true,"example":"1900000000000000001"},"platformPostUrl":{"type":"string","nullable":true,"format":"uri","example":"https://x.com/i/web/status/1900000000000000001"},"editedContent":{"type":"string","nullable":true,"maxLength":10000,"example":"Edited text.","description":"Latest provider-specific replacement text, or null when this target has never been edited."},"editCount":{"type":"integer","minimum":0,"example":1},"lastEditedAt":{"type":"string","nullable":true,"format":"date-time","example":"2026-07-29T09:05:00.000Z"},"editHistory":{"maxItems":5,"description":"Chronological X edit transitions. Empty for non-X targets; X permits at most five edits.","type":"array","items":{"$ref":"#/components/schemas/TwitterPostEditHistoryDto"}},"heldDecision":{"nullable":true,"example":null,"description":"The pending customer decision for this target current hold episode, or null. Null covers three distinct cases: the target is not held, it has been held for less than 24h so no decision exists yet, and the decision was already resolved.","type":"object","allOf":[{"$ref":"#/components/schemas/HeldTargetDecisionDto"}]}},"required":["id","accountId","platform","status","scheduledFor","platformPostId","platformPostUrl","editedContent","editCount","lastEditedAt","editHistory","heldDecision"]},"GetPostResponseDto":{"type":"object","properties":{"post":{"$ref":"#/components/schemas/PostDetailDto"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PostDetailTargetDto"}},"mediaIds":{"type":"array","items":{"type":"string"}},"mediaItems":{"type":"array","items":{"$ref":"#/components/schemas/PostMediaItemDto"}}},"required":["post","targets","mediaIds","mediaItems"]},"QueueSlotDto":{"type":"object","properties":{"id":{"type":"string","minLength":1,"pattern":"^\\S+$","example":"weekday-morning"},"dayOfWeek":{"type":"integer","minimum":0,"maximum":6,"example":1},"time":{"type":"string","pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","example":"09:30"}},"additionalProperties":false,"required":["id","dayOfWeek","time"]},"QueueDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","example":"Editorial"},"slots":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/QueueSlotDto"}},"timezone":{"type":"string","example":"Europe/Istanbul","description":"Canonical IANA timezone"},"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["profileId","name","slots","timezone","id","createdAt","updatedAt"]},"QueueListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QueueDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"required":["data","hasMore","nextCursor"]},"CreateQueueDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"name":{"type":"string","example":"Editorial"},"slots":{"minItems":1,"maxItems":1008,"type":"array","items":{"$ref":"#/components/schemas/QueueSlotDto"}},"timezone":{"type":"string","example":"Europe/Istanbul","description":"Canonical IANA timezone; defaults to the owning profile timezone"}},"required":["profileId","name","slots"]},"UpdateQueueDto":{"type":"object","properties":{"name":{"type":"string","example":"Editorial"},"slots":{"minItems":1,"maxItems":1008,"type":"array","items":{"$ref":"#/components/schemas/QueueSlotDto"}},"timezone":{"type":"string","example":"Europe/Istanbul"}}},"QueueScheduleSlotDto":{"type":"object","properties":{"dayOfWeek":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([0-1][0-9]|2[0-3]):[0-5][0-9]$"}},"additionalProperties":false},"QueueScheduleCompatibilityDto":{"type":"object","properties":{"_id":{"type":"string"},"profileId":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/QueueScheduleSlotDto"}},"active":{"type":"boolean"},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":false},"QueueSlotsResponseDto":{"type":"object","properties":{"exists":{"type":"boolean"},"schedule":{"$ref":"#/components/schemas/QueueScheduleCompatibilityDto"},"nextSlots":{"type":"array","items":{"type":"string","format":"date-time"}}},"additionalProperties":false},"QueueSchedulesResponseDto":{"type":"object","properties":{"queues":{"type":"array","items":{"$ref":"#/components/schemas/QueueScheduleCompatibilityDto"}},"count":{"type":"integer","minimum":0}},"additionalProperties":false},"CreateQueueScheduleRequestDto":{"type":"object","properties":{"profileId":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"slots":{"maxItems":1008,"type":"array","items":{"$ref":"#/components/schemas/QueueScheduleSlotDto"}},"active":{"type":"boolean","default":true}},"additionalProperties":false,"required":["profileId","name","timezone","slots"]},"QueueScheduleMutationResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"schedule":{"$ref":"#/components/schemas/QueueScheduleCompatibilityDto"},"nextSlots":{"type":"array","items":{"type":"string","format":"date-time"}},"reshuffledCount":{"type":"integer","minimum":0},"skippedDailyLimit":{"type":"integer","minimum":0},"isNewQueue":{"type":"boolean"}},"additionalProperties":false},"UpdateQueueScheduleRequestDto":{"type":"object","properties":{"profileId":{"type":"string"},"queueId":{"type":"string"},"name":{"type":"string"},"timezone":{"type":"string"},"slots":{"maxItems":1008,"type":"array","items":{"$ref":"#/components/schemas/QueueScheduleSlotDto"}},"active":{"type":"boolean","default":true},"setAsDefault":{"type":"boolean"},"reshuffleExisting":{"type":"boolean","default":false}},"additionalProperties":false,"required":["profileId","timezone","slots"]},"QueueScheduleDeleteResponseDto":{"type":"object","properties":{"success":{"type":"boolean"},"deleted":{"type":"boolean"},"deletedCount":{"type":"integer","minimum":0},"message":{"type":"string"}},"additionalProperties":false},"QueueSchedulePreviewResponseDto":{"type":"object","properties":{"profileId":{"type":"string"},"queueId":{"type":"string"},"queueName":{"type":"string"},"count":{"type":"integer","minimum":0},"slots":{"type":"array","items":{"type":"string","format":"date-time"}}},"additionalProperties":false},"QueueScheduleNextSlotResponseDto":{"type":"object","properties":{"profileId":{"type":"string"},"nextSlot":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"queueId":{"type":"string"},"queueName":{"type":"string"}},"additionalProperties":false},"DirectMediaUploadResponseDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Bearer-free signed URL for the temporary object; valid for seven days."},"filename":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2.png","description":"Server-generated unique filename. The client filename is never reflected."},"contentType":{"type":"string","example":"image/png"},"size":{"type":"integer","minimum":1,"maximum":26214400}},"additionalProperties":false,"required":["url","filename","contentType","size"]},"MediaDto":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"kind":{"type":"string","enum":["image","video","document"]},"status":{"type":"string","enum":["pending_upload","uploaded","processing","ready","failed"]},"mime":{"type":"string","example":"image/jpeg"},"sizeBytes":{"type":"number","example":52341}},"required":["id","kind","status","mime","sizeBytes"]},"PresignMediaDto":{"type":"object","properties":{"mime":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/quicktime","video/webm","application/pdf","application/zip","application/octet-stream"]},"sizeBytes":{"type":"number","minimum":1,"maximum":52428800},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["mime","sizeBytes"]},"MediaUploadDto":{"type":"object","properties":{"method":{"type":"string","enum":["PUT"]},"url":{"type":"string","format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"expiresAt":{"type":"string","format":"date-time"}},"required":["method","url","headers","expiresAt"]},"PresignMediaResponseDto":{"type":"object","properties":{"media":{"$ref":"#/components/schemas/MediaDto"},"upload":{"$ref":"#/components/schemas/MediaUploadDto"}},"required":["media","upload"]},"LegacyValidatePostRequestDto":{"type":"object","properties":{},"description":"Additive validation request union: the original single-target body or a create-like multi-target dry run.","oneOf":[{"$ref":"#/components/schemas/LegacyValidatePostDto"},{"$ref":"#/components/schemas/CreateLikeValidatePostDto"}]},"LegacyValidatePostDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"bluesky"},"content":{"type":"string","example":"Hello from zumpo","maxLength":50000},"options":{"type":"object","additionalProperties":true,"example":{}}},"additionalProperties":false,"description":"Discriminated validation request. Pinterest uses its closed public options contract; other platforms retain the generic v1 options object.","oneOf":[{"$ref":"#/components/schemas/GenericValidatePostDto"},{"$ref":"#/components/schemas/PinterestValidatePostDto"}],"discriminator":{"propertyName":"platform","mapping":{"instagram":"#/components/schemas/GenericValidatePostDto","facebook":"#/components/schemas/GenericValidatePostDto","threads":"#/components/schemas/GenericValidatePostDto","whatsapp":"#/components/schemas/GenericValidatePostDto","twitter":"#/components/schemas/GenericValidatePostDto","linkedin":"#/components/schemas/GenericValidatePostDto","youtube":"#/components/schemas/GenericValidatePostDto","tiktok":"#/components/schemas/GenericValidatePostDto","reddit":"#/components/schemas/GenericValidatePostDto","bluesky":"#/components/schemas/GenericValidatePostDto","telegram":"#/components/schemas/GenericValidatePostDto","discord":"#/components/schemas/GenericValidatePostDto","slack":"#/components/schemas/GenericValidatePostDto","google_business":"#/components/schemas/GenericValidatePostDto","snapchat":"#/components/schemas/GenericValidatePostDto","mastodon":"#/components/schemas/GenericValidatePostDto","pinterest":"#/components/schemas/PinterestValidatePostDto"}},"required":["platform","content"]},"GenericValidatePostDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"bluesky"},"content":{"type":"string","example":"Hello from zumpo","maxLength":50000},"options":{"type":"object","additionalProperties":true,"example":{}}},"additionalProperties":false,"required":["platform","content"]},"PinterestValidatePostDto":{"type":"object","properties":{"platform":{"type":"string","enum":["pinterest"],"example":"pinterest"},"content":{"type":"string","example":"A description for the Pin.","maxLength":50000},"options":{"$ref":"#/components/schemas/PinterestPostOptionsDto"}},"additionalProperties":false,"required":["platform","content","options"]},"CreateLikeValidatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"pinterest"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Optional compatibility field only; no account or credential lookup occurs."},"options":{"type":"object","additionalProperties":true}},"additionalProperties":false,"description":"Closed dry-run target union. accountId is optional and is never resolved during validation.","oneOf":[{"$ref":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto"},{"$ref":"#/components/schemas/PinterestCreateLikeValidatePostPlatformDto"}],"discriminator":{"propertyName":"platform","mapping":{"instagram":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","facebook":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","threads":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","whatsapp":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","twitter":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","linkedin":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","youtube":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","tiktok":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","reddit":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","bluesky":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","telegram":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","discord":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","slack":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","google_business":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","snapchat":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","mastodon":"#/components/schemas/GenericCreateLikeValidatePostPlatformDto","pinterest":"#/components/schemas/PinterestCreateLikeValidatePostPlatformDto"}},"required":["platform"]},"ValidatePostMediaItemDto":{"type":"object","properties":{},"description":"Closed metadata-only dry-run descriptor. Validation does not fetch, upload or persist media.","oneOf":[{"$ref":"#/components/schemas/ValidateImageMediaItemDto"},{"$ref":"#/components/schemas/ValidateVideoMediaItemDto"},{"$ref":"#/components/schemas/ValidateGifMediaItemDto"},{"$ref":"#/components/schemas/ValidateDocumentMediaItemDto"}],"discriminator":{"propertyName":"type","mapping":{"image":"#/components/schemas/ValidateImageMediaItemDto","video":"#/components/schemas/ValidateVideoMediaItemDto","gif":"#/components/schemas/ValidateGifMediaItemDto","document":"#/components/schemas/ValidateDocumentMediaItemDto"}}},"CreateLikeValidatePostDto":{"type":"object","properties":{"content":{"type":"string","example":"Hello from zumpo","maxLength":50000,"description":"Optional post text. It may be omitted or blank for media-only dry runs."},"platforms":{"minItems":1,"maxItems":100,"description":"Dry-run targets. accountId may be supplied for create-shape compatibility but is never resolved.","type":"array","items":{"$ref":"#/components/schemas/CreateLikeValidatePostPlatformDto"}},"mediaItems":{"maxItems":35,"description":"Metadata-only dry-run descriptors; this endpoint never fetches, uploads or persists media.","type":"array","items":{"$ref":"#/components/schemas/ValidatePostMediaItemDto"}}},"additionalProperties":false,"required":["platforms"]},"GenericCreateLikeValidatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"example":"bluesky"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Optional create-shape compatibility field. Validation never looks up this account or its credentials."},"options":{"type":"object","additionalProperties":true,"example":{}}},"additionalProperties":false,"required":["platform"]},"PinterestCreateLikeValidatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["pinterest"],"example":"pinterest"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Optional create-shape compatibility field. Validation never looks up this account or its credentials."},"options":{"$ref":"#/components/schemas/PinterestPostOptionsDto"}},"additionalProperties":false,"required":["platform","options"]},"ValidateMediaItemMetadataDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/media.jpg","description":"Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."},"title":{"type":"string","minLength":1,"maxLength":500,"description":"Optional bounded media title."},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Optional bounded filename."},"size":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."},"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Backward-compatible byte-size alias. If size is also supplied, both values must match."},"thumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."},"instagramThumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."},"tiktokProcessed":{"type":"boolean"}}},"ValidateImageMediaItemDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/media.jpg","description":"Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."},"title":{"type":"string","minLength":1,"maxLength":500,"description":"Optional bounded media title."},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Optional bounded filename."},"size":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."},"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Backward-compatible byte-size alias. If size is also supplied, both values must match."},"thumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."},"instagramThumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."},"tiktokProcessed":{"type":"boolean"},"type":{"type":"string","enum":["image"],"example":"image"},"mimeType":{"type":"string","example":"image/jpeg","minLength":1,"maxLength":255,"description":"Required declared image media type; no remote content is fetched to infer it."},"altText":{"type":"string","maxLength":10000,"example":"A ceramic vase beside a sunlit window.","description":"Canonical image accessibility text forwarded unchanged to the adapter TargetMedia descriptor."},"aspectRatio":{"type":"string","example":"1:1","minLength":1,"maxLength":32}},"additionalProperties":false,"anyOf":[{"required":["size"]},{"required":["sizeBytes"]}],"required":["type","mimeType"]},"ValidateVideoMediaItemDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/media.jpg","description":"Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."},"title":{"type":"string","minLength":1,"maxLength":500,"description":"Optional bounded media title."},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Optional bounded filename."},"size":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."},"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Backward-compatible byte-size alias. If size is also supplied, both values must match."},"thumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."},"instagramThumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."},"tiktokProcessed":{"type":"boolean"},"type":{"type":"string","enum":["video"],"example":"video"},"mimeType":{"type":"string","example":"video/mp4","minLength":1,"maxLength":255,"description":"Required declared video media type; no remote content is fetched to infer it."},"durationSec":{"type":"number","minimum":0,"example":12.5},"aspectRatio":{"type":"string","example":"9:16","minLength":1,"maxLength":32}},"additionalProperties":false,"anyOf":[{"required":["size"]},{"required":["sizeBytes"]}],"required":["type","mimeType"]},"ValidateGifMediaItemDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/media.jpg","description":"Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."},"title":{"type":"string","minLength":1,"maxLength":500,"description":"Optional bounded media title."},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Optional bounded filename."},"size":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."},"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Backward-compatible byte-size alias. If size is also supplied, both values must match."},"thumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."},"instagramThumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."},"tiktokProcessed":{"type":"boolean"},"type":{"type":"string","enum":["gif"],"example":"gif"},"mimeType":{"type":"string","enum":["image/gif"],"description":"Optional for type=gif because validatePost maps that discriminator to image/gif without fetching the URL."},"altText":{"type":"string","maxLength":10000,"example":"An animated launch sequence."},"aspectRatio":{"type":"string","example":"1:1","minLength":1,"maxLength":32}},"additionalProperties":false,"anyOf":[{"required":["size"]},{"required":["sizeBytes"]}],"required":["type"]},"ValidateDocumentMediaItemDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://cdn.example.com/media.jpg","description":"Optional HTTPS reference accepted for request-shape compatibility. validatePost never fetches it."},"title":{"type":"string","minLength":1,"maxLength":500,"description":"Optional bounded media title."},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"Optional bounded filename."},"size":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Official Zernio byte-size field. Required unless the legacy sizeBytes alias is supplied."},"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991,"example":524288,"description":"Backward-compatible byte-size alias. If size is also supplied, both values must match."},"thumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional HTTPS thumbnail reference. It is syntax-checked but never fetched by validatePost."},"instagramThumbnail":{"type":"string","format":"uri","maxLength":2048,"description":"Optional Instagram HTTPS cover reference. It is syntax-checked but never fetched by validatePost."},"tiktokProcessed":{"type":"boolean"},"type":{"type":"string","enum":["document"],"example":"document"},"mimeType":{"type":"string","enum":["application/pdf","application/zip","application/octet-stream"],"example":"application/pdf"}},"additionalProperties":false,"anyOf":[{"required":["size"]},{"required":["sizeBytes"]}],"required":["type","mimeType"]},"ValidatePostPlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","googlebusiness"],"example":"youtube"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2","description":"Optional create-shape compatibility field. Validation never looks up this account or its credentials."},"customContent":{"type":"string","example":"Platform-specific post text.","maxLength":50000,"description":"Overrides root content for this validation target."},"platformSpecificData":{"type":"object","additionalProperties":true,"example":{},"description":"Platform adapter options. Values are passed through the same adapter validator used by publishing."},"customMedia":{"maxItems":35,"description":"Per-target metadata-only media overrides. The endpoint validates declared metadata and never fetches remote URLs.","type":"array","items":{"$ref":"#/components/schemas/ValidatePostMediaItemDto"}}},"additionalProperties":false,"required":["platform"]},"ValidatePostLengthPlatformDto":{"type":"object","properties":{"count":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"valid":{"type":"boolean"}},"additionalProperties":false,"required":["count","limit","valid"]},"ValidateMediaRequestDto":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https://example.com/image.jpg","description":"Public HTTP(S) media URL to validate."}},"additionalProperties":false,"required":["url"]},"ValidateMediaPlatformLimitDto":{"type":"object","properties":{"limit":{"type":"integer","minimum":1},"limitFormatted":{"type":"string","example":"8.0 MB"},"withinLimit":{"type":"boolean"}},"additionalProperties":false,"required":["limit","limitFormatted","withinLimit"]},"ValidateMediaResponseDto":{"type":"object","properties":{"valid":{"type":"boolean"},"url":{"type":"string","format":"uri"},"error":{"type":"string","description":"Present when valid is false."},"contentType":{"type":"string","example":"image/jpeg"},"size":{"type":"integer","nullable":true,"minimum":0},"sizeFormatted":{"type":"string","example":"245 KB"},"type":{"type":"string","enum":["image","video","unknown"]},"platformLimits":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ValidateMediaPlatformLimitDto"},"description":"Per-platform upload size comparisons when both size and media type are known."}},"additionalProperties":false,"required":["valid","url"]},"ValidatePostLengthRequestDto":{"type":"object","properties":{"text":{"type":"string","example":"Check out https://zumpo.io for scheduling posts!","maxLength":50000,"description":"Post text to count without publishing or provider I/O."}},"additionalProperties":false,"required":["text"]},"ValidatePostLengthResponseDto":{"type":"object","properties":{"text":{"type":"string"},"platforms":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ValidatePostLengthPlatformDto"},"description":"Selected-mode registry platforms keyed by public platform name, plus twitterPremium when X is registered."}},"additionalProperties":false,"required":["text","platforms"]},"ValidatePostDto":{"type":"object","properties":{"content":{"type":"string","example":"Hello from zumpo","maxLength":50000,"description":"Root post text. A target customContent value overrides it for that target."},"platforms":{"minItems":1,"maxItems":100,"description":"Required dry-run targets. Every item requires a platform; accountId is never resolved.","type":"array","items":{"$ref":"#/components/schemas/ValidatePostPlatformDto"}},"mediaItems":{"maxItems":35,"description":"Root metadata-only media descriptors shared by targets without customMedia.","type":"array","items":{"$ref":"#/components/schemas/ValidatePostMediaItemDto"}}},"additionalProperties":false,"required":["platforms"]},"ValidationIssueDto":{"type":"object","properties":{"code":{"type":"string","example":"text_too_long"},"message":{"type":"string","example":"Text exceeds the platform limit."},"param":{"type":"string","example":"text"}},"additionalProperties":false,"required":["code","message"]},"ValidatePostErrorDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","googlebusiness"],"example":"youtube"},"error":{"type":"string","example":"YouTube requires exactly one video."}},"additionalProperties":false,"required":["platform","error"]},"ValidatePostWarningDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","googlebusiness"],"example":"twitter"},"warning":{"type":"string","example":"Post content is approaching the platform limit."}},"additionalProperties":false,"required":["platform","warning"]},"ValidatePostResponseDto":{"type":"object","properties":{"valid":{"type":"boolean","example":true},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ValidationIssueDto"}},"message":{"type":"string","example":"No validation issues found."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ValidatePostErrorDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ValidatePostWarningDto"}}},"additionalProperties":false,"required":["valid","issues","warnings"]},"LegacyValidatePostResponseDto":{"type":"object","properties":{"valid":{"type":"boolean","example":true},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ValidationIssueDto"}}},"additionalProperties":false,"required":["valid","issues"]},"PlatformStatusDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"]},"status":{"type":"string","enum":["operational","degraded","outage","unknown"],"example":"operational"},"since":{"type":"string","format":"date-time","nullable":true,"example":null},"scope":{"type":"string","enum":["platform","origin"],"example":"platform","description":"How the circuit breaker is scoped for this platform. `platform` means one breaker shared by every tenant, which is right for a shared API. `origin` means one breaker per instance host (a Mastodon server, a Bluesky PDS), because that address is chosen by the tenant."},"openOriginCircuits":{"type":"number","minimum":0,"example":0,"description":"How many origin-scoped circuits are open or half-open right now. Always 0 when `scope` is `platform`. It never changes `status`: one tenant instance being unreachable is not the platform being unreachable, and on a federated network the wider claim would be wrong. Only the count is published, never the host or the tenant. When the count cannot be measured, `status` is `unknown`."}},"required":["platform","status","since","scope","openOriginCircuits"]},"StatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["operational","degraded","outage"],"example":"operational"},"checkedAt":{"type":"string","format":"date-time"},"platforms":{"type":"array","items":{"$ref":"#/components/schemas/PlatformStatusDto"}}},"required":["status","checkedAt","platforms"]},"PublicUpstreamErrorDto":{"type":"object","properties":{"code":{"type":"string","enum":["upstream_authentication_failed","upstream_authorization_failed","upstream_error","upstream_rate_limited","upstream_rejected","upstream_timeout","upstream_unavailable"],"example":"upstream_rate_limited"},"message":{"type":"string","enum":["Provider authentication failed.","Provider authorization failed.","Provider request failed.","Provider rate limit reached.","Provider rejected the request.","Provider request timed out.","Provider is temporarily unavailable."],"example":"Provider rate limit reached."}},"additionalProperties":false,"required":["code","message"]},"RequestLogDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"requestId":{"type":"string","example":"req_a1b2c3d4e5f6"},"method":{"type":"string","example":"POST"},"path":{"type":"string","example":"/v1/posts"},"status":{"type":"number","nullable":true,"example":202},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"],"nullable":true,"example":"mastodon"},"upstreamStatus":{"type":"number","nullable":true,"example":429},"upstreamError":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PublicUpstreamErrorDto"}]},"durationMs":{"type":"number","nullable":true,"example":42},"attempts":{"type":"number","example":1},"createdAt":{"type":"string","format":"date-time","example":"2026-07-30T21:00:00.123456Z"}},"additionalProperties":false,"required":["id","requestId","method","path","status","platform","upstreamStatus","upstreamError","durationMs","attempts","createdAt"]},"RequestLogListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RequestLogDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"additionalProperties":false,"required":["data","hasMore","nextCursor"]},"UsageWindowDto":{"type":"object","properties":{"start":{"type":"string","format":"date-time","example":"2026-08-04T00:00:00.000Z"},"end":{"type":"string","format":"date-time","example":"2026-08-05T00:00:00.000Z"}},"additionalProperties":false,"required":["start","end"]},"PlatformQuotaUsageDto":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon","shopify","google_ads","tiktok_ads","pinterest_ads","x_ads","openai_ads"],"description":"Platform id"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"The internal account id that produced the consumption (accounts.id)."},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"The profile the consumption is attributed to. The counter is kept per profile: if the same platform account is linked to more than one profile in the same team, each profile sees ITS OWN counter. The response contains only the profiles in the scope of the caller."},"platformAccountId":{"type":"string","description":"The account id on the provider side. The same value can appear on more than one row (if the same account is linked to more than one profile); the counters of those rows are SEPARATE and the provider-level total is their sum."},"quotaModel":{"oneOf":[{"type":"object","additionalProperties":false,"required":["type","dailyUnits","costPerPost"],"properties":{"type":{"type":"string","enum":["shared"]},"dailyUnits":{"type":"number","minimum":0},"costPerPost":{"type":"number","minimum":0}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["per-tenant"]}}},{"type":"object","additionalProperties":false,"required":["type","unitCost"],"properties":{"type":{"type":"string","enum":["metered"]},"unitCost":{"type":"number","minimum":0}}},{"type":"object","additionalProperties":false,"required":["type"],"properties":{"type":{"type":"string","enum":["unlimited"]}}}],"nullable":true,"description":"The quota model declaration of the adapter. null if the adapter of the platform is not registered in this mode - a declaration is not invented."},"window":{"$ref":"#/components/schemas/UsageWindowDto"},"unitsUsed":{"type":"integer","minimum":0,"description":"The quota units THIS PROFILE spent over this platform account in this window, as written to the ledger. The counter is keyed by (team, mode, profile, platform, platform account, window): the consumption of another profile that has linked the same platform account DOES NOT ENTER this number. IT IS NOT EXACT, IT IS A LOWER BOUND: a quota unit is spent when the limiter token is taken, while the ledger row is written afterwards and in three cases cannot be written - (1) the transaction of the publish result is rolled back, (2) the publish result can never be committed (the target has meanwhile been taken over by another worker), (3) the write of the row itself fails (the publish is not affected, the event is reported operationally). In all three the unit was spent and is nevertheless not counted. The drift has one direction only: it can undercount, it NEVER overcounts."},"deferredCount":{"type":"integer","minimum":0,"description":"The number of publish attempts DEFERRED because of quota in this window. It comes from the same ledger and the same row as `unitsUsed`, so the same three drift paths apply to it as well: IT IS A LOWER BOUND, it can undercount, it never overcounts. Limiter unavailability is not written here - that is an infrastructure event."},"unitsRemaining":{"type":"integer","nullable":true,"example":null,"description":"A number if an honest remainder belonging to the tenant can be derived, otherwise null. On a shared pool `dailyUnits - your own usage` IS NOT COMPUTED: because the pool is shared across all tenants, that computation would promise a capacity that does not exist. The real remainder of the pool is not returned either, because it would leak the aggregate cross-tenant traffic."},"unitsRemainingReason":{"type":"string","enum":["shared_pool_not_tenant_scoped","per_tenant_limit_undeclared","metered_usage_uncapped","unlimited_quota_model","quota_model_unavailable"],"nullable":true,"example":"shared_pool_not_tenant_scoped","description":"A machine-readable rationale saying WHY `unitsRemaining` is null; null when a number is returned."}},"additionalProperties":false,"required":["platform","accountId","profileId","platformAccountId","quotaModel","window","unitsUsed","deferredCount","unitsRemaining","unitsRemainingReason"]},"UsageSnapshotDto":{"type":"object","properties":{"quota":{"type":"array","items":{"$ref":"#/components/schemas/PlatformQuotaUsageDto"}}},"additionalProperties":false,"required":["quota"]},"BillingInsufficientBalanceDto":{"type":"object","properties":{"blocksPublishOn":{"type":"array","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"]},"description":"Platforms on which publishing WILL STOP when the balance is insufficient. Only metered platforms are here; today the single item is X (twitter). The list is derived, not counted by hand. LIVE MODE ONLY: publishing in test mode goes to fake platforms, has no real provider cost and DOES NOT TOUCH the balance at all - in that mode no publish is ever stopped because of the balance. The balance itself CARRIES NO mode, so the SAME amount is read in both modes."},"neverBlocksPublishOn":{"type":"array","items":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","google_business","snapchat","mastodon"]},"description":"Platforms on which publishing is NEVER blocked whatever the balance is. Together with `blocksPublishOn` this list covers ALL generic publish platforms: a publish target is either in one or in the other. Dedicated Ads/Blog accounts are in neither list. Consumption is not billed on these platforms, so there is no balance to deduct either."},"enforcement":{"type":"string","enum":["not_enforced","enforced"],"example":"enforced","description":"WHETHER THE RULE ABOVE IS ENFORCED TODAY. `enforced`: the pre-publish admission gate is active and an insufficient balance stops publishing on the platforms in the `blocksPublishOn` list. `not_enforced`: the rule is settled as a product decision but the gate is not active, the balance is only READ. This field exists deliberately: declaring an unenforced rule as enforced would promise the customer a behavior that does not exist."},"errorCode":{"type":"string","example":"insufficient_balance","description":"The error code carried by a target that failed because of an insufficient balance while the gate is active (`enforcement` = `enforced`). The same code appears both on the target row and in the `post_target.failed` webhook event, so the client can branch on this single string. IT IS NOT RETRIED: trying again without a top-up changes nothing."}},"additionalProperties":false,"required":["blocksPublishOn","neverBlocksPublishOn","enforcement","errorCode"]},"BillingUnsettledFundsDto":{"type":"object","properties":{"errorCode":{"type":"string","example":"unsettled_funds_hold","description":"The error code carried by a target stopped because of unsettled card money. It IS NOT THE SAME as `insufficient_balance` and must not be confused with it: with this code the customer DOES HAVE a balance, only their last payment has not yet passed the dispute window. The same code appears both on the target row and in the `post_target.failed` webhook event. IT IS NOT RETRIED; it clears by itself once the window elapses."},"settlementWindowDays":{"type":"number","example":7,"description":"The number of DAYS that must pass for a CARD payment to count as settled. The period runs from the moment the payment lands and is independent of whether any publishing happens. Wire transfers and operator credits do NOT enter this window at all, they count as settled instantly."},"spendAllowanceMicros":{"type":"number","example":250000000,"description":"The MOST that can be spent with unsettled money, micro-USD. The rule: cumulative metered spend cannot exceed the amount found by adding this allowance to the settled balance. So the allowance is not a BALANCE, it is a tolerance added ON TOP of the settled money."},"spendAllowanceUsd":{"type":"string","example":"250.000000","description":"The decimal USD rendering of `spendAllowanceMicros` - for DISPLAY. Do your arithmetic over the integer field; this field CARRIES NO rounding."}},"additionalProperties":false,"required":["errorCode","settlementWindowDays","spendAllowanceMicros","spendAllowanceUsd"]},"XPricingTariffDto":{"type":"object","properties":{"tariff":{"type":"string","example":"post_create","description":"The machine-readable name of the tariff. EXACTLY this string is written into the metadata field of the billable event."},"unitCostMicros":{"type":"integer","example":15000,"description":"Cost per unit, integer micro-USD."},"unitCostUsd":{"type":"string","example":"0.015000","description":"The decimal string rendering of the same cost. NO rounding."}},"additionalProperties":false,"required":["tariff","unitCostMicros","unitCostUsd"]},"XPricingExampleDto":{"type":"object","properties":{"content":{"type":"string","example":"https://example.com/launch","description":"Example post text."},"tariff":{"type":"string","example":"post_create_with_url","description":"The name of the tariff to be applied to this text."}},"additionalProperties":false,"required":["content","tariff"]},"XPricingRuleDto":{"type":"object","properties":{"detector":{"type":"string","enum":["broad","exact"],"example":"broad","description":"The class of the link detection. `broad`: the detector DOES NOT COPY the provider rule, it APPROXIMATES it - X does not publish which string it counts as a link. The direction is CHOSEN DELIBERATELY: a narrow detector under-bills us and we pay the difference; a broad detector may charge the customer too much but it is VISIBLE, because the applied tariff is written both in the event metadata field and at this endpoint, and the customer can dispute it. A cost that is silently under-billed leaves no trace visible to anyone. `exact`: if the provider publishes its rule and we apply it exactly."},"appliesTo":{"type":"string","example":"post_create_with_url","description":"The name of the tariff to apply if the detector matches; if it does not match, the other one in the `tariffs` list applies."},"examples":{"description":"Runnable examples of the rule. The list is NOT exhaustive; these are examples that make a claim about the boundary of the rule - in particular, that spellings which contain a dot but are not links (the `bkz.orada` class) can produce FALSE POSITIVES is an accepted cost and is shown here. A number (`3.5`) IS NOT COUNTED as a link: a top level domain name requires at least TWO LETTERS.","type":"array","items":{"$ref":"#/components/schemas/XPricingExampleDto"}}},"additionalProperties":false,"required":["detector","appliesTo","examples"]},"BillingDto":{"type":"object","properties":{"currency":{"type":"string","enum":["USD"],"example":"USD","description":"Currency of all amounts."},"microsPerUnit":{"type":"integer","example":1000000,"description":"How many MICROS one unit of currency is. All `*Micros` fields are INTEGERS at this scale. Floating point is deliberately absent: $0.015 cannot be represented exactly inside IEEE-754 and the sum of thousands of rows drifts. Micros were chosen because the unit price for X is BELOW A CENT ($0.015 = 1.5 cents), so a cent based integer could not have represented that item at all."},"balanceMicros":{"type":"integer","example":0,"description":"The current balance, integer micro-USD. IT CAN BE NEGATIVE and this is not an error: two concurrently in-flight publishes can read the same balance, so a bounded overdraw is unavoidable. The ceiling of the overdraw is the number of concurrent attempts times the most expensive tariff. Escrow reservation was deliberately not written: a constraint protecting the balance would blow up inside the transaction that carries the deduction, and that transaction ALSO CARRIES THE PUBLISH - the customer would lose their post instead of running out of money."},"balanceUsd":{"type":"string","example":"0.000000","description":"The decimal string rendering of the same balance. NO rounding, six digits fixed. It is a convenience field; if you are reconciling, do it over `balanceMicros` - integer arithmetic gives the same result on both sides."},"updatedAt":{"type":"string","format":"date-time","nullable":true,"example":null,"description":"The moment the balance LAST CHANGED, or null if there is no balance record at all. A team that has NEVER TOPPED UP gets a zero balance and a null timestamp, NOT a 404: the balance is the sum of the ledger and the sum of an empty ledger is zero. Returning 404 would force the client to distinguish \"no balance\" from \"balance 0\"; the distinction is ALREADY here, and only in this field: null = no movement ever happened, filled = the balance changed at least once (even if it is 0 today)."},"insufficientBalance":{"$ref":"#/components/schemas/BillingInsufficientBalanceDto"},"unsettledFunds":{"$ref":"#/components/schemas/BillingUnsettledFundsDto"}},"additionalProperties":false,"required":["currency","microsPerUnit","balanceMicros","balanceUsd","updatedAt","insufficientBalance","unsettledFunds"]},"XPricingDto":{"type":"object","properties":{"platform":{"type":"string","enum":["twitter"],"example":"twitter","description":"The platform the tariff belongs to. This endpoint is specific to X by its path name; today X is also the only metered platform."},"currency":{"type":"string","enum":["USD"],"example":"USD","description":"Currency of all amounts."},"microsPerUnit":{"type":"integer","example":1000000,"description":"How many MICROS one unit of currency is. `unitCostMicros` is an INTEGER at this scale; micros were chosen because the value $0.015 is BELOW A CENT."},"tariffs":{"description":"ALL applicable tariffs. The numbers come from the SAME expression as the number actually deducted on the publish path: that the declared price and the charged price cannot diverge is the sole reason this endpoint exists.","type":"array","items":{"$ref":"#/components/schemas/XPricingTariffDto"}},"rule":{"$ref":"#/components/schemas/XPricingRuleDto"}},"additionalProperties":false,"required":["platform","currency","microsPerUnit","tariffs","rule"]},"CreateBillingCheckoutDto":{"type":"object","properties":{"amountUsd":{"type":"string","example":"25","description":"Amount to top up, as a decimal USD string (e.g. \"25\" or \"49.50\"). Minimum $10.000000, maximum $2000.000000. THE CEILING IS TIERED: until the team has completed one successful top-up, a single transaction may add at most $250.000000; amounts up to $2000.000000 unlock once that first top-up succeeds. A tier rejection returns its own distinct code (400 amount_above_first_topup_cap) so a client can tell \"lower the amount\" apart from \"complete a smaller top-up first\". Amounts offered in the panel: 25, 50, 100, 250 USD; arbitrary amounts are also accepted. AT MOST TWO DECIMAL PLACES: Stripe takes amounts as an integer number of cents, so \"10.123456\" is a valid micro amount but cannot be charged. It is not silently rounded - the request is rejected with 400 amount_sub_cent. Whitespace, currency symbols, thousands separators and scientific notation are REJECTED."}},"additionalProperties":false,"required":["amountUsd"]},"BillingCheckoutSessionDto":{"type":"object","properties":{"id":{"type":"string","example":"cs_test_a11YYufWQzNY63zpQ6QSNRQhkUpVph4WRmzW0zWJO2znZKdVujZ0N0S22u","description":"The Stripe Checkout session id. THIS is the reference field of the ledger row written to the balance, that is, the key of the reconciliation after payment."},"url":{"type":"string","example":"https://checkout.stripe.com/c/pay/cs_test_a11YYufWQzNY63zpQ6QSNRQhkUpVph4","description":"The address the customer IS REDIRECTED TO. This address is single-use and bound to the session; it must not be stored."},"amountMicros":{"type":"number","example":25000000,"description":"The amount of the opened session, INTEGER micro-USD. The same scale as GET /v1/billing (microsPerUnit)."},"amountUsd":{"type":"string","example":"25.000000","description":"The decimal USD writing of the same amount."},"currency":{"type":"string","example":"USD","description":"Always USD. The Stripe session is opened with `usd` and if the webhook sees another currency it DOES NOT WRITE credit."}},"additionalProperties":false,"required":["id","url","amountMicros","amountUsd","currency"]},"AnalyticsMetricsDto":{"type":"object","properties":{"impressions":{"type":"number","minimum":0},"reach":{"type":"number","minimum":0},"likes":{"type":"number","minimum":0},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0},"saves":{"type":"number","minimum":0},"clicks":{"type":"number","minimum":0},"views":{"type":"number","minimum":0},"follows":{"type":"number","minimum":0},"igReelsAvgWatchTime":{"type":"number","minimum":0,"description":"Instagram Reels average watch time in milliseconds."},"igReelsVideoViewTotalTime":{"type":"number","minimum":0,"description":"Instagram Reels total watch time in milliseconds."},"replies":{"type":"number","minimum":0,"description":"Exact Threads replies metric; no cross-platform alias is invented."},"reposts":{"type":"number","minimum":0,"description":"Exact Threads reposts metric; no cross-platform alias is invented."},"quotes":{"type":"number","minimum":0,"description":"Exact Threads quotes metric; no cross-platform alias is invented."}},"additionalProperties":false},"PlatformAnalyticsDto":{"type":"object","properties":{"platform":{"type":"string","enum":["pinterest","twitter","facebook","instagram","threads"]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platformPostId":{"type":"string","minLength":1,"maxLength":65,"pattern":"^(?:[1-9]\\d{0,31}|[1-9]\\d{0,19}_[1-9]\\d{0,19})$"},"analytics":{"$ref":"#/components/schemas/AnalyticsMetricsDto"},"status":{"type":"string","enum":["published","failed"]},"syncStatus":{"type":"string","enum":["synced","pending","unavailable"]},"platformPostUrl":{"type":"string","nullable":true,"format":"uri"},"errorMessage":{"type":"string","nullable":true}},"additionalProperties":false,"required":["platform","accountId","platformPostId","analytics"]},"PostAnalyticsDto":{"type":"object","properties":{"postId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"status":{"type":"string","enum":["published","failed","partial"]},"content":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time"},"publishedAt":{"type":"string","nullable":true,"format":"date-time"},"videoDurationSeconds":{"type":"integer","minimum":0,"nullable":true,"description":"Whole-second duration of the persisted Instagram Reel source video; null when it cannot be established from durable media."},"analytics":{"$ref":"#/components/schemas/AnalyticsMetricsDto"},"platformAnalytics":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/PlatformAnalyticsDto"}},"platform":{"type":"string","enum":["pinterest","twitter","facebook","instagram","threads"]},"platformPostUrl":{"type":"string","nullable":true,"format":"uri"},"isExternal":{"type":"boolean"},"syncStatus":{"type":"string","enum":["synced","pending","partial","unavailable"]},"message":{"type":"string","nullable":true},"mediaProductType":{"type":"string","enum":["FEED","REELS","STORY","AD"]},"isAiGenerated":{"type":"boolean"},"isSharedToFeed":{"type":"boolean"},"mediaAudioType":{"type":"string","enum":["MUSIC","ORIGINAL_SOUND"]}},"additionalProperties":false,"required":["postId","analytics","platformAnalytics"]},"BestTimeSlotDto":{"type":"object","properties":{"day_of_week":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"avg_engagement":{"type":"number","minimum":0},"post_count":{"type":"integer","minimum":1}},"additionalProperties":false,"required":["day_of_week","hour","avg_engagement","post_count"]},"BestTimeResponseDto":{"type":"object","properties":{"slots":{"description":"Empty until complete provider-backed engagement snapshots exist; unsupported metrics are never treated as zero.","type":"array","items":{"$ref":"#/components/schemas/BestTimeSlotDto"}}},"additionalProperties":false,"required":["slots"]},"ContentDecayBucketDto":{"type":"object","properties":{"bucket_order":{"type":"integer","minimum":0,"maximum":6},"bucket_label":{"type":"string","enum":["0-6h","6-12h","12-24h","1-2d","2-7d","7-30d","30d+"]},"avg_pct_of_final":{"type":"number","minimum":0,"maximum":100},"post_count":{"type":"integer","minimum":1}},"additionalProperties":false,"required":["bucket_order","bucket_label","avg_pct_of_final","post_count"]},"ContentDecayResponseDto":{"type":"object","properties":{"buckets":{"description":"Empty until at least two complete cumulative engagement observations exist for a post target.","type":"array","items":{"$ref":"#/components/schemas/ContentDecayBucketDto"}}},"additionalProperties":false,"required":["buckets"]},"PostTimelineDayDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"platform":{"type":"string","minLength":1},"platformPostId":{"type":"string","minLength":1,"maxLength":512},"impressions":{"type":"integer","minimum":0},"reach":{"type":"integer","minimum":0},"likes":{"type":"integer","minimum":0},"comments":{"type":"integer","minimum":0},"shares":{"type":"integer","minimum":0},"saves":{"type":"integer","minimum":0},"clicks":{"type":"integer","minimum":0},"views":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["date","platform","platformPostId"]},"PostTimelineResponseDto":{"type":"object","properties":{"postId":{"type":"string","minLength":1,"maxLength":512},"timeline":{"description":"Latest retained observation per UTC day and provider post. Missing metrics remain omitted.","type":"array","items":{"$ref":"#/components/schemas/PostTimelineDayDto"}}},"additionalProperties":false,"required":["postId","timeline"]},"PostingFrequencyRowDto":{"type":"object","properties":{"platform":{"type":"string","minLength":1},"posts_per_week":{"type":"integer","minimum":1},"avg_engagement_rate":{"type":"number","minimum":0,"description":"Mean provider-backed engagement divided by observed reach, or impressions when reach is unavailable. Weeks with incomplete coverage are omitted."},"avg_engagement":{"type":"number","minimum":0},"weeks_count":{"type":"integer","minimum":1}},"additionalProperties":false,"required":["platform","posts_per_week","avg_engagement_rate","avg_engagement","weeks_count"]},"PostingFrequencyResponseDto":{"type":"object","properties":{"frequency":{"description":"Empty until every publication in at least one calendar week has complete engagement and denominator coverage.","type":"array","items":{"$ref":"#/components/schemas/PostingFrequencyRowDto"}}},"additionalProperties":false,"required":["frequency"]},"DailyMetricsTotalsDto":{"type":"object","properties":{"impressions":{"type":"number","minimum":0},"reach":{"type":"number","minimum":0},"likes":{"type":"number","minimum":0},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0},"saves":{"type":"number","minimum":0},"clicks":{"type":"number","minimum":0},"views":{"type":"number","minimum":0}},"additionalProperties":false},"DailyMetricsDayDto":{"type":"object","properties":{"date":{"type":"string","format":"date","example":"2026-08-09"},"postCount":{"type":"integer","minimum":0},"platforms":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"metrics":{"description":"Only durable provider metrics are included. Zumpo currently stores publication counts, so this object is empty rather than filled with invented zeroes.","allOf":[{"$ref":"#/components/schemas/DailyMetricsTotalsDto"}]}},"additionalProperties":false,"required":["date","postCount","platforms","metrics"]},"DailyMetricsPlatformBreakdownDto":{"type":"object","properties":{"impressions":{"type":"number","minimum":0},"reach":{"type":"number","minimum":0},"likes":{"type":"number","minimum":0},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0},"saves":{"type":"number","minimum":0},"clicks":{"type":"number","minimum":0},"views":{"type":"number","minimum":0},"platform":{"type":"string","enum":["instagram","facebook","threads","whatsapp","twitter","linkedin","youtube","tiktok","pinterest","reddit","bluesky","telegram","discord","slack","googlebusiness","snapchat","mastodon"]},"postCount":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["platform","postCount"]},"DailyMetricsResponseDto":{"type":"object","properties":{"dailyData":{"type":"array","items":{"$ref":"#/components/schemas/DailyMetricsDayDto"}},"platformBreakdown":{"type":"array","items":{"$ref":"#/components/schemas/DailyMetricsPlatformBreakdownDto"}}},"additionalProperties":false,"required":["dailyData","platformBreakdown"]},"InboxAnalyticsSummaryDto":{"type":"object","properties":{"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"failed":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"uniqueConversations":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["received","sent","read","failed","uniqueConversations"]},"InboxAnalyticsDailyBucketDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"failed":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."}},"additionalProperties":false,"required":["date","sent","received","read","failed"]},"InboxAnalyticsPlatformBucketDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram","telegram","slack","whatsapp"]},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"failed":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."}},"additionalProperties":false,"required":["platform","sent","received","read","failed"]},"InboxVolumeResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"summary":{"$ref":"#/components/schemas/InboxAnalyticsSummaryDto"},"timeseries":{"type":"array","items":{"$ref":"#/components/schemas/InboxAnalyticsDailyBucketDto"}},"byPlatform":{"type":"array","items":{"$ref":"#/components/schemas/InboxAnalyticsPlatformBucketDto"}}},"additionalProperties":false,"required":["success","from","to","summary","timeseries","byPlatform"]},"InboxHeatmapBucketDto":{"type":"object","properties":{"dow":{"type":"integer","minimum":1,"maximum":7},"hour":{"type":"integer","minimum":0,"maximum":23},"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."}},"additionalProperties":false,"required":["dow","hour","received","sent","read"]},"InboxHeatmapResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"buckets":{"type":"array","items":{"$ref":"#/components/schemas/InboxHeatmapBucketDto"}}},"additionalProperties":false,"required":["success","from","to","buckets"]},"InboxSourcePlatformDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram","telegram","slack","whatsapp"]},"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."}},"additionalProperties":false,"required":["platform","received","sent","read"]},"InboxSourceRowDto":{"type":"object","properties":{"source":{"type":"string","enum":["(unspecified)","human","workflow","sequence","broadcast","comment_automation","api","contact","platform"]},"received":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"sent":{"type":"integer","minimum":0,"description":"Count of retained, tenant-scoped durable message events. It is not a provider lifetime total."},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"byPlatform":{"type":"array","items":{"$ref":"#/components/schemas/InboxSourcePlatformDto"}}},"additionalProperties":false,"required":["source","received","sent","read","byPlatform"]},"InboxSourceBreakdownResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"sources":{"type":"array","items":{"$ref":"#/components/schemas/InboxSourceRowDto"}}},"additionalProperties":false,"required":["success","from","to","sources"]},"InboxResponseTimeSummaryDto":{"type":"object","properties":{"sampleSize":{"type":"integer","minimum":0,"description":"Conversations with a retained received event followed by a retained sent event."},"medianSeconds":{"type":"integer","minimum":0},"p90Seconds":{"type":"integer","minimum":0},"p99Seconds":{"type":"integer","minimum":0},"meanSeconds":{"type":"integer","minimum":0},"fastestSeconds":{"type":"integer","minimum":0},"slowestSeconds":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["sampleSize"]},"InboxResponseTimeHistogramBucketDto":{"type":"object","properties":{"bucket":{"type":"string","enum":["0-1m","1-5m","5-15m","15-60m","1-4h","4-24h","1d+"]},"lowerSeconds":{"type":"integer","minimum":0},"upperSeconds":{"type":"integer","minimum":1,"nullable":true},"count":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["bucket","lowerSeconds","upperSeconds","count"]},"InboxResponseTimeResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"summary":{"$ref":"#/components/schemas/InboxResponseTimeSummaryDto"},"histogram":{"description":"Empty when no complete reply pair is retained; zero-count buckets are not fabricated.","type":"array","items":{"$ref":"#/components/schemas/InboxResponseTimeHistogramBucketDto"}}},"additionalProperties":false,"required":["success","from","to","summary","histogram"]},"InboxTopAccountDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["facebook","instagram","telegram","slack","whatsapp"]},"displayName":{"type":"string","description":"Current account label, or the explicit (disconnected) marker when no account row remains."},"username":{"type":"string","description":"Current or retained provider username, or the explicit (disconnected) marker."},"received":{"type":"integer","minimum":0},"sent":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"conversations":{"type":"integer","minimum":0},"medianResponseSeconds":{"type":"integer","minimum":0,"description":"Omitted when no complete received-to-sent pair is retained."},"repliedCount":{"type":"integer","minimum":0}},"additionalProperties":false,"required":["accountId","platform","displayName","username","received","sent","total","conversations","repliedCount"]},"InboxTopAccountsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/InboxTopAccountDto"}}},"additionalProperties":false,"required":["success","from","to","accounts"]},"InboxConversationAnalyticsItemDto":{"type":"object","properties":{"conversationId":{"type":"string","minLength":1,"maxLength":512},"mongoId":{"type":"string","pattern":"^[0-9a-f]{24}$","nullable":true},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["facebook","instagram","telegram","slack","whatsapp"]},"participantName":{"type":"string","nullable":true},"participantUsername":{"type":"string","nullable":true},"participantPicture":{"type":"string","nullable":true},"lastMessage":{"type":"string","nullable":true,"description":"Latest retained message text, or null when the durable event has no text."},"totalMessages":{"type":"integer","minimum":1},"received":{"type":"integer","minimum":0},"sent":{"type":"integer","minimum":0},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"failed":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"firstMessageAt":{"type":"string","format":"date-time"},"lastMessageAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["conversationId","mongoId","accountId","platform","participantName","participantUsername","participantPicture","lastMessage","totalMessages","received","sent","read","failed","firstMessageAt","lastMessageAt"]},"InboxAnalyticsPaginationDto":{"type":"object","properties":{"page":{"type":"integer","minimum":1},"limit":{"type":"integer","minimum":1,"maximum":100},"total":{"type":"integer","minimum":0},"totalPages":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}},"additionalProperties":false,"required":["page","limit","total","totalPages","hasMore"]},"InboxConversationAnalyticsListResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationAnalyticsItemDto"}},"pagination":{"$ref":"#/components/schemas/InboxAnalyticsPaginationDto"}},"additionalProperties":false,"required":["success","from","to","items","pagination"]},"InboxConversationSummaryDto":{"type":"object","properties":{"received":{"type":"integer","minimum":0},"sent":{"type":"integer","minimum":0},"read":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"failed":{"type":"integer","minimum":0,"description":"Count of retained provider-confirmed lifecycle events. Zero means none were retained in the range."},"totalMessages":{"type":"integer","minimum":0},"firstMessageAt":{"type":"string","format":"date-time","nullable":true},"lastMessageAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"required":["received","sent","read","failed","totalMessages","firstMessageAt","lastMessageAt"]},"InboxConversationSourceDto":{"type":"object","properties":{"source":{"type":"string","enum":["(unspecified)","human","workflow","sequence","broadcast","comment_automation","api","contact","platform"]},"count":{"type":"integer","minimum":1}},"additionalProperties":false,"required":["source","count"]},"InboxConversationAnalyticsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"conversationId":{"type":"string","minLength":1,"maxLength":512},"mongoId":{"type":"string","pattern":"^[0-9a-f]{24}$","nullable":true},"platform":{"type":"string","enum":["facebook","instagram","telegram","slack","whatsapp"],"nullable":true},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date","nullable":true},"summary":{"$ref":"#/components/schemas/InboxConversationSummaryDto"},"timeseries":{"type":"array","items":{"$ref":"#/components/schemas/InboxAnalyticsDailyBucketDto"}},"bySource":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversationSourceDto"}}},"additionalProperties":false,"required":["success","conversationId","mongoId","platform","from","to","summary","timeseries","bySource"]},"YoutubeChannelInsightsDateRangeDto":{"type":"object","properties":{"since":{"type":"string","format":"date"},"until":{"type":"string","format":"date"}},"additionalProperties":false,"required":["since","until"]},"YoutubeChannelInsightUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["views","estimatedMinutesWatched","averageViewDuration","subscribersGained","subscribersLost","followers_gained","followers_lost"]},"reason":{"type":"string","enum":["not_enrolled","permission_missing","unsupported_metric","no_data","unreadable_value","mixed_currency","upstream_error"]},"message":{"type":"string"}},"additionalProperties":false,"required":["metric","reason","message"]},"YoutubeChannelInsightsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["youtube"]},"dateRange":{"$ref":"#/components/schemas/YoutubeChannelInsightsDateRangeDto"},"metricType":{"type":"string","enum":["time_series","total_value"]},"breakdown":{"type":"string"},"metrics":{"type":"object","additionalProperties":{"type":"object","required":["total"],"properties":{"total":{"type":"number","minimum":0},"values":{"type":"array","items":{"type":"object","required":["date","value"],"additionalProperties":false,"properties":{"date":{"type":"string","format":"date"},"value":{"type":"number","minimum":0}}}},"breakdowns":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"value":{"type":"number"}}}},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true}}}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/YoutubeChannelInsightUnavailableMetricDto"}},"dataDelay":{"type":"string","example":"Data may be delayed up to 3 days"}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metricType","metrics","dataDelay"]},"YoutubeAnalyticsScopeStatusDto":{"type":"object","properties":{"hasAnalyticsScope":{"type":"boolean","enum":[false]},"requiresReauthorization":{"type":"boolean","enum":[true]},"reauthorizeUrl":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["hasAnalyticsScope","requiresReauthorization"]},"YoutubeAnalyticsScopeMissingResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string","example":"To access channel analytics, reconnect your YouTube account to grant the required permissions."},"code":{"type":"string","enum":["youtube_analytics_scope_missing"]},"scopeStatus":{"$ref":"#/components/schemas/YoutubeAnalyticsScopeStatusDto"}},"additionalProperties":false,"required":["success","error","code","scopeStatus"]},"YoutubeDailyViewsDateRangeDto":{"type":"object","properties":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}},"additionalProperties":false,"required":["startDate","endDate"]},"YoutubeDailyViewDto":{"type":"object","properties":{"date":{"type":"string","format":"date"},"views":{"type":"number","minimum":0},"estimatedMinutesWatched":{"type":"number","minimum":0},"averageViewDuration":{"type":"number","minimum":0},"averageViewPercentage":{"type":"number","minimum":0,"description":"Average watched percentage. Looping Shorts can legitimately exceed 100."},"subscribersGained":{"type":"number","minimum":0},"subscribersLost":{"type":"number","minimum":0},"likes":{"type":"number","minimum":0},"comments":{"type":"number","minimum":0},"shares":{"type":"number","minimum":0}},"additionalProperties":false,"required":["date","views","estimatedMinutesWatched","averageViewDuration","averageViewPercentage","subscribersGained","subscribersLost","likes","comments","shares"]},"YoutubeDailyViewsScopeStatusDto":{"type":"object","properties":{"hasAnalyticsScope":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["hasAnalyticsScope"]},"YoutubeDailyViewsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"videoId":{"type":"string","minLength":1,"maxLength":128},"durationSeconds":{"type":"number","minimum":0,"nullable":true},"dateRange":{"$ref":"#/components/schemas/YoutubeDailyViewsDateRangeDto"},"provisionalSince":{"type":"string","format":"date"},"totalViews":{"type":"number","minimum":0},"dailyViews":{"type":"array","items":{"$ref":"#/components/schemas/YoutubeDailyViewDto"}},"lastSyncedAt":{"type":"string","format":"date-time","nullable":true},"scopeStatus":{"$ref":"#/components/schemas/YoutubeDailyViewsScopeStatusDto"}},"additionalProperties":false,"required":["success","videoId","durationSeconds","dateRange","totalViews","dailyViews","lastSyncedAt","scopeStatus"]},"YoutubeAudienceDateRangeDto":{"type":"object","properties":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}},"additionalProperties":false,"required":["startDate","endDate"]},"YoutubeVideoRetentionPointDto":{"type":"object","properties":{"elapsedVideoTimeRatio":{"type":"number","minimum":0,"maximum":1},"audienceWatchRatio":{"type":"number","minimum":0,"description":"May exceed 1 when viewers rewind or loop a segment."},"relativeRetentionPerformance":{"type":"number","minimum":0,"maximum":1},"startedWatching":{"type":"number","minimum":0},"stoppedWatching":{"type":"number","minimum":0},"totalSegmentImpressions":{"type":"number","minimum":0}},"additionalProperties":false,"required":["elapsedVideoTimeRatio","audienceWatchRatio","relativeRetentionPerformance","startedWatching","stoppedWatching","totalSegmentImpressions"]},"YoutubeAudienceScopeStatusDto":{"type":"object","properties":{"hasAnalyticsScope":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["hasAnalyticsScope"]},"YoutubeVideoRetentionResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"videoId":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","nullable":true},"publishedAt":{"type":"string","format":"date-time","nullable":true},"durationSeconds":{"type":"number","minimum":0,"nullable":true},"dateRange":{"$ref":"#/components/schemas/YoutubeAudienceDateRangeDto"},"provisionalSince":{"type":"string","format":"date"},"retentionCurve":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/YoutubeVideoRetentionPointDto"}},"note":{"type":"string"},"scopeStatus":{"$ref":"#/components/schemas/YoutubeAudienceScopeStatusDto"}},"additionalProperties":false,"required":["success","accountId","videoId","title","publishedAt","durationSeconds","dateRange","retentionCurve","scopeStatus"]},"YoutubeDemographicsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["youtube"]},"videoId":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","nullable":true},"publishedAt":{"type":"string","format":"date-time","nullable":true},"demographics":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"value":{"type":"number"}}}}},"dateRange":{"$ref":"#/components/schemas/YoutubeAudienceDateRangeDto"},"provisionalSince":{"type":"string","format":"date"},"note":{"type":"string","enum":["Age/gender values are viewer percentages (0-100). Country values are view counts. Data based on signed-in viewers only, with 2-3 day delay."]}},"additionalProperties":false,"required":["success","accountId","platform","demographics","dateRange","note"]},"TikTokAccountInsightsDateRangeDto":{"type":"object","properties":{"since":{"type":"string","format":"date"},"until":{"type":"string","format":"date"}},"additionalProperties":false,"required":["since","until"]},"TikTokAccountInsightUnavailableMetricDto":{"type":"object","properties":{"metric":{"type":"string","enum":["follower_count","following_count","likes_count","video_count","followers_gained","followers_lost"]},"reason":{"type":"string","enum":["no_data"]},"message":{"type":"string","minLength":1,"maxLength":512}},"additionalProperties":false,"required":["metric","reason","message"]},"TikTokAccountInsightsResponseDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"platform":{"type":"string","enum":["tiktok"]},"dateRange":{"$ref":"#/components/schemas/TikTokAccountInsightsDateRangeDto"},"metricType":{"type":"string","enum":["time_series","total_value"]},"breakdown":{"type":"string"},"metrics":{"type":"object","additionalProperties":{"type":"object","required":["total"],"additionalProperties":false,"properties":{"total":{"type":"number","minimum":0},"values":{"type":"array","items":{"type":"object","required":["date","value"],"additionalProperties":false,"properties":{"date":{"type":"string","format":"date"},"value":{"type":"number","minimum":0}}}},"breakdowns":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"value":{"type":"number"}}}},"unit":{"type":"string","enum":["micro_amount","unspecified"]},"currency":{"type":"string","nullable":true}}}},"unavailableMetrics":{"type":"array","items":{"$ref":"#/components/schemas/TikTokAccountInsightUnavailableMetricDto"}},"dataDelay":{"type":"string","enum":["TikTok public account counters are current values. Historical series and follower gains/losses require locally retained daily snapshots."]}},"additionalProperties":false,"required":["success","accountId","platform","dateRange","metricType","metrics","dataDelay"]},"TikTokAccountInsightsScopeStatusDto":{"type":"object","properties":{"hasStatsScope":{"type":"boolean","enum":[false]},"requiresReauthorization":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["hasStatsScope","requiresReauthorization"]},"TikTokAccountInsightsScopeMissingDto":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string","minLength":1},"code":{"type":"string","enum":["tiktok_account_insights_scope_missing"]},"scopeStatus":{"$ref":"#/components/schemas/TikTokAccountInsightsScopeStatusDto"}},"additionalProperties":false,"required":["success","error","code","scopeStatus"]},"AdvertisingLevelCapabilityDto":{"type":"object","properties":{"level":{"type":"string","enum":["campaign","ad_group","ad"]},"requiresParent":{"type":"boolean"},"maxInsightDays":{"type":"number","minimum":1,"maximum":31},"insights":{"type":"boolean"},"editableFields":{"type":"array","items":{"type":"string","enum":["name","status","daily_budget","lifetime_budget"]}}},"additionalProperties":false,"required":["level","requiresParent","maxInsightDays","insights","editableFields"]},"AdvertisingCapabilitiesDto":{"type":"object","properties":{"platform":{"type":"string"},"levels":{"type":"array","items":{"$ref":"#/components/schemas/AdvertisingLevelCapabilityDto"}},"canRead":{"type":"boolean","description":"False when current credentials need renewed permissions."},"canWrite":{"type":"boolean","description":"Requires ads:write and the provider write grant."}},"additionalProperties":false,"required":["platform","levels","canRead","canWrite"]},"AdvertisingAccountDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false,"required":["id","name"]},"AdvertisingAccountsDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdvertisingAccountDto"}},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["items","nextCursor"]},"AdvertisingBudgetDto":{"type":"object","properties":{"amount":{"type":"string","description":"Exact amount in the declared provider currency unit."},"unit":{"type":"string","enum":["major","minor","micros"]},"currency":{"type":"string","nullable":true},"period":{"type":"string","enum":["daily","lifetime"]}},"additionalProperties":false,"required":["amount","unit","currency","period"]},"AdvertisingEntityDto":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"level":{"type":"string","enum":["campaign","ad_group","ad"]},"parentId":{"type":"string","nullable":true},"name":{"type":"string"},"status":{"type":"string"},"budgets":{"type":"array","items":{"$ref":"#/components/schemas/AdvertisingBudgetDto"}},"editableFields":{"type":"array","items":{"type":"string","enum":["name","status","daily_budget","lifetime_budget"]}},"revision":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"Pass this revision when editing; stale entities return 409."}},"additionalProperties":false,"required":["id","accountId","level","parentId","name","status","budgets","editableFields","revision"]},"AdvertisingEntityPageDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AdvertisingEntityDto"}},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["items","nextCursor"]},"AdvertisingMoneyDto":{"type":"object","properties":{"amount":{"type":"string","description":"Exact amount in the declared provider currency unit."},"unit":{"type":"string","enum":["major","minor","micros"]},"currency":{"type":"string","nullable":true}},"additionalProperties":false,"required":["amount","unit","currency"]},"AdvertisingInsightsDto":{"type":"object","properties":{"accountId":{"type":"string"},"entityId":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"impressions":{"type":"string","nullable":true},"clicks":{"type":"string","nullable":true},"spend":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/AdvertisingMoneyDto"}]},"conversions":{"type":"string","nullable":true}},"additionalProperties":false,"required":["accountId","entityId","startDate","endDate","impressions","clicks","spend","conversions"]},"AdvertisingBudgetPatchDto":{"type":"object","properties":{"period":{"type":"string","enum":["daily","lifetime"]},"amount":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,18})(?:\\.[0-9]{1,6})?$"}},"additionalProperties":false,"required":["period","amount"]},"AdvertisingPatchDto":{"type":"object","properties":{"revision":{"type":"string","pattern":"^[0-9a-f]{64}$"},"name":{"type":"string","minLength":1,"maxLength":255},"status":{"type":"string","enum":["active","paused"]},"budget":{"$ref":"#/components/schemas/AdvertisingBudgetPatchDto"}},"additionalProperties":false,"required":["revision"]},"AdvertisingUpdatedDto":{"type":"object","properties":{"updated":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["updated"]},"AdAccountDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32},"name":{"type":"string","minLength":1,"maxLength":256},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"accountStatus":{"type":"integer","minimum":0},"disableReason":{"type":"integer","minimum":0},"timezoneName":{"type":"string","minLength":1,"maxLength":64},"timezoneOffsetHoursUtc":{"type":"number","minimum":-12,"maximum":14},"selectable":{"type":"boolean"},"unusableReason":{"type":"string","nullable":true,"minLength":1,"maxLength":256}},"additionalProperties":false,"required":["id","name","currency","accountStatus","selectable","unusableReason"]},"AdAccountsResponseDto":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AdAccountDto"}}},"additionalProperties":false,"required":["accounts"]},"MetaAdsAuthorizationDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"displayName":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","reconnect_required","disconnected","error"]},"connectionPurpose":{"type":"string","enum":["meta_ads"]}},"additionalProperties":false,"required":["id","profileId","displayName","username","status"]},"MetaAdsAuthorizationsResponseDto":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsAuthorizationDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["accounts","hasMore","nextCursor"]},"MetaAdsBindingDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"},"id":{"type":"string","pattern":"^[0-9a-f]{24}$"},"adAccountName":{"type":"string","minLength":1,"maxLength":256},"sourceAccountName":{"type":"string"},"status":{"type":"string","enum":["active","reconnect_required","disconnected","error"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["profileId","accountId","adAccountId","id","adAccountName","sourceAccountName","status","createdAt","updatedAt"]},"MetaAdsBindingsResponseDto":{"type":"object","properties":{"bindings":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdsBindingDto"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","nullable":true}},"additionalProperties":false,"required":["bindings","hasMore","nextCursor"]},"ConnectMetaAdsBindingDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$"},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$"}},"additionalProperties":false,"required":["profileId","accountId","adAccountId"]},"DisconnectMetaAdsBindingDto":{"type":"object","properties":{"disconnected":{"type":"boolean","enum":[true]}},"additionalProperties":false,"required":["disconnected"]},"MetaBusinessDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","maxLength":20},"name":{"type":"string","minLength":1,"maxLength":256},"verificationStatus":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","maxLength":64},"createdTime":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-](?:0\\d|1[0-4]):?[0-5]\\d)$","maxLength":32}},"additionalProperties":false,"required":["id","name","verificationStatus","createdTime"]},"MetaBusinessesPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048}},"additionalProperties":false,"required":["after"]},"MetaBusinessesResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MetaBusinessDto"}},"paging":{"$ref":"#/components/schemas/MetaBusinessesPagingDto"}},"additionalProperties":false,"required":["data","paging"]},"AdFunnelCountsDto":{"type":"object","properties":{"landingPageViews":{"type":"number"},"contentViews":{"type":"number"},"searches":{"type":"number"},"wishlistAdds":{"type":"number"},"cartAdds":{"type":"number"},"checkoutsInitiated":{"type":"number"},"paymentInfoAdds":{"type":"number"},"purchases":{"type":"number"},"leads":{"type":"number"},"registrationsCompleted":{"type":"number"},"appInstalls":{"type":"number"},"messagingConversationsStarted":{"type":"number"},"messagingFirstReplies":{"type":"number"}},"required":["landingPageViews","contentViews","searches","wishlistAdds","cartAdds","checkoutsInitiated","paymentInfoAdds","purchases","leads","registrationsCompleted","appInstalls","messagingConversationsStarted","messagingFirstReplies"]},"AdEngagementCountsDto":{"type":"object","properties":{"postEngagement":{"type":"number"},"pageEngagement":{"type":"number"},"reactions":{"type":"number"},"comments":{"type":"number"},"shares":{"type":"number"},"saves":{"type":"number"},"pageLikes":{"type":"number"},"videoViews":{"type":"number"},"linkClicks":{"type":"number"}},"required":["postEngagement","pageEngagement","reactions","comments","shares","saves","pageLikes","videoViews","linkClicks"]},"AdMetricsDto":{"type":"object","properties":{"spend":{"type":"number","description":"Total spend over the requested date range, in the ad account currency (see `currency`). Never normalised to USD."},"impressions":{"type":"number"},"clicks":{"type":"number"},"engagement":{"type":"number"},"conversions":{"type":"number","description":"Conversion events over the range. FRACTIONAL: attribution splits one conversion across touchpoints, so values like 0.347 are normal."},"ctr":{"type":"number","description":"Click-through rate (%). 0 when impressions is 0."},"cpc":{"type":"number","description":"Cost per click. 0 when clicks is 0."},"cpm":{"type":"number","description":"Cost per 1000 impressions. 0 when impressions is 0."},"costPerConversion":{"type":"number","description":"Derived spend / conversions. 0 when conversions is 0."},"actions":{"type":"object","additionalProperties":{"type":"number"},"description":"Per-action-type counts summed over the range, keyed by the platform own action-type names. Keys differ by platform, so branch on the ad platform."},"actionValues":{"type":"object","additionalProperties":{"type":"number"},"description":"Monetary mirror of actions, in the ad account currency. Meta only; other platforms report an empty object."},"purchaseValue":{"type":"number","description":"Purchase revenue selected from the first reported purchase action family."},"roas":{"type":"number","description":"purchaseValue / spend; 0 when spend is 0."},"costPerAction":{"type":"object","additionalProperties":{"type":"number"}},"videoPlayActions":{"type":"number","description":"Meta video ads only; 0 elsewhere."},"video30SecWatchedActions":{"type":"number","description":"Views lasting at least 30 seconds."},"videoThruplayWatchedActions":{"type":"number","description":"ThruPlays. Meta video ads only; 0 elsewhere."},"videoP25WatchedActions":{"type":"number"},"videoP50WatchedActions":{"type":"number"},"videoP75WatchedActions":{"type":"number"},"videoP95WatchedActions":{"type":"number"},"videoP100WatchedActions":{"type":"number"},"videoAvgTimeWatchedSeconds":{"type":"number","description":"Average seconds watched per play, aggregated as a PLAY-WEIGHTED mean (total watch time / total plays), never a mean of daily means."},"videoAvgTimeWatchedActions":{"type":"number","description":"Canonical Zernio alias for average seconds watched per play."},"costPerThruplay":{"type":"number","description":"spend / ThruPlays; 0 when no ThruPlays were reported."},"funnel":{"$ref":"#/components/schemas/AdFunnelCountsDto"},"engagementBreakdown":{"$ref":"#/components/schemas/AdEngagementCountsDto"}},"required":["spend","impressions","clicks","engagement","conversions","ctr","cpc","cpm","costPerConversion","actions","actionValues","purchaseValue","roas","costPerAction","videoPlayActions","video30SecWatchedActions","videoThruplayWatchedActions","videoP25WatchedActions","videoP50WatchedActions","videoP75WatchedActions","videoP95WatchedActions","videoP100WatchedActions","videoAvgTimeWatchedSeconds","videoAvgTimeWatchedActions","costPerThruplay","funnel","engagementBreakdown"]},"AdCampaignDto":{"type":"object","properties":{"platformCampaignId":{"type":"string","description":"The platform's own campaign id."},"platform":{"type":"string"},"campaignName":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"],"description":"Derived from child ad statuses by the precedence active > pending_review > paused > error > completed > cancelled > rejected."},"adCount":{"type":"number","description":"Number of ad documents aggregated into this campaign."},"platformAdAccountId":{"type":"string"},"accountId":{"type":"string"},"currency":{"type":"string","nullable":true,"description":"ISO 4217 code for every money field on this campaign. Budgets and spend are NOT normalised to USD."},"platformObjective":{"type":"string","nullable":true},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"},"earliestAd":{"type":"string","description":"Creation time of the earliest ad in this campaign (ISO 8601)."},"latestAd":{"type":"string","description":"Creation time of the latest ad in this campaign (ISO 8601)."}},"required":["platformCampaignId","platform","campaignName","status","adCount","platformAdAccountId","accountId","currency","platformObjective","metrics","earliestAd","latestAd"]},"PaginationDto":{"type":"object","properties":{"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"pages":{"type":"number"}},"required":["page","limit","total","pages"]},"AdCoverageDto":{"type":"object","properties":{"requestedFrom":{"type":"string","description":"First day of the requested metrics range."},"requestedTo":{"type":"string","description":"Last day of the requested metrics range."},"syncedFrom":{"type":"string","nullable":true,"description":"First day actually backed by synced data, or null when no sync has run for the selected ad accounts."},"syncedTo":{"type":"string","nullable":true,"description":"Last day actually backed by synced data, or null when no sync has run."},"complete":{"type":"boolean","description":"True only when the synced window covers the whole requested range. When false the totals above are PARTIAL."}},"required":["requestedFrom","requestedTo","syncedFrom","syncedTo","complete"]},"AdCampaignsResponseDto":{"type":"object","properties":{"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaignDto"}},"pagination":{"$ref":"#/components/schemas/PaginationDto"},"coverage":{"description":"How much of the requested range is actually backed by synced data, so partial totals are never mistaken for complete ones.","allOf":[{"$ref":"#/components/schemas/AdCoverageDto"}]}},"required":["campaigns","pagination","coverage"]},"CreateAdCampaignDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"name":{"type":"string","maxLength":255},"goal":{"type":"string","enum":["engagement","page_likes","traffic","awareness","lead_generation","lead_conversion","conversions","app_promotion","catalog_sales"],"description":"Mapped to the ODAX objective. `page_likes` maps to `OUTCOME_ENGAGEMENT`; use Page Likes optimisation in the ad-set configuration. `video_views` and `job_applicants` are NOT accepted: no source pins the ODAX objective for `video_views`, and the contract documents `job_applicants` only on LinkedIn. Guessing either would optimise the campaign for something the caller did not ask for, and spend the budget accordingly."},"specialAdCategories":{"type":"array","description":"Regulated-category declarations. Duplicates are rejected.","items":{"type":"string","enum":["HOUSING","EMPLOYMENT","CREDIT","ISSUES_ELECTIONS_POLITICS","FINANCIAL_PRODUCTS_SERVICES","ONLINE_GAMBLING_AND_GAMING"]}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED","description":"Created PAUSED unless ACTIVE is requested."}},"additionalProperties":false,"required":["accountId","adAccountId","name","goal"]},"CreateAdCampaignResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"campaignId":{"type":"string","description":"Platform id of the new campaign."},"objective":{"type":"string","description":"Resolved ODAX objective. Meta stores only SIX objectives while this API names nine goals, so the mapping is lossy BY CONSTRUCTION: a campaign created with `lead_conversion` is read back as `lead_generation`, and one created with `catalog_sales` as `conversions`, because those pairs share an objective. This field is what the campaign actually carries on Meta."},"status":{"type":"string","enum":["ACTIVE","PAUSED"]}},"required":["adAccountId","campaignId","objective","status"]},"UpdateAdCampaignStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"],"description":"Target delivery status for every non-terminal ad in the campaign."},"platform":{"type":"string","description":"Platform the campaign lives on. Must match the platform of the stored ads; only Meta (facebook, instagram) is served today and anything else is a 501 rather than a silent no-op."}},"additionalProperties":false,"required":["status","platform"]},"UpdateAdCampaignStatusResponseDto":{"type":"object","properties":{"updated":{"type":"number","description":"Ads the status change applies to. This is a claim about what the cascade covers on the platform, NOT about rows in this API's store: the stored documents keep their previous status until the next sync discovery pass reads the real one back. Writing them optimistically would publish a status the platform has not confirmed."},"skipped":{"type":"number","description":"Ads left alone because their status is terminal."},"skippedReasons":{"description":"One entry per distinct terminal status, with its count.","type":"array","items":{"type":"string"}},"message":{"type":"string","description":"Present only when no ad was actionable. In that case the platform is NOT called at all -- a campaign whose ads are all terminal has nothing to cascade to, and spending a call to learn that would spend the account's Meta budget for no effect."}},"required":["updated","skipped","skippedReasons"]},"BulkAdCampaignItemDto":{"type":"object","properties":{"platformCampaignId":{"type":"string"},"platform":{"type":"string"}},"required":["platformCampaignId","platform"]},"BulkUpdateAdCampaignStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"]},"campaigns":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/BulkAdCampaignItemDto"}}},"additionalProperties":false,"required":["status","campaigns"]},"BulkAdCampaignTotalsDto":{"type":"object","properties":{"updated":{"type":"number"},"skipped":{"type":"number"},"failed":{"type":"number","description":"Rows that failed. Counts ROWS, not ads."}},"required":["updated","skipped","failed"]},"BulkAdCampaignResultDto":{"type":"object","properties":{"platformCampaignId":{"type":"string"},"platform":{"type":"string"},"updated":{"type":"number"},"skipped":{"type":"number"},"error":{"type":"string","description":"Present only when this row failed. Carries the error CODE, not a sentence: a machine-readable code is what a caller can branch on, and the per-row shape has no envelope to put a full error object in."}},"required":["platformCampaignId","platform","updated","skipped"]},"BulkUpdateAdCampaignStatusResponseDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"]},"totals":{"$ref":"#/components/schemas/BulkAdCampaignTotalsDto"},"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkAdCampaignResultDto"}}},"required":["status","totals","results"]},"DeleteAdCampaignDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram","google"],"description":"Platform the campaign lives on."},"accountId":{"type":"string","description":"Social account id owning the ad account. Required ONLY to delete an EMPTY campaign (zero ads), which has no stored ad document to resolve a token from. Ignored when the campaign does have ads: those documents already know which account owns them, and trusting a caller-supplied hint instead would mean trying the delete with another account's token."}},"additionalProperties":false,"required":["platform"]},"DeleteAdCampaignResponseDto":{"type":"object","properties":{"deleted":{"type":"boolean","description":"Always true when this returns. A campaign the platform reports as already gone counts as deleted -- treating that as an error would trap a caller retrying after a partial failure in a loop they cannot exit."},"adCount":{"type":"number","description":"Stored ad documents marked `cancelled`. Unlike the status endpoint, this write is NOT optimistic: a deleted campaign leaves its ads no other possible state, and the sync discovery pass will never see them again to correct the record."}},"required":["deleted","adCount"]},"UpdateAdCampaignDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram"],"description":"Platform the campaign lives on. Required: platform campaign ids are not globally unique. Must match the platform of the stored ads; only Meta (facebook, instagram) is served today and anything else is a 501 rather than a silent no-op."},"name":{"type":"string","maxLength":255,"description":"New campaign name. Together with `platform` this is the whole accepted body; `accountId`, `budget`, `bidStrategy`, `bidAmount`, `roasAverageFloor` and `platformSpecificData` are rejected with a per-field reason rather than dropped."}},"additionalProperties":false,"required":["platform","name"]},"UpdateAdCampaignResponseDto":{"type":"object","properties":{"campaignId":{"type":"string","description":"The platform's own campaign id."},"name":{"type":"string","description":"The name the platform now carries."},"updated":{"type":"number","description":"Stored ad documents whose denormalised campaign name was refreshed. Unlike a status change this write is safe: the name is what we just set, not a cascade we are guessing at. NOTE: the sibling status endpoints publish an `updated` too, but theirs counts what the platform cascade covers, not rows in this store."}},"required":["campaignId","name","updated"]},"DuplicateAdCampaignDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram"]},"deepCopy":{"type":"boolean","default":true,"description":"Copy child ad sets, ads, creatives and targeting."},"statusOption":{"type":"string","enum":["ACTIVE","PAUSED","INHERITED_FROM_SOURCE"],"default":"PAUSED","description":"PAUSED is the default and the safe one: ACTIVE (or INHERITED_FROM_SOURCE over an active source) starts a SECOND front of spend the moment the clone goes live."},"renameStrategy":{"type":"string","enum":["DEEP_RENAME","ONLY_TOP_LEVEL_RENAME","NO_RENAME"]},"renamePrefix":{"type":"string","maxLength":64},"renameSuffix":{"type":"string","maxLength":64},"syncAfter":{"type":"boolean","default":true,"description":"Bring forward the owning account's next ads discovery run so the copy materializes sooner. The copy is NOT written locally by this call; discovery is what makes it visible."}},"additionalProperties":false,"required":["platform"]},"DuplicateAdCampaignResponseDto":{"type":"object","properties":{"copiedCampaignId":{"type":"string","description":"Platform id of the new campaign."},"discovery":{"type":"string","enum":["triggered","skipped","failed"],"description":"`triggered` when the owning account's next sync was brought forward, `skipped` when syncAfter was false, `failed` when the copy succeeded but the schedule could not be advanced. `failed` is NOT an error for the copy itself -- the campaign exists either way, it just surfaces on the normal cadence instead of immediately."}},"required":["copiedCampaignId","discovery"]},"AdTreeAdDto":{"type":"object","properties":{"id":{"type":"string"},"platformAdId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"]},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"}},"required":["id","platformAdId","name","status","metrics"]},"AdTreeAdSetDto":{"type":"object","properties":{"platformAdSetId":{"type":"string","description":"The platform's ad set id, or the synthetic `ungrouped:none` bucket for ads the platform reported without one."},"adSetName":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"]},"adCount":{"type":"number"},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"},"ads":{"type":"array","items":{"$ref":"#/components/schemas/AdTreeAdDto"}}},"required":["platformAdSetId","adSetName","status","adCount","metrics","ads"]},"AdTreeCampaignDto":{"type":"object","properties":{"platformCampaignId":{"type":"string"},"platform":{"type":"string"},"campaignName":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"],"description":"Derived from descendant ad statuses by the documented precedence."},"adCount":{"type":"number"},"adSetCount":{"type":"number"},"platformAdAccountId":{"type":"string"},"accountId":{"type":"string"},"currency":{"type":"string","nullable":true},"platformObjective":{"type":"string","nullable":true},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"},"adSets":{"type":"array","items":{"$ref":"#/components/schemas/AdTreeAdSetDto"}}},"required":["platformCampaignId","platform","campaignName","status","adCount","adSetCount","platformAdAccountId","accountId","currency","platformObjective","metrics","adSets"]},"AdTreeResponseDto":{"type":"object","properties":{"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/AdTreeCampaignDto"}},"pagination":{"$ref":"#/components/schemas/PaginationDto"},"coverage":{"$ref":"#/components/schemas/AdCoverageDto"}},"required":["campaigns","pagination","coverage"]},"AdsTimelineRowDto":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The calendar day (YYYY-MM-DD) these totals belong to."},"spend":{"type":"number","description":"Native currency units, matching the /v1/ads/tree convention. Never normalised to USD."},"impressions":{"type":"number"},"reach":{"type":"number","description":"Reach summed across the account's ads for this single day. A person seen by two ads the same day counts twice, and reach is de-duplicated per day only: do NOT sum it across days (people reached on multiple days would be double-counted)."},"clicks":{"type":"number"},"engagement":{"type":"number"},"ctr":{"type":"number","description":"Click-through rate as a percentage (0-100)."},"cpc":{"type":"number","description":"Cost per click in native currency."},"cpm":{"type":"number","description":"Cost per 1000 impressions in native currency."},"conversions":{"type":"number","description":"Conversion events on this day. FRACTIONAL: attribution splits one conversion across touchpoints, so values like 0.347 are normal."},"costPerConversion":{"type":"number","description":"Derived spend / conversions. 0 when conversions is 0."},"actions":{"type":"object","additionalProperties":{"type":"number"},"description":"Per-action-type counts merged across all ads on this day. Keys are platform-native action types, so branch on the ad platform."},"actionValues":{"type":"object","additionalProperties":{"type":"number"},"description":"Monetary mirror of `actions` in native currency. Meta only; other platforms report an empty object."},"purchaseValue":{"type":"number","description":"Purchase-type action value on this day, in the ad account's native currency. Read from the FIRST purchase action type present in `actionValues`, not the sum of all of them: the platform reports one sale under several action types at once, so summing would multiply the same revenue. 0 when the account reports no purchase value."},"roas":{"type":"number","description":"Derived purchaseValue / spend. 0 when spend is 0, never null or NaN."}},"required":["date","spend","impressions","reach","clicks","engagement","ctr","cpc","cpm","conversions","costPerConversion","actions","actionValues","purchaseValue","roas"]},"AdsTimelineResponseDto":{"type":"object","properties":{"backfillPending":{"type":"boolean","description":"True when the requested range reaches past the ingested history for the selected ad accounts. The rows below are then the COVERED part only; the response carries HTTP 202 and the remainder is filled in by the background sync. Repeat the request shortly until it returns 200."},"rows":{"description":"One row per calendar day in the range that has ad activity, oldest first. Days with no activity are OMITTED rather than emitted as zero rows -- an empty array is the documented signal for \"no ad activity in the range\", and dense zero-filling would make that signal unreachable for every account that ever ran an ad. A gap in the series therefore means \"no delivery that day\"; a range that was never ingested is reported by `backfillPending`, not by missing rows.","type":"array","items":{"$ref":"#/components/schemas/AdsTimelineRowDto"}}},"required":["backfillPending","rows"]},"AdCampaignAnalyticsSummaryDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"platform":{"type":"string"},"status":{"type":"string","enum":["active","pending_review","paused","error","completed","cancelled","rejected"]},"adCount":{"type":"number"},"currency":{"type":"string","nullable":true},"platformAdAccountId":{"type":"string","nullable":true}},"required":["id","name","platform","status","adCount","currency","platformAdAccountId"]},"AdDailyMetricsPointDto":{"type":"object","properties":{"date":{"type":"string","description":"Calendar day (YYYY-MM-DD) these metrics apply to."},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"}},"required":["date","metrics"]},"AdCampaignAnalyticsResponseDto":{"type":"object","properties":{"campaign":{"$ref":"#/components/schemas/AdCampaignAnalyticsSummaryDto"},"metrics":{"description":"Totals over the whole range.","allOf":[{"$ref":"#/components/schemas/AdMetricsDto"}]},"daily":{"description":"One entry per day that has data, oldest first. Days with no delivery are OMITTED rather than zero-filled: a stored zero and an unsynced day are different facts, and `coverage` is what distinguishes them.","type":"array","items":{"$ref":"#/components/schemas/AdDailyMetricsPointDto"}},"coverage":{"$ref":"#/components/schemas/AdCoverageDto"}},"required":["campaign","metrics","daily","coverage"]},"DuplicateAdSetDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram"],"description":"Platform the ad set lives on. Only Meta (facebook, instagram) is served today."},"campaignId":{"type":"string","description":"Destination platform campaign id. Omitted = the source's own campaign."},"deepCopy":{"type":"boolean","default":true,"description":"Copy the child ads and their creatives."},"statusOption":{"type":"string","enum":["ACTIVE","PAUSED","INHERITED_FROM_SOURCE"],"default":"PAUSED","description":"Delivery state of the copy. Defaults to PAUSED so a caller can review before spending: a duplicate that starts delivering the moment it is created spends money on a configuration nobody has looked at."},"startTime":{"type":"string","format":"date-time","description":"Reschedule the copy's start. MUST carry a UTC offset (2026-09-01T10:00:00+03:00). Without one the platform reads it in the AD ACCOUNT's timezone, which is not something the caller can see from here, and delivery would shift by hours."},"endTime":{"type":"string","format":"date-time","description":"Reschedule the copy's end. Must be after `startTime` and carry an offset."},"renameStrategy":{"type":"string","enum":["DEEP_RENAME","ONLY_TOP_LEVEL_RENAME","NO_RENAME"]},"renamePrefix":{"type":"string","maxLength":64,"description":"Prefix for the copied name. NOT trimmed -- a prefix exists to carry its trailing space (\"Copy of \"), and trimming would produce \"Copy ofSummer Sale\"."},"renameSuffix":{"type":"string","maxLength":64},"syncAfter":{"type":"boolean","default":true,"description":"Pull the account's next discovery pass forward so the copy shows up sooner. Nothing is written locally either way."}},"additionalProperties":false,"required":["platform"]},"DuplicateAdSetResponseDto":{"type":"object","properties":{"copiedAdSetId":{"type":"string","description":"Platform id of the new ad set."},"discovery":{"type":"string","enum":["triggered","skipped","failed"],"description":"What happened to the discovery nudge. `failed` does NOT mean the copy failed -- the ad set exists on the platform either way; only its visibility here is delayed. Reporting the copy as failed would send the caller to create a SECOND one."}},"required":["copiedAdSetId","discovery"]},"AdSetBudgetDto":{"type":"object","properties":{"amount":{"type":"number","description":"Amount in the ad account's WHOLE currency units (USD: 19.99 = $19.99; JPY: 1000 = 1000 yen). It is converted to the integer minor-unit value Meta expects using the platform's own published currency offset. More decimal places than the currency supports is an error, not a rounding: silently rounding would change the number the caller wrote."},"type":{"type":"string","enum":["daily","lifetime"]}},"required":["amount","type"]},"AdSetPromotedObjectDto":{"type":"object","properties":{"pageId":{"type":"string"},"pixelId":{"type":"string"},"customEventType":{"type":"string"},"customEventStr":{"type":"string"},"applicationId":{"type":"string"},"objectStoreUrl":{"type":"string"},"customConversionId":{"type":"string"},"productCatalogId":{"type":"string"},"productSetId":{"type":"string"},"offlineConversionDataSetId":{"type":"string"}}},"AdSetPlatformSpecificDataDto":{"type":"object","properties":{"optimizationGoal":{"type":"string","enum":["ADVERTISER_SILOED_VALUE","AD_RECALL_LIFT","APP_INSTALLS","APP_INSTALLS_AND_OFFSITE_CONVERSIONS","AUTOMATIC_OBJECTIVE","CONVERSATIONS","DERIVED_EVENTS","ENGAGED_PAGE_VIEWS","ENGAGED_USERS","EVENT_RESPONSES","IMPRESSIONS","IN_APP_VALUE","LANDING_PAGE_VIEWS","LEAD_GENERATION","LINK_CLICKS","MEANINGFUL_CALL_ATTEMPT","MESSAGING_APPOINTMENT_CONVERSION","MESSAGING_DEEP_CONVERSATION_AND_FOLLOW","MESSAGING_PURCHASE_CONVERSION","NONE","OFFSITE_CONVERSIONS","PAGE_LIKES","POST_ENGAGEMENT","PROFILE_AND_PAGE_ENGAGEMENT","PROFILE_VISIT","QUALITY_CALL","QUALITY_LEAD","REACH","REMINDERS_SET","SUBSCRIBERS","THRUPLAY","VALUE","VISIT_INSTAGRAM_PROFILE"]},"billingEvent":{"type":"string","enum":["APP_INSTALLS","CLICKS","IMPRESSIONS","LINK_CLICKS","LISTING_INTERACTION","NONE","OFFER_CLAIMS","PAGE_LIKES","POST_ENGAGEMENT","PURCHASE","THRUPLAY"]},"startDate":{"type":"string","description":"Meta start_time; ISO 8601 with UTC offset."},"endDate":{"type":"string","description":"Meta end_time; ISO 8601 with UTC offset."},"promotedObject":{"$ref":"#/components/schemas/AdSetPromotedObjectDto"}}},"UpdateAdSetDto":{"type":"object","properties":{"platform":{"type":"string","description":"Platform the ad set lives on. Only Meta (facebook, instagram) is served today."},"budget":{"description":"Ad-set (ABO) budget. If the parent campaign uses campaign budget optimisation, Meta rejects this and its error is passed through -- this API does not preflight the campaign, because it stores no campaign row to read the budget level from and guessing would be worse than the platform's own answer.","allOf":[{"$ref":"#/components/schemas/AdSetBudgetDto"}]},"status":{"type":"string","enum":["active","paused"]},"name":{"type":"string","maxLength":255},"bidStrategy":{"type":"string","enum":["LOWEST_COST_WITHOUT_CAP","LOWEST_COST_WITH_BID_CAP","COST_CAP","LOWEST_COST_WITH_MIN_ROAS"],"description":"Ad-set bid strategy. `LOWEST_COST_WITH_MIN_ROAS` requires `roasAverageFloor`. `LOWEST_COST_WITH_BID_CAP` and `COST_CAP` REQUIRE `bidAmount`; `LOWEST_COST_WITHOUT_CAP` forbids it."},"bidAmount":{"type":"number","description":"Bid cap in WHOLE currency units, converted like `budget.amount`."},"roasAverageFloor":{"type":"number","minimum":0,"exclusiveMinimum":true,"description":"Decimal ROAS multiplier (2.0 = 2x). Required with LOWEST_COST_WITH_MIN_ROAS and sent to Meta as `bid_constraints.roas_average_floor` multiplied by 10,000."},"platformSpecificData":{"description":"Meta post-launch delivery settings. Unknown keys are rejected. Phone/SMS delivery fields are intentionally outside this API surface.","allOf":[{"$ref":"#/components/schemas/AdSetPlatformSpecificDataDto"}]},"valueRuleSetId":{"type":"string","pattern":"^[1-9]\\d{0,20}$","description":"Attaches -- or REPLACES -- the value rule set that adjusts this ad set's bids. Attachment is driven by this id's presence, so `valueRulesApplied: true` is optional alongside it. Sending a different id replaces the previous association; there is no separate replace call.\n\nCreate, read and delete the sets themselves through `/v1/ads/value-rule-sets`.\n\nELIGIBILITY IS ENFORCED BY META, not here: only ad sets on `LOWEST_COST_WITHOUT_CAP` or `COST_CAP` accept a value rule set. This API stores no ad-set bid strategy to preflight against, and its error is passed through rather than guessed at."},"valueRulesApplied":{"type":"boolean","description":"DETACH: send `false` and OMIT `valueRuleSetId`. Sending `false` TOGETHER with `valueRuleSetId` is a 400 `mutually_exclusive_fields` -- Meta attaches the rule set whenever `value_rule_set_id` is present, even with `value_rules_applied` false, so echoing stored state while asking to detach would silently keep the bid adjustments live.\n\nMeta does not document this as a readable ad-set field, so it cannot be read back: `updated` is the only confirmation this API can give. `GET /v1/ads/ad-sets/{adSetId}?fields=value_rule_set_id` does read the id back."}},"additionalProperties":false,"required":["platform"]},"UpdateAdSetResponseDto":{"type":"object","properties":{"adSetId":{"type":"string","description":"The platform's own ad set id."},"updated":{"description":"The fields this call actually wrote, in the order they were applied. Meta's mutation response is `{success:true}` and carries no state, so this echoes what was accepted rather than pretending to read anything back.","type":"array","items":{"type":"string"}},"budget":{"description":"Echo of the budget that was written, converted BACK from minor units. Round-tripping it is what lets a caller confirm the conversion agreed with what they meant.","allOf":[{"$ref":"#/components/schemas/AdSetBudgetDto"}]},"bidAmount":{"type":"number","description":"Echo of the bid cap written."},"currency":{"type":"string","description":"ISO 4217 code the amounts were converted with."},"budgetLevel":{"type":"string","enum":["adset"],"description":"Always `adset` here. The contract carries it so a caller that also writes campaign-level budgets can tell the two responses apart without tracking which endpoint it called."},"status":{"type":"string","enum":["active","paused"],"description":"Echo of the delivery status written, when one was written."},"bidStrategy":{"type":"string","enum":["LOWEST_COST_WITHOUT_CAP","LOWEST_COST_WITH_BID_CAP","COST_CAP","LOWEST_COST_WITH_MIN_ROAS"],"description":"Echo of the bid strategy written, when one was written."},"roasAverageFloor":{"type":"number","nullable":true,"description":"Echo of the decimal ROAS floor written."},"platformSpecificData":{"$ref":"#/components/schemas/AdSetPlatformSpecificDataDto"},"statusUpdated":{"type":"number","description":"Ads the status change applies to, present only when `status` was written. Same meaning as on the dedicated status endpoint: a claim about the platform cascade, NOT about rows in this API's store."},"statusSkipped":{"type":"number","description":"Ads left alone because their status is terminal."}},"required":["adSetId","updated"]},"UpdateAdSetStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"],"description":"Target delivery status for this ad set."},"platform":{"type":"string","description":"Platform the ad set lives on. Must match the platform of its stored ads; only Meta (facebook, instagram) is served today and anything else is a 501 rather than a silent no-op."}},"additionalProperties":false,"required":["status","platform"]},"UpdateAdSetStatusResponseDto":{"type":"object","properties":{"updated":{"type":"number","description":"Ads the status change applies to. Like the campaign endpoint this is a claim about what the cascade covers on the platform, NOT about rows in this API's store: the stored documents keep their previous status until the next sync discovery pass reads the real one back. Writing them optimistically would publish a status the platform has not confirmed -- an ad still in review does not simply become paused because its parent was."},"skipped":{"type":"number","description":"Ads left alone because their status is terminal (rejected, completed, cancelled)."},"message":{"type":"string","description":"Present only when no ad was actionable. In that case the platform is NOT called at all -- an ad set whose ads are all terminal has nothing to cascade to, and spending a call to learn that would spend the account's platform budget for no effect."}},"required":["updated","skipped"]},"DeleteAdSetResponseDto":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the provider deletion completed or the provider reports the ad set as already absent."},"adCount":{"type":"number","description":"Stored ad documents newly marked cancelled."}},"required":["deleted","adCount"]},"AdSetDetailsResponseDto":{"type":"object","properties":{"adSet":{"type":"object","additionalProperties":true,"description":"The ad set exactly as the platform returned it. Keys are the fields that were requested -- this API does not add, rename or drop any of them. Under the default projection this includes `learning_stage_info`; note that Meta OMITS that block's `status` key on paused ad sets, so a caller must treat it as optional rather than assume delivery data is missing."}},"required":["adSet"]},"AdCreativesPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"description":"Cursor for the next page; null when exhausted. Derived from the presence of the platform's `next` link, NOT from its cursor block -- the platform returns a cursor on the LAST page too, and reading that one would page forever."}},"required":["after"]},"ListAdCreativesResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","description":"The ad account the library was read from."},"data":{"description":"Creative rows exactly as the platform returned them. Keys are the fields that were requested -- nothing is added, renamed or dropped. Any `id` here is reusable when creating an ad.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdCreativesPagingDto"}},"required":["adAccountId","data","paging"]},"AdCreativeResponseDto":{"type":"object","properties":{"creative":{"type":"object","additionalProperties":true,"description":"The creative exactly as the platform returned it."}},"required":["creative"]},"UpdateAdCreativeDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"name":{"type":"string","maxLength":255,"description":"New creative name. Leading and trailing whitespace is REJECTED, not trimmed: the platform trims silently, so an untrimmed name would read back different from what was sent."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","name"]},"UpdateAdCreativeResponseDto":{"type":"object","properties":{"creativeId":{"type":"string","description":"The platform's own creative id."},"name":{"type":"string","description":"The name the platform now carries."},"message":{"type":"string","description":"Human-readable confirmation. Carries the same fact as the fields above rather than new information -- it exists so a caller surfacing raw responses to an operator has a sentence to show."}},"required":["creativeId","name","message"]},"DeleteAdCreativeResponseDto":{"type":"object","properties":{"deleted":{"type":"boolean","description":"Always true when the call succeeded."},"creativeId":{"type":"string","description":"The creative id that was deleted."},"message":{"type":"string","description":"Human-readable confirmation. It states only what this call did -- it does NOT claim anything about ads that referenced the creative, because this API does not know which ones did."}},"required":["deleted","creativeId","message"]},"AdCreativeCardDto":{"type":"object","properties":{"linkUrl":{"type":"string","format":"uri"},"imageUrl":{"type":"string","format":"uri","description":"Exactly one of imageUrl or imageHash per card."},"imageHash":{"type":"string"},"headline":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":255},"callToAction":{"type":"string","enum":["LEARN_MORE","SHOP_NOW","SIGN_UP","BOOK_TRAVEL","CONTACT_US","DOWNLOAD","GET_OFFER","GET_QUOTE","SUBSCRIBE","WATCH_MORE","ADD_TO_CART","APPLY_NOW","BOOK_NOW","BUY_TICKETS","DONATE","DONATE_NOW","GET_DIRECTIONS","GET_SHOWTIMES","LISTEN_NOW","ORDER_NOW","PLAY_GAME","REQUEST_TIME","SEE_MENU","START_ORDER","INSTALL_MOBILE_APP","USE_APP","REGISTER","JOIN","ATTEND","REQUEST_DEMO","VIEW_QUOTE","APPLY","SEE_MORE","BUY_NOW","WHATSAPP_MESSAGE","MESSAGE_PAGE","CALL_NOW"],"description":"The card's call to action. Its destination is the card's own linkUrl -- the platform requires the two to match, so it is not taken separately."}},"required":["linkUrl"]},"CreateAdCreativeDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id; also resolves the Page story actor."},"adAccountId":{"type":"string","description":"Platform ad account id (act_<n>) the creative is made in."},"headline":{"type":"string","maxLength":255,"description":"Headline."},"body":{"type":"string","description":"Primary text."},"linkUrl":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":255,"description":"Link description below the headline; omitted = the platform scrapes the destination's own description."},"callToAction":{"type":"string","enum":["LEARN_MORE","SHOP_NOW","SIGN_UP","BOOK_TRAVEL","CONTACT_US","DOWNLOAD","GET_OFFER","GET_QUOTE","SUBSCRIBE","WATCH_MORE","ADD_TO_CART","APPLY_NOW","BOOK_NOW","BUY_TICKETS","DONATE","DONATE_NOW","GET_DIRECTIONS","GET_SHOWTIMES","LISTEN_NOW","ORDER_NOW","PLAY_GAME","REQUEST_TIME","SEE_MENU","START_ORDER","INSTALL_MOBILE_APP","USE_APP","REGISTER","JOIN","ATTEND","REQUEST_DEMO","VIEW_QUOTE","APPLY","SEE_MORE","BUY_NOW","WHATSAPP_MESSAGE","MESSAGE_PAGE","CALL_NOW"],"default":"LEARN_MORE"},"imageUrl":{"type":"string","format":"uri","description":"Publicly reachable image. The platform fetches it and saves it into the ad account's image library -- no separate upload step is needed. Exactly one of imageUrl, imageHash or carouselCards."},"imageHash":{"type":"string","description":"Existing library image hash."},"carouselCards":{"minItems":2,"maxItems":10,"description":"Carousel cards. The platform allows 2-5 by default and up to 10 only while its own multi-share optimisation is on -- which is its default and is left untouched here, so 10 is the ceiling. Note the platform shows only the first 5 on Instagram regardless.","type":"array","items":{"$ref":"#/components/schemas/AdCreativeCardDto"}},"urlTags":{"type":"string","description":"Appended to every outbound URL (e.g. utm_source=fb)."},"name":{"type":"string","maxLength":255,"description":"Name in the creative library."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","headline","body","linkUrl"]},"CreateAdCreativeResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","description":"The ad account the creative was created in."},"creativeId":{"type":"string","description":"Platform creative id, reusable when creating an ad."}},"required":["adAccountId","creativeId"]},"AdImagesPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when exhausted. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded; only its envelope is checked and its length bounded."}},"required":["after"]},"ListAdImagesResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","description":"The ad account the library was read from."},"data":{"description":"Image rows exactly as the platform returned them -- nothing is added, renamed or dropped. Keys are whatever `fields` selected. Any `hash` here is reusable wherever the platform accepts an image hash (e.g. `imageHash` on POST /v1/ads/creatives).","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdImagesPagingDto"}},"required":["adAccountId","data","paging"]},"UploadAdImageDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"adAccountId":{"type":"string","description":"Platform ad account id (act_<n>) the image is uploaded into."},"imageBase64":{"type":"string","description":"Raw base64 image bytes, or a full data URL (the `data:image/...;base64,` prefix is stripped before decoding). Max 31457280 bytes DECODED. The payload is validated STRICTLY: a malformed one is a 400 here rather than a provider rejection, because a lenient decoder silently drops invalid characters and would ship rubbish upstream."},"filename":{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9 ._-]*\\.[A-Za-z0-9]{1,12}$","default":"ad_image.jpg","description":"Filename shown in the platform image library. A filename EXTENSION is required -- the platform documents that `sample` and `sample.tmp` are rejected, so requiring one here enforces its rule in the right place instead of buying a provider 400."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","imageBase64"]},"UploadedAdImageDto":{"type":"object","properties":{"hash":{"type":"string","description":"Platform image hash, reusable wherever an image hash is accepted (e.g. `imageHash` on POST /v1/ads/creatives)."},"url":{"type":"string","description":"Platform-hosted image URL, usable as `imageUrl` on the create endpoints (the platform re-fetches it into the library). It is NOT interchangeable with `hash`: the platform documents that this URL must not be embedded in an ad creative directly."}},"required":["hash","url"]},"UploadAdImageResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","description":"The ad account the image was uploaded into."},"image":{"$ref":"#/components/schemas/UploadedAdImageDto"}},"required":["adAccountId","image"]},"UploadAdVideoDto":{"type":"object","properties":{"accountId":{"type":"string"},"adAccountId":{"type":"string","description":"Platform ad account id (act_<n>)."},"videoUrl":{"type":"string","format":"uri","description":"Public HTTPS video URL. Exactly one of videoUrl/videoBase64 is required. Every DNS result and redirect target is checked against private/reserved networks; download is bounded to 62914560 bytes."},"videoBase64":{"type":"string","description":"Raw standard base64 or data:video/...;base64 payload. Exactly one source is required; decoded bytes are capped at 4194304."},"filename":{"type":"string","maxLength":255,"pattern":"^(?!\\.)(?!.*\\.\\.)(?!.*[\\\\/\"\\r\\n\\u0000-\\u001f\\u007f])[^.].*\\.[A-Za-z0-9]{2,10}$","default":"ad_video.mp4","description":"Multipart filename for videoBase64 uploads. URL uploads use the fixed default filename regardless of this field."}},"additionalProperties":false,"required":["accountId","adAccountId"]},"UploadedAdVideoDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"thumbnailUrl":{"type":"string","nullable":true}},"additionalProperties":false,"required":["id","thumbnailUrl"]},"UploadAdVideoResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"video":{"$ref":"#/components/schemas/UploadedAdVideoDto"}},"additionalProperties":false,"required":["adAccountId","video"]},"AdVideosPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true}},"additionalProperties":false,"required":["after"]},"ListAdVideosResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"data":{"type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdVideosPagingDto"}},"additionalProperties":false,"required":["adAccountId","data","paging"]},"DeleteAdVideoResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"videoId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"success":{"type":"boolean"}},"additionalProperties":false,"required":["adAccountId","videoId","success"]},"GoogleAdsLocalServicesLeadContactDto":{"type":"object","properties":{"consumerName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phoneNumber":{"type":"string","nullable":true}},"additionalProperties":false,"required":["consumerName","email","phoneNumber"]},"GoogleAdsLocalServicesLeadDto":{"type":"object","properties":{"id":{"type":"string","nullable":true},"leadType":{"type":"string","nullable":true},"categoryId":{"type":"string","nullable":true},"serviceId":{"type":"string","nullable":true},"contact":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GoogleAdsLocalServicesLeadContactDto"}]},"status":{"type":"string","nullable":true},"createdTime":{"type":"string","nullable":true},"locale":{"type":"string","nullable":true},"charged":{"type":"boolean"},"creditState":{"type":"string","nullable":true},"creditStateLastUpdate":{"type":"string","nullable":true}},"additionalProperties":false,"required":["id","leadType","categoryId","serviceId","contact","status","createdTime","locale","charged","creditState","creditStateLastUpdate"]},"GoogleAdsPagingDto":{"type":"object","properties":{"nextPageToken":{"type":"string","nullable":true}},"additionalProperties":false,"required":["nextPageToken"]},"GoogleAdsLocalServicesLeadListResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsLocalServicesLeadDto"}},"paging":{"$ref":"#/components/schemas/GoogleAdsPagingDto"}},"additionalProperties":false,"required":["customerId","data","paging"]},"GoogleAdsLocalServicesPhoneCallDto":{"type":"object","properties":{"callDurationMillis":{"type":"number","nullable":true},"callRecordingUrl":{"type":"string","nullable":true}},"additionalProperties":false,"required":["callDurationMillis","callRecordingUrl"]},"GoogleAdsLocalServicesMessageDto":{"type":"object","properties":{"text":{"type":"string","nullable":true},"attachmentUrls":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["text","attachmentUrls"]},"GoogleAdsLocalServicesConversationDto":{"type":"object","properties":{"id":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"participantType":{"type":"string","nullable":true},"eventDateTime":{"type":"string","nullable":true},"phoneCall":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GoogleAdsLocalServicesPhoneCallDto"}]},"message":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GoogleAdsLocalServicesMessageDto"}]}},"additionalProperties":false,"required":["id","channel","participantType","eventDateTime","phoneCall","message"]},"GoogleAdsLocalServicesConversationListResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsLocalServicesConversationDto"}},"paging":{"$ref":"#/components/schemas/GoogleAdsPagingDto"}},"additionalProperties":false,"required":["customerId","data","paging"]},"GoogleAdsKeywordDto":{"type":"object","properties":{"id":{"type":"string"},"campaignId":{"type":"string"},"campaignName":{"type":"string","nullable":true},"campaignStatus":{"type":"string","nullable":true},"adSetId":{"type":"string"},"adSetName":{"type":"string","nullable":true},"adSetStatus":{"type":"string","nullable":true},"keyword":{"type":"string"},"matchType":{"type":"string","enum":["exact","phrase","broad","unknown"]},"status":{"type":"string","enum":["active","paused"]},"negative":{"type":"boolean"}},"additionalProperties":false,"required":["id","campaignId","campaignName","campaignStatus","adSetId","adSetName","adSetStatus","keyword","matchType","status","negative"]},"GoogleAdsKeywordListResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsKeywordDto"}},"paging":{"$ref":"#/components/schemas/GoogleAdsPagingDto"}},"additionalProperties":false,"required":["customerId","keywords","paging"]},"GoogleAdsSearchTermDto":{"type":"object","properties":{"searchTerm":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"matchType":{"type":"string","nullable":true},"campaignId":{"type":"string","nullable":true},"campaignName":{"type":"string","nullable":true},"adGroupId":{"type":"string","nullable":true},"adGroupName":{"type":"string","nullable":true},"impressions":{"type":"string","description":"Int64 encoded as a decimal string."},"clicks":{"type":"string","description":"Int64 encoded as a decimal string."},"costMicros":{"type":"string","description":"Int64 micros encoded as a decimal string."},"conversions":{"type":"number"},"conversionsValue":{"type":"number"}},"additionalProperties":false,"required":["searchTerm","status","matchType","campaignId","campaignName","adGroupId","adGroupName","impressions","clicks","costMicros","conversions","conversionsValue"]},"GoogleAdsSearchTermsResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSearchTermDto"}},"paging":{"$ref":"#/components/schemas/GoogleAdsPagingDto"}},"additionalProperties":false,"required":["customerId","data","paging"]},"GoogleAdsKeywordIdeasRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","maxLength":24},"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$","maxLength":10},"countries":{"minItems":1,"maxItems":10,"items":{"type":"string","pattern":"^[A-Z]{2}$","minLength":2,"maxLength":2},"description":"Unique ISO 3166-1 alpha-2 country codes.","type":"array"},"languageConstantId":{"type":"string","default":"1000","pattern":"^[1-9][0-9]{0,9}$","maxLength":10},"network":{"type":"string","enum":["GOOGLE_SEARCH","GOOGLE_SEARCH_AND_PARTNERS"],"default":"GOOGLE_SEARCH"},"includeAdultKeywords":{"type":"boolean"},"seedKeywords":{"minItems":1,"maxItems":20,"items":{"type":"string","minLength":1,"maxLength":80},"type":"array"},"seedUrl":{"type":"string","format":"uri","maxLength":4096},"pageSize":{"type":"number","minimum":1,"maximum":10000},"pageToken":{"type":"string","maxLength":2048}},"additionalProperties":false,"required":["accountId"]},"GoogleAdsMonthlySearchVolumeDto":{"type":"object","properties":{"month":{"type":"string"},"year":{"type":"string","description":"Int64 encoded as a decimal string."},"monthlySearches":{"type":"string","description":"Int64 encoded as a decimal string."}},"additionalProperties":false,"required":["month","year","monthlySearches"]},"GoogleAdsKeywordMetricsDto":{"type":"object","properties":{"avgMonthlySearches":{"type":"string","nullable":true},"competition":{"type":"string","nullable":true},"competitionIndex":{"type":"string","nullable":true},"lowTopOfPageBidMicros":{"type":"string","nullable":true},"highTopOfPageBidMicros":{"type":"string","nullable":true},"averageCpcMicros":{"type":"string","nullable":true},"monthlySearchVolumes":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsMonthlySearchVolumeDto"}}},"additionalProperties":false,"required":["avgMonthlySearches","competition","competitionIndex","lowTopOfPageBidMicros","highTopOfPageBidMicros","averageCpcMicros","monthlySearchVolumes"]},"GoogleAdsKeywordIdeaDto":{"type":"object","properties":{"text":{"type":"string"},"closeVariants":{"type":"array","items":{"type":"string"}},"keywordMetrics":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/GoogleAdsKeywordMetricsDto"}]}},"additionalProperties":false,"required":["text","closeVariants","keywordMetrics"]},"GoogleAdsKeywordIdeasResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsKeywordIdeaDto"}},"totalSize":{"type":"string","nullable":true},"paging":{"$ref":"#/components/schemas/GoogleAdsPagingDto"}},"additionalProperties":false,"required":["customerId","data","totalSize","paging"]},"GoogleAdsHistoricalMetricsRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","maxLength":24},"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$","maxLength":10},"countries":{"minItems":1,"maxItems":10,"items":{"type":"string","pattern":"^[A-Z]{2}$","minLength":2,"maxLength":2},"description":"Unique ISO 3166-1 alpha-2 country codes.","type":"array"},"languageConstantId":{"type":"string","default":"1000","pattern":"^[1-9][0-9]{0,9}$","maxLength":10},"network":{"type":"string","enum":["GOOGLE_SEARCH","GOOGLE_SEARCH_AND_PARTNERS"],"default":"GOOGLE_SEARCH"},"includeAdultKeywords":{"type":"boolean"},"keywords":{"minItems":1,"maxItems":1000,"items":{"type":"string","minLength":1,"maxLength":80},"type":"array"},"includeAverageCpc":{"type":"boolean"}},"additionalProperties":false,"required":["accountId","keywords"]},"GoogleAdsHistoricalMetricsResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsKeywordIdeaDto"}}},"additionalProperties":false,"required":["customerId","data"]},"GoogleAdsConversionAdjustmentUserDto":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"description":"Plaintext; normalized and SHA-256 hashed in memory."},"phone":{"type":"string","maxLength":32,"description":"Plaintext E.164-compatible value; normalized and SHA-256 hashed in memory."}},"additionalProperties":false},"GoogleAdsConversionAdjustmentDto":{"type":"object","properties":{"adjustmentType":{"type":"string","enum":["RETRACTION","RESTATEMENT","ENHANCEMENT"]},"adjustmentTime":{"type":"number","minimum":946684800,"maximum":4102444799,"description":"Whole Unix seconds between 2000 and 2099."},"orderId":{"type":"string","minLength":1,"maxLength":256},"gclid":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,256}$","maxLength":256},"conversionTime":{"type":"number","minimum":946684800,"maximum":4102444799,"description":"Whole Unix seconds between 2000 and 2099."},"restatementValue":{"type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$","minLength":3,"maxLength":3},"user":{"$ref":"#/components/schemas/GoogleAdsConversionAdjustmentUserDto"},"userAgent":{"type":"string","minLength":1,"maxLength":1024}},"additionalProperties":false,"required":["adjustmentType","adjustmentTime"]},"GoogleAdsConversionAdjustmentsRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","maxLength":24},"destinationId":{"type":"string","pattern":"^customers/[1-9][0-9]{9}/conversionActions/[1-9][0-9]{0,19}$","maxLength":128},"adjustments":{"minItems":1,"maxItems":2000,"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsConversionAdjustmentDto"}}},"additionalProperties":false,"required":["accountId","destinationId","adjustments"]},"GoogleAdsConversionAdjustmentFailureDto":{"type":"object","properties":{"adjustmentIndex":{"type":"number"},"code":{"type":"string"},"message":{"type":"string","enum":["Google Ads rejected this conversion adjustment"]}},"additionalProperties":false,"required":["adjustmentIndex","code","message"]},"GoogleAdsConversionAdjustmentsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["googleads"]},"adjustmentsReceived":{"type":"number"},"adjustmentsFailed":{"type":"number"},"failures":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsConversionAdjustmentFailureDto"}},"jobId":{"type":"string","nullable":true}},"additionalProperties":false,"required":["platform","adjustmentsReceived","adjustmentsFailed","failures","jobId"]},"GoogleAdsSitelinkDto":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":25},"linkUrl":{"type":"string","format":"uri","maxLength":4096},"description1":{"type":"string","minLength":1,"maxLength":35},"description2":{"type":"string","minLength":1,"maxLength":35}},"additionalProperties":false,"required":["text","linkUrl"]},"GoogleAdsStructuredSnippetDto":{"type":"object","properties":{"header":{"type":"string","enum":["Amenities","Brands","Courses","Degree programs","Destinations","Featured hotels","Insurance coverage","Models","Neighborhoods","Service catalog","Shows","Styles","Types"]},"values":{"minItems":3,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":25},"type":"array"}},"additionalProperties":false,"required":["header","values"]},"GoogleAdsAttachCampaignAssetsRequestDto":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^[0-9a-f]{24}$","maxLength":24},"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$","maxLength":10},"sitelinks":{"minItems":2,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsSitelinkDto"}},"callouts":{"minItems":1,"maxItems":20,"items":{"type":"string","minLength":1,"maxLength":25},"type":"array"},"structuredSnippets":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsStructuredSnippetDto"}}},"additionalProperties":false,"required":["accountId"]},"GoogleAdsAttachCampaignAssetsResponseDto":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[1-9][0-9]{9}$"},"campaignId":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"},"sitelinkAssetResourceNames":{"type":"array","items":{"type":"string"}},"calloutAssetResourceNames":{"type":"array","items":{"type":"string"}},"structuredSnippetAssetResourceNames":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["customerId","campaignId","sitelinkAssetResourceNames","calloutAssetResourceNames","structuredSnippetAssetResourceNames"]},"TikTokBusinessCenterDto":{"type":"object","properties":{"bcId":{"type":"string","example":"7123456789012345678"},"name":{"type":"string","example":"Acme Agency"},"advertiserCount":{"type":"number","nullable":true,"description":"Always null in this bounded live-proxy endpoint: it does not fan out into each Business Center advertiser asset list."}},"additionalProperties":false,"required":["bcId","name","advertiserCount"]},"TikTokBusinessCenterPagingDto":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"total":{"type":"number"},"totalPages":{"type":"number"},"hasMore":{"type":"boolean"}},"additionalProperties":false,"required":["page","pageSize","total","totalPages","hasMore"]},"TikTokBusinessCentersResponseDto":{"type":"object","properties":{"businessCenters":{"type":"array","items":{"$ref":"#/components/schemas/TikTokBusinessCenterDto"}},"paging":{"$ref":"#/components/schemas/TikTokBusinessCenterPagingDto"}},"additionalProperties":false,"required":["businessCenters","paging"]},"AdInsightsPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when exhausted. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded; only its envelope is checked and its length bounded."}},"required":["after"]},"QueryAdInsightsResponseDto":{"type":"object","properties":{"objectId":{"type":"string","description":"The insights node the rows were read from."},"data":{"description":"Insight rows exactly as the platform returned them -- nothing is added, renamed or dropped. Keys are whatever `fields` selected, plus the platform's own `date_start` / `date_stop`. When `fields` is omitted the platform applies ITS default projection; this API does not substitute one, because a silent default would make the returned columns unexplainable from the request.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdInsightsPagingDto"}},"required":["objectId","data","paging"]},"CreateAdInsightsReportDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"objectId":{"type":"string","pattern":"^(?:act_)?[1-9]\\d{0,19}$","description":"Meta insights node: act_<n>, a campaign id, an ad set id or an ad id."},"level":{"type":"string","enum":["ad","adset","campaign","account"],"description":"Row granularity."},"fields":{"type":"string","maxLength":2000,"description":"Comma-separated Graph insights fields (e.g. spend,impressions,frequency). Omitted = the platform's default set."},"breakdowns":{"type":"string","maxLength":2000,"description":"Comma-separated Graph breakdowns (e.g. age,gender)."},"actionBreakdowns":{"type":"string","maxLength":2000,"description":"Comma-separated Graph action breakdowns. Segments the actions[] arrays in each row."},"actionAttributionWindows":{"description":"Meta attribution windows (e.g. [\"7d_click\", \"1d_view\"]). Action values are returned keyed per window.","type":"array","items":{"type":"string"}},"actionReportTime":{"type":"string","maxLength":2000,"description":"When actions are counted: impression, conversion or mixed."},"useUnifiedAttributionSetting":{"type":"boolean","description":"Use the ad sets' own attribution settings for action counting."},"filtering":{"type":"array","items":{"type":"object","required":["field","operator"],"additionalProperties":true,"properties":{"field":{"type":"string","minLength":1},"operator":{"type":"string","minLength":1}}},"description":"Meta filter objects, applied server-side by the platform. Each entry is `{\"field\": <graph field>, \"operator\": <e.g. EQUAL, IN, GREATER_THAN>, \"value\": <anything>}`. `field` and `operator` are required non-empty strings. `value` is forwarded VERBATIM and is deliberately left unconstrained -- the contract declares no type for it, and coercing one would break filters the platform accepts."},"datePreset":{"type":"string","maxLength":2000,"description":"Meta date_preset (e.g. last_7d, last_30d, this_month). Mutually exclusive with fromDate/toDate. Sending NEITHER is legal: the platform then applies its own documented default."},"fromDate":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Start of range (YYYY-MM-DD); requires toDate. The pair may span at most 730 days."},"toDate":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"End of range (YYYY-MM-DD); requires fromDate."},"timeIncrement":{"oneOf":[{"type":"integer","minimum":1,"maximum":90},{"type":"string","enum":["monthly","all_days"]}],"description":"Days per row (1-90), monthly, or all_days. An integer and its string form mean the same thing; the query-string variant of this endpoint necessarily carries the string form."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","objectId"]},"CreateAdInsightsReportResponseDto":{"type":"object","properties":{"reportRunId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The platform report run id, to be polled via GET /v1/ads/insights/reports/{reportRunId}. It is carried as a STRING and never as a number: a 64-bit id does not survive IEEE-754 double precision. The platform expires it after 30 days."}},"required":["reportRunId"]},"AdInsightsReportResponseDto":{"type":"object","properties":{"reportRunId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The report run that was polled."},"status":{"type":"string","description":"The platform's own async_status, verbatim: Job Not Started, Job Started, Job Running, Job Completed, Job Failed or Job Skipped. It is NOT normalised, because an unrecognised value must stay distinguishable from a recognised one -- the platform may add a seventh. An EMPTY string means the poll response could not be read at all; that is not a failure of the run, and polling again is the right next step."},"percentCompletion":{"type":"number","nullable":true,"description":"Progress percentage while the run is in flight. NULL once the run is no longer pending: the platform reports progress for a running job, and inventing 100 for a completed one would publish a number the platform never sent."},"dateStart":{"type":"string","nullable":true,"description":"First day the run covers. ALWAYS NULL TODAY -- UNMEASURED: the platform's documented AdReportRun example does not carry this field and its node reference page could not be reached (measured 2026-08-17). The field is published so its absence is visible rather than guessed at; it is never filled with a value we did not observe."},"dateStop":{"type":"string","nullable":true,"description":"Last day the run covers. ALWAYS NULL TODAY -- UNMEASURED, for the same reason as `dateStart`."},"data":{"description":"Result rows, verbatim from the platform. PRESENT ONLY when `status` is \"Job Completed\". Its ABSENCE means the run is not finished -- which is a different fact from an EMPTY array, and an empty array is exactly what a completed run with no matching rows returns.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdInsightsPagingDto"}},"required":["reportRunId","status","percentCompletion","dateStart","dateStop","paging"]},"AdAudienceDto":{"type":"object","properties":{"platformAudienceId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The platform's own audience id. It is ALSO the `{audienceId}` path segment of every other operation on this resource -- this API keeps no local audience record, so there is no second id space to translate between."},"name":{"type":"string","nullable":true,"maxLength":255,"description":"Audience name, or null when the platform did not report one."},"description":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["customer_list","website","lookalike","meta_engagement"],"description":"The audience type, mapped from the platform's own subtype. NULL when the platform reported a subtype outside the mapped set -- forcing an unrecognised subtype into a known value would state a type we never observed."},"size":{"type":"integer","nullable":true,"minimum":0,"description":"Approximate audience size as the platform reports it. It is a LOWER BOUND and it is a COUNT -- no membership is ever returned by this API."},"status":{"type":"string","nullable":true,"description":"The platform's own operation status text, verbatim (e.g. the sentence it writes while an upload is still being processed). It is NOT normalised: an unrecognised value must stay distinguishable from a recognised one."},"retentionDays":{"type":"integer","nullable":true,"minimum":1,"maximum":365,"description":"Membership retention window in days, when the platform reports one."},"createdAt":{"type":"string","nullable":true},"updatedAt":{"type":"string","nullable":true}},"required":["platformAudienceId","name","description","type","size","status","retentionDays","createdAt","updatedAt"]},"AdAudiencesPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when exhausted. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded; only its envelope is checked and its length bounded."}},"required":["after"]},"ListAdAudiencesResponseDto":{"type":"object","properties":{"audiences":{"type":"array","items":{"$ref":"#/components/schemas/AdAudienceDto"}},"paging":{"$ref":"#/components/schemas/AdAudiencesPagingDto"}},"required":["audiences","paging"]},"CreateAdAudienceDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Platform ad account id (act_<n>) the audience is created in."},"name":{"type":"string","maxLength":255,"description":"Audience name, as it will appear in the platform UI."},"type":{"type":"string","enum":["customer_list","company_list","engagement","meta_engagement","website","website_retargeting","lookalike","saved_targeting"],"description":"Audience type. All eight contract values are RECOGNISED; the four this API does not implement (`company_list`, `engagement`, `website_retargeting`, `saved_targeting`) answer 501 with the reason, never 400 -- a real type must stay distinguishable from a typo."},"description":{"type":"string","maxLength":1024},"customerFileSource":{"type":"string","description":"Where a customer_list came from, in the platform's own vocabulary (e.g. the value meaning \"provided directly by the people themselves\"). Forwarded verbatim; the platform owns the enumeration."},"pixelId":{"type":"string","description":"Pixel id a `website` audience is built from."},"retentionDays":{"type":"integer","minimum":1,"maximum":365,"description":"How long a member stays in the audience. The platform applies its own per-type ceiling below this one (a website audience is shorter than an engagement audience); that per-type rule is the platform's, not this API's, because the contract states it in prose and not in a schema."},"engagementSource":{"type":"string","enum":["page","instagram","video"],"description":"Which engagement surface a `meta_engagement` audience is built from. Values are LOWER CASE, as the contract declares them; the platform's own upper-case spelling is a translation this API performs for you.\n\nOnly page resolves to a platform value today. The others are RECOGNISED but answer 501: the platform publishes no counterpart for them, and inventing one would either be rejected outright or -- worse -- build an audience that silently stays empty."},"sourceId":{"type":"string","description":"The object id behind `engagementSource` (e.g. the page or form)."},"event":{"type":"string","description":"Which engagement event the audience is keyed on."},"sourceAudienceId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"Seed audience a `lookalike` is expanded from."},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"Two-letter country a `lookalike` is expanded within."},"ratio":{"type":"number","minimum":0.01,"maximum":0.2,"description":"How much of the country a `lookalike` covers, as a fraction. Smaller is closer to the seed."},"rule":{"type":"object","additionalProperties":true,"description":"Platform rule object for a `website` audience, forwarded VERBATIM. Only its container is checked (a non-empty object); its contents are the platform's own rule language and coercing a shape here would break rules the platform accepts."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","name","type"]},"MutateAdAudienceResponseDto":{"type":"object","properties":{"audience":{"$ref":"#/components/schemas/AdAudienceDto"},"message":{"type":"string","description":"Human-readable confirmation of what was done."}},"required":["audience","message"]},"AdAudienceResponseDto":{"type":"object","properties":{"audience":{"$ref":"#/components/schemas/AdAudienceDto"}},"required":["audience"]},"UpdateAdAudienceDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"name":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":1024},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId"]},"DeleteAdAudienceDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId"]},"DeleteAdAudienceResponseDto":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable confirmation of what was done."}},"required":["message"]},"AdAudienceCompanyDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"domain":{"type":"string","maxLength":100},"website":{"type":"string","maxLength":100},"linkedinPageUrl":{"type":"string"}}},"ReplaceAdAudienceCompaniesDto":{"type":"object","properties":{"companies":{"minItems":1,"maxItems":300000,"type":"array","items":{"$ref":"#/components/schemas/AdAudienceCompanyDto"}}},"additionalProperties":false,"required":["companies"]},"ReplaceAdAudienceCompaniesResponseDto":{"type":"object","properties":{"message":{"type":"string"},"numReceived":{"type":"number"}},"required":["message","numReceived"]},"AdAudienceUserDto":{"type":"object","properties":{"email":{"type":"string","description":"Raw email address, e.g. ada@example.test. It is trimmed, lower-cased and SHA-256 hashed before it leaves this system -- send it RAW, not pre-hashed. A row carrying no usable email is counted in `numInvalid` rather than failing the whole request."}}},"AdAudienceUsersDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"users":{"minItems":1,"maxItems":10000,"description":"Up to 10000 member rows, sent RAW. Each row is normalised and SHA-256 hashed here; the platform never receives a plaintext identifier and neither does any log, error message or audit record in this system. Rows with no usable identifier are counted in `numInvalid` rather than failing the request.\n\nEMAIL ONLY IN THIS RELEASE. The contract this API tracks also allows `phone`; a row carrying one is REJECTED here rather than accepted and dropped, because the platform needs a country code this API cannot learn from you, and guessing one would hash numbers that silently match nothing.","type":"array","items":{"$ref":"#/components/schemas/AdAudienceUserDto"}},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","users"]},"AdAudienceUsersResponseDto":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable confirmation of what was done."},"numReceived":{"type":"integer","minimum":0,"maximum":10000,"description":"How many rows were normalised, hashed and sent to the platform."},"numInvalid":{"type":"integer","minimum":0,"maximum":10000,"description":"How many rows carried no usable identifier and were dropped before the platform call. A COUNT ONLY: which row, and why, is deliberately not reported -- naming it would put a real identifier into an API response and from there into a log."}},"required":["message","numReceived","numInvalid"]},"AdValueRuleCriterionDto":{"type":"object","properties":{"criteriaType":{"type":"string","enum":["AGE","GENDER","OS_TYPE","DEVICE_PLATFORM","LOCATION","PLACEMENT","OMNI_CHANNEL","AUDIENCE_LABEL"],"description":"What the criterion matches on. `OMNI_CHANNEL` (conversion location: APP, INSTANT_FORM, PHONE_CALL, WEBSITE) is accepted even though the platform's own enum table omits it -- the contract this API tracks declares it, and dropping it would reject a value the target accepts."},"operator":{"type":"string","enum":["CONTAINS"],"description":"The only operator the contract declares. It is REQUIRED on every criterion even though it has a single value."},"criteriaValues":{"minItems":1,"description":"The values matched, in the platform's own vocabulary. AGE takes `18-24`, `18+` or a custom `18-26`; a range whose upper bound is 65 is invalid (use `18+`). GENDER values are passed through UNTOUCHED: the platform returns them lower case on a read while a write requires upper case, so never case-compare a stored rule against a fetched one. AUDIENCE_LABEL strings are not validated anywhere -- there is no API to provision them, so a typo produces a rule that never fires.","type":"array","items":{"type":"string"}},"criteriaValueTypes":{"minItems":1,"description":"POSITIONALLY PAIRED with `criteriaValues`: entry i types value i, so the two arrays must have the SAME LENGTH. A mismatch is rejected here rather than forwarded, because the platform would silently apply its own default to the untyped values and the rule would target a different audience than the one you described.\n\n`NONE` is valid for every criterion type. LOCATION additionally takes LOCATION_COUNTRY, LOCATION_REGION, LOCATION_CITY, LOCATION_COMSCORE_MARKET and they MAY be mixed inside one criterion. Values outside this set are forwarded verbatim (the platform owns the vocabulary) with ONE exception: LOCATION_DMA is rejected. LOCATION_DMA was replaced by LOCATION_COMSCORE_MARKET on 2026-06-22 and rules using DMAs are no longer active, so this API rejects it rather than storing a rule that would never fire.","type":"array","items":{"type":"string"}}},"required":["criteriaType","operator","criteriaValues","criteriaValueTypes"]},"AdValueRuleDto":{"type":"object","properties":{"id":{"type":"string","maxLength":256,"description":"The rule id, as the platform minted it. THIS FIELD IS THE MECHANISM OF THE FULL REPLACE: on an update, a rule that carries its `id` is KEPT, a rule without one is CREATED, and a rule you do not send at all is DELETED. Echo it back exactly as this API returned it."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Rule name, as it appears in the platform UI."},"adjustSign":{"type":"string","enum":["INCREASE","DECREASE"],"description":"Which way the bid moves. THE DIRECTION LIVES HERE, not in `adjustValue`: there is no signed field."},"adjustValue":{"type":"number","minimum":1,"maximum":1000,"description":"An UNSIGNED magnitude in percent, and its ceiling DEPENDS ON `adjustSign`: INCREASE accepts 1-1000, DECREASE accepts 1-90. The schema maximum shown here is the INCREASE one, because a schema field cannot express a cross-field rule; a DECREASE above 90 is rejected by this API with a 400 rather than sent to be rejected by the platform. 0 is out of range in both directions."},"criteria":{"minItems":1,"maxItems":4,"description":"The criteria the rule matches on. Multiple criteria within one rule are combined by the platform.","type":"array","items":{"$ref":"#/components/schemas/AdValueRuleCriterionDto"}},"status":{"type":"string","maxLength":256,"description":"The platform's own status text, forwarded verbatim in both directions. NO ENUM IS DECLARED for it -- the platform returns ACTIVE here but documents no value space, so this API neither normalises it nor synthesizes a default. Echo what a read returned."}},"required":["name","adjustSign","adjustValue","criteria"]},"AdValueRuleSetDto":{"type":"object","properties":{"valueRuleSetId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The platform's own value rule set id. It is ALSO the `{valueRuleSetId}` path segment of every other operation on this resource -- this API keeps no local record, so there is no second id space to translate between."},"name":{"type":"string","minLength":1,"maxLength":255},"rules":{"minItems":1,"maxItems":10,"description":"The rules, IN EVALUATION ORDER. Order is behaviour, not presentation: only the FIRST matching rule adjusts the bid for an audience that several rules would match. The order you send is the order that is stored and returned, and nothing in this API reorders the array.","type":"array","items":{"$ref":"#/components/schemas/AdValueRuleDto"}}},"required":["valueRuleSetId","name","rules"]},"AdValueRuleSetsPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when exhausted. The platform does not document paging on this edge, so null is also what comes back when it omits cursors entirely. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded."}},"required":["after"]},"ListAdValueRuleSetsResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the page was read from, echoed back."},"data":{"type":"array","items":{"$ref":"#/components/schemas/AdValueRuleSetDto"}},"paging":{"$ref":"#/components/schemas/AdValueRuleSetsPagingDto"}},"required":["adAccountId","data","paging"]},"CreateAdValueRuleSetDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Platform ad account id (act_<n>) the value rule set is created in."},"name":{"type":"string","minLength":1,"maxLength":255},"rules":{"minItems":1,"maxItems":10,"description":"The rules, IN EVALUATION ORDER -- only the FIRST matching rule adjusts the bid for an overlapping audience, so the order you send is the behaviour you get. Omit `id` on every rule here: on a create there is nothing to keep.","type":"array","items":{"$ref":"#/components/schemas/AdValueRuleDto"}},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","name","rules"]},"CreateAdValueRuleSetResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the set was created in, echoed back."},"valueRuleSetId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The id the platform minted. Every other operation takes it in the path."}},"required":["adAccountId","valueRuleSetId"]},"AdValueRuleSetResponseDto":{"type":"object","properties":{"valueRuleSet":{"$ref":"#/components/schemas/AdValueRuleSetDto"}},"required":["valueRuleSet"]},"UpdateAdValueRuleSetDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"REQUIRED even when it is unchanged. The update is declarative: the body you send becomes the rule set."},"rules":{"minItems":1,"maxItems":10,"description":"THE COMPLETE RULE LIST. THIS IS A FULL REPLACE, NOT A PATCH. Keep a rule by echoing its `id`; create one by sending the object WITHOUT an `id`; DELETE one by OMITTING it. There is no warning and no undo. Read the set first and edit what you get back.","type":"array","items":{"$ref":"#/components/schemas/AdValueRuleDto"}},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","name","rules"]},"UpdateAdValueRuleSetResponseDto":{"type":"object","properties":{"valueRuleSetId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"name":{"type":"string","maxLength":255},"rules":{"description":"The rule set AS IT NOW STANDS, in evaluation order. Anything you did not send is gone.","type":"array","items":{"$ref":"#/components/schemas/AdValueRuleDto"}},"message":{"type":"string","description":"Human-readable confirmation of what was done."}},"required":["valueRuleSetId","name","rules","message"]},"DeleteAdValueRuleSetResponseDto":{"type":"object","properties":{"valueRuleSetId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"message":{"type":"string","description":"Human-readable confirmation of what was done."}},"required":["valueRuleSetId","message"]},"AdDsaDefaultsDto":{"type":"object","properties":{"beneficiary":{"type":"string","nullable":true,"minLength":1,"maxLength":100,"description":"Legal entity that benefits from the ads on this ad account, as it is set on the platform right now. `null` means no default is set: EU-targeted calls must then carry the entity name themselves."},"payor":{"type":"string","nullable":true,"minLength":1,"maxLength":100,"description":"Legal entity that pays for the ads on this ad account. It can differ from the beneficiary (an agency paying for a client, for example). `null` means no default is set."}},"required":["beneficiary","payor"]},"AdDsaDefaultsResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the defaults belong to, echoed back."},"dsaDefaults":{"$ref":"#/components/schemas/AdDsaDefaultsDto"}},"required":["adAccountId","dsaDefaults"]},"AdDsaRecommendationsResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the suggestions were read for, echoed back."},"recommendations":{"description":"Legal entity names the platform suggests for this ad account, in the order it returned them. THE ENTRIES ARE NOT LABELLED as beneficiary or payor, and THIS API NEVER APPLIES THEM: they are legal disclosures shown to EU users, so the entity has to be chosen by a human. An empty array is a normal answer for an account with little activity, not an error.","type":"array","items":{"type":"string"}}},"required":["adAccountId","recommendations"]},"UpdateAdAccountDsaDefaultsDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id (posting or ads variant) used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Platform ad account id (act_<n>) whose defaults are written."},"defaultDsaBeneficiary":{"type":"string","minLength":1,"maxLength":100,"description":"Legal entity that benefits from the ads. REQUIRED: this API never guesses it, because it is a legal disclosure shown to EU users. Set it once here and every EU-targeted /v1/ads/create, /v1/ads/boost and /v1/ads/ctwa call on this ad account may omit `dsaBeneficiary`."},"defaultDsaPayor":{"type":"string","minLength":1,"maxLength":100,"description":"Legal entity that pays for the ads. OMITTING IT IS NOT \"LEAVE UNCHANGED\": the beneficiary is then written as the payor too, which covers the common case where one entity both benefits and pays. Null is rejected -- there is no operation for clearing a disclosure."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","defaultDsaBeneficiary"]},"AdAccountScopedPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when the platform stopped offering one. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded. Send it back as `after` to continue."}},"required":["after"]},"AdsActivityResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the page was read from, echoed back."},"data":{"description":"Change-log rows exactly as the platform returned them -- nothing is added, renamed or dropped. Rows typically carry `event_type`, `translated_event_type`, `event_time`, `actor_name`, `object_id`, `object_name`, `object_type`, `application_name` and `extra_data`. `extra_data` is a JSON STRING (not an object) holding the before/after values, and it is forwarded as the string it is. The key set is the platform's, so treat every field as optional: this API does not synthesize one it did not receive.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdAccountScopedPagingDto"}},"required":["adAccountId","data","paging"]},"AdLabelsResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the page was read from, echoed back."},"data":{"description":"Ad label rows exactly as the platform returned them -- nothing is added, renamed or dropped. Rows typically carry `id`, `name`, `created_time` and `updated_time`, but this edge takes NO field selection, so the platform decides what comes back and a row may hold nothing but `id`. Treat every field as optional.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdAccountScopedPagingDto"}},"required":["adAccountId","data","paging"]},"AdStudiesResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the page was read from, echoed back."},"data":{"description":"A/B study rows exactly as the platform returned them -- nothing is added, renamed or dropped. THE KEY SET IS YOURS TO CHOOSE: without `fields` the projection is `id,name,type,description,start_time,end_time,updated_time,cells{id,name,treatment_percentage,control_percentage}`, and with it you get exactly what you asked for. Nested projections such as `cells{id,name}` are forwarded verbatim, so a flat `cells` really does come back as ids only.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdAccountScopedPagingDto"}},"required":["adAccountId","data","paging"]},"AdAccountFundingSourceDto":{"type":"object","properties":{"displayString":{"type":"string","nullable":true,"description":"Human-readable label for the funding source, for example `Mastercard *4985`. It comes from the platform and is shown, never parsed. `null` when the platform did not send one."},"type":{"type":"number","nullable":true,"description":"Platform funding source type code. It is an INTEGER and the contract declares no enum for it, so it is forwarded as-is: naming the values here would invent a value space nobody measured. `null` when the platform did not send one."}},"required":["displayString","type"]},"AdAccountFinanceResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the figures belong to, echoed back."},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 currency of every amount below. All of them are in WHOLE units of this currency."},"balance":{"type":"number","nullable":true,"description":"Outstanding balance in whole units of `currency`. `null` when the platform did not report one -- that is NOT zero, and this API will not turn it into zero."},"amountSpent":{"type":"number","nullable":true,"description":"Lifetime amount spent in whole units of `currency`. `null` when the platform did not report one, which is not the same fact as zero spend."},"spendCap":{"type":"number","nullable":true,"description":"Spending cap in whole units of `currency`. `null` MEANS THERE IS NO CAP. The platform expresses \"no cap\" as `0`, and forwarding that zero would read as a cap of nothing -- every delivery blocked -- so it is normalised to null here."},"fundingSource":{"nullable":true,"description":"The funding source on the ad account, or `null` when none is attached. An account with no funding source is a normal state, not an error.","type":"object","allOf":[{"$ref":"#/components/schemas/AdAccountFundingSourceDto"}]}},"required":["adAccountId","currency","balance","amountSpent","spendCap","fundingSource"]},"AdCatalogDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The platform's own product catalog id. Pass it as `catalogId` to GET /v1/ads/catalogs/{catalogId}/product-sets."},"name":{"type":"string","nullable":true,"description":"Catalog name. `null` when the platform did not send one -- that is a nameless catalog, not an empty-named one."},"vertical":{"type":"string","nullable":true,"description":"Catalog vertical, for example `commerce`, `vehicles` or `hotels`. The contract declares no enum for it, so the value is forwarded as the platform sent it. `null` when the platform did not send one."},"productCount":{"type":"number","nullable":true,"description":"Number of products in the catalog. `null` when the platform did not report a usable count. THAT IS NOT ZERO: an unknown size and an empty catalog are different facts, and this API will not turn one into the other."}},"required":["id","name","vertical","productCount"]},"AdCatalogsResponseDto":{"type":"object","properties":{"catalogs":{"description":"Every product catalog the ad account can advertise from. The list is COMPLETE or it is an error: the platform pages these edges and this API walks them to the end rather than returning a first page that would look complete. Both the catalogs the business owns and the ones it was granted access to by a client are here, merged and de-duplicated by `id`, because the contract does not separate them.","type":"array","items":{"$ref":"#/components/schemas/AdCatalogDto"}}},"required":["catalogs"]},"AdProductSetDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The platform's own product set id."},"name":{"type":"string","nullable":true,"description":"Product set name. `null` when the platform did not send one. The contract declares it non-null; see the note on `AdCatalogDto.name`."},"productCount":{"type":"number","nullable":true,"description":"Number of products the set matches. `null` when the platform did not report a usable count, which is not the same fact as an empty set."}},"required":["id","name","productCount"]},"AdProductSetsResponseDto":{"type":"object","properties":{"productSets":{"description":"Every product set in the catalog, walked to the end for the reason given on the catalog list.","type":"array","items":{"$ref":"#/components/schemas/AdProductSetDto"}}},"required":["productSets"]},"AdHighDemandPeriodsResponseDto":{"type":"object","properties":{"objectId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The campaign or ad set the schedules belong to, echoed back. It is whichever of `campaignId` / `adSetId` you sent -- this endpoint takes no ad account id, because the platform hangs these rows off the campaign and ad set nodes only."},"data":{"description":"High demand period rows exactly as the platform returned them -- nothing is added, renamed or dropped, and nothing is converted to camelCase. Rows typically carry `id`, `budget_value`, `budget_value_type`, `time_start`, `time_end` and `recurrence_type`. The key set is the platform's, so treat every field as optional: this API does not synthesize one it did not receive.","type":"array","items":{"type":"object"}},"paging":{"$ref":"#/components/schemas/AdAccountScopedPagingDto"}},"required":["objectId","data","paging"]},"CreateAdHighDemandPeriodDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"campaignId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"Campaign to schedule the raise on. EXACTLY ONE of `campaignId` / `adSetId` is required; sending both, or neither, is a 400."},"adSetId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"Ad set to schedule the raise on. EXACTLY ONE of `campaignId` / `adSetId` is required; sending both, or neither, is a 400."},"budgetValue":{"type":"number","description":"THIS FIELD MEANS TWO DIFFERENT THINGS, decided by `budgetValueType`. With `ABSOLUTE` it is a budget in the ad account currency in WHOLE units (50 = 50.00) and `currency` is REQUIRED. With `MULTIPLIER` it is a factor of the existing budget (2 = double it), NOT a currency amount, and `currency` is ignored. The conversion to the platform minor unit happens once, downstream; sending an already converted amount would scale the budget by a hundred."},"budgetValueType":{"type":"string","enum":["ABSOLUTE","MULTIPLIER"],"description":"How to read `budgetValue`. A campaign CANNOT MIX `ABSOLUTE` and `MULTIPLIER` across its schedules -- the platform rejects the second type and its message is forwarded verbatim."},"timeStart":{"type":"number","description":"Window start, Unix SECONDS, on a 15-minute boundary (:00, :15, :30, :45). Anything else is a 400 before the request leaves this API."},"timeEnd":{"type":"number","description":"Window end, Unix SECONDS, on a 15-minute boundary and STRICTLY AFTER `timeStart`."},"recurrenceType":{"type":"string","enum":["ONE_TIME","WEEKLY","MONTHLY"],"description":"How often the raise repeats. OMIT IT to let the platform apply its own default -- this API does not substitute one, because a default it invented would silently outlive a change on the platform side."},"currency":{"type":"string","description":"Ad account currency, REQUIRED when `budgetValueType` is `ABSOLUTE` because that is what the whole-unit amount is denominated in. IGNORED for `MULTIPLIER`: a factor has no currency, and this API drops the field rather than forwarding a value that would mean nothing."}},"additionalProperties":false,"required":["accountId","budgetValue","budgetValueType","timeStart","timeEnd"]},"CreateAdHighDemandPeriodResponseDto":{"type":"object","properties":{"objectId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"The campaign or ad set the schedule was created on, echoed back."},"id":{"type":"string","description":"The platform's own budget schedule id for the new period."}},"required":["objectId","id"]},"CreateRfPredictionDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Meta ad account id (act_<n>) the prediction is quoted on."},"budgetAmount":{"type":"number","description":"Lifetime budget for the window, and sending it means THE PLATFORM PREDICTS THE REACH. EXACTLY ONE of `budgetAmount` / `reach` is required; both, or neither, is a 400 with its own code.\n\nTHE VALUE IS FORWARDED UNCHANGED and the platform reads it in the MINOR unit of the ad account currency -- cents for USD. This request carries no currency field, so this API cannot convert whole units for you and does not try: send the minor-unit amount."},"reach":{"type":"number","description":"Target unique reach, and sending it means THE PLATFORM PREDICTS THE BUDGET. EXACTLY ONE of `budgetAmount` / `reach` is required."},"startDate":{"type":"string","format":"date-time","description":"Campaign window start. The platform requires it to be in the future; that check is NOT made here, because \"future\" depends on a clock this API does not share with the platform, and rejecting a borderline window locally would cost you one the platform would have accepted."},"endDate":{"type":"string","format":"date-time","description":"Campaign window end. It must be after `startDate`, and the window may span at most 56 days (eight weeks) -- that limit is the platform's and is enforced before the request leaves this API."},"frequencyCap":{"type":"number","minimum":1,"maximum":90,"description":"Max impressions per person over the window. THE BOUNDS ARE THIS API'S, not measurably the platform's: the vendor documents the field as a plain integer with no stated range, so a value outside 1..90 is refused here even if the platform might have taken it."},"targeting":{"type":"object","description":"Canonical camelCase targeting spec. It is TRANSLATED to the platform's own snake_case targeting object by the same translator the reach-estimate endpoint uses, so only the canonical keys are accepted; an unknown key is refused here rather than forwarded, because the platform would otherwise drop it silently and quote an untargeted reach.\n\nTHERE IS NO DEFAULT. Omit it and this API sends no targeting at all, leaving the platform's own default in force; it does not substitute one of its own."},"placements":{"type":"object","description":"Placements object. A TOP-LEVEL `placements` WINS over a `placements` key nested inside `targeting`; when neither is set, no placement fields are sent and the platform's own default applies. Reservation campaigns reject automatic placements, and that rejection comes from the platform -- this API does not pre-empt it, because the wire shape of \"automatic\" was never measured."}},"additionalProperties":false,"required":["accountId","adAccountId","startDate","endDate"]},"RfPredictionDto":{"type":"object","properties":{"predictionId":{"type":"string","pattern":"^[1-9]\\d{0,20}$","description":"The platform's own prediction id. AFTER A RESERVE THIS IS A NEW id, not the one you reserved: reserving mints a fresh object. It is the RESERVED id that belongs on POST /v1/ads/create and on the DELETE that releases it."},"status":{"type":"number","description":"The platform's own numeric prediction status, forwarded AS IS. THIS API PUBLISHES NO NAMES FOR IT: the vendor documents the field only as an unsigned integer and never states what each value means, so any mapping here would be invented. Treat the number as opaque and poll GET /v1/ads/rf-predictions/{predictionId} until it stops changing."},"budget":{"type":"number","nullable":true,"description":"Quoted (or provided) lifetime budget for the window, in the MINOR unit of `currency` -- cents for USD -- exactly as the platform reported it. THIS API DOES NOT CONVERT: the divisor depends on the currency (JPY, KRW and CLP have no minor unit at all), so a fixed divide-by-100 would be wrong for them. `null` means the platform did not report a number, which is not the same fact as zero."},"reach":{"type":"number","nullable":true,"description":"Predicted (or requested) unique reach. `null` when unreported."},"impressions":{"type":"number","nullable":true,"description":"Predicted impressions over the window. `null` when unreported."},"minBudget":{"type":"number","nullable":true,"description":"The platform's allowed LOWER bound for this spec, in the MINOR unit of `currency`, unconverted. `null` when unreported."},"maxBudget":{"type":"number","nullable":true,"description":"The platform's allowed UPPER bound for this spec, in the MINOR unit of `currency`, unconverted. `null` when unreported."},"minReach":{"type":"number","nullable":true,"description":"The platform's allowed lower bound on reach."},"maxReach":{"type":"number","nullable":true,"description":"The platform's allowed upper bound on reach."},"frequencyCap":{"type":"number","nullable":true,"description":"Max impressions per person over the window, echoed by the platform. `null` when you did not send one and the platform did not report one -- this API does not substitute the platform's own default, because that default was never measured."},"startTime":{"type":"number","nullable":true,"description":"Reserved window start as Unix SECONDS. The platform may report this as an ISO-8601 timestamp instead; either form is normalised to seconds here, so callers get one type. `null` when unreported or unreadable."},"stopTime":{"type":"number","nullable":true,"description":"Reserved window end as Unix SECONDS. Same normalisation as `startTime`."},"expiresAt":{"type":"string","nullable":true,"description":"When the RESERVATION's locked price and inventory expire. It is set after reserving, so a plain quote carries `null` here. THE VALUE IS THE PLATFORM'S: this API embeds no reservation lifetime of its own, because the vendor describes it only as \"approximately one hour\" -- an observation, not a guarantee, and one that would go stale silently if it were hard-coded."}},"required":["predictionId","status","budget","reach","impressions","minBudget","maxBudget","minReach","maxReach","frequencyCap","startTime","stopTime","expiresAt"]},"RfPredictionEnvelopeDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the prediction belongs to, echoed back from your request. It is NOT read out of the platform response: the node does not carry it, and deriving it would mean publishing a value that was never observed."},"currency":{"type":"string","nullable":true,"description":"The ad account currency the money fields are denominated in, as the platform reported it. `null` when the platform did not report one -- this API does not fall back to a default, because a wrong currency would silently mis-scale every amount above."},"prediction":{"$ref":"#/components/schemas/RfPredictionDto"}},"required":["adAccountId","currency","prediction"]},"ReserveRfPredictionDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Meta ad account id (act_<n>) the prediction was quoted on."}},"additionalProperties":false,"required":["accountId","adAccountId"]},"ReserveRfPredictionResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the reservation belongs to, echoed back."},"prediction":{"description":"`prediction.predictionId` IS THE NEW RESERVED id -- not the id you reserved. Keep it: it is what POST /v1/ads/create and the cancelling DELETE both expect.","allOf":[{"$ref":"#/components/schemas/RfPredictionDto"}]}},"required":["adAccountId","prediction"]},"AdTargetingResultDto":{"type":"object","properties":{"id":{"type":"string","description":"The platform's opaque id. Use it as a geo `key` (regions, cities, zips, metros) or as an entity `id` (interests, behaviors) in a `TargetingSpec`. IT COMES FROM TWO DIFFERENT PLATFORM KEYS -- geo rows carry a `key`, interest and behavior rows carry an `id` -- and this API merges them into one field so the same client code reads both."},"name":{"type":"string","description":"Human readable name of the result."},"type":{"type":"string","description":"The kind of thing this row is, in the platform's own vocabulary: e.g. `city`, `region`, `country`, `zip`, `metro`, `location`, `interest`, `behavior`, `income`. It is NOT the `dimension` you sent: one geo search returns several types."},"path":{"description":"Breadcrumb that disambiguates same-named results (\"Paris\" in France and in Texas). It can be EMPTY -- the platform does not always supply one, and an empty array is a normal answer, not a missing field.","type":"array","items":{"type":"string"}},"audienceSize":{"type":"number","nullable":true,"description":"Estimated size of the audience this row targets, or `null` when the platform did not supply one.\n\nTHIS IS THE LOWER BOUND. The platform returns a lower and an upper bound; the contract declares a single number and does not say which. The lower bound is the conservative one, and budget decisions are made by reading exactly this figure -- an over-stated reach makes a customer spend on an audience they will not actually get. This is a DECISION, not a measurement, and it is recorded as such upstream."}},"required":["id","name","type","path","audienceSize"]},"AdTargetingSearchResponseDto":{"type":"object","properties":{"results":{"description":"Matching targeting entries, at most `limit` of them. THERE IS NO PAGING on this endpoint: raise `limit` (up to 100) or narrow `q` instead.","type":"array","items":{"$ref":"#/components/schemas/AdTargetingResultDto"}}},"required":["results"]},"AdInterestDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"}},"required":["id","name","category"]},"AdInterestsResponseDto":{"type":"object","properties":{"interests":{"type":"array","items":{"$ref":"#/components/schemas/AdInterestDto"}}},"required":["interests"]},"GenerateAdPreviewsDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the preview is rendered against. Required for BOTH creative sources, even though only the `creativeSpec` source puts it on the wire: validating it in one variant and ignoring it in the other would make the same request mean two different things."},"formats":{"minItems":1,"maxItems":10,"default":["DESKTOP_FEED_STANDARD"],"description":"Placement formats to render, one preview per format. The platform renders ONE format per call, so asking for N formats spends N calls from the account's rate window -- that is why the list is capped at 10. An EMPTY list is rejected, and so is a repeated value: silently de-duplicating would make the response shorter than the request without saying which entry was dropped.\n\nFormat names are NOT validated against a pinned list: the platform keeps adding placements, so its own error is the authority on which ones exist. Unknown names surface the platform's 400 verbatim.","type":"array","items":{"type":"string"}},"existingCreativeId":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"An existing creative to render. Provide EXACTLY ONE of `existingCreativeId` / `creativeSpec`; sending both, or neither, is a 400 with its own error code."},"creativeSpec":{"type":"object","additionalProperties":true,"description":"A raw platform creative spec, forwarded VERBATIM. Only its container is checked (a non-empty object); its contents are the platform's own creative language. Provide EXACTLY ONE of `existingCreativeId` / `creativeSpec`."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId"]},"AdPreviewItemDto":{"type":"object","properties":{"format":{"type":"string","description":"The placement format this preview was rendered for."},"html":{"type":"string","nullable":true,"description":"The platform's own `<iframe>` snippet, embeddable as-is. NULL when the platform returned no preview for this format -- that is an answer, not a failure: not every creative type can be rendered in every placement."}},"required":["format","html"]},"GenerateAdPreviewsResponseDto":{"type":"object","properties":{"previews":{"description":"One entry per requested format, in the order requested. The iframe URL inside each snippet EXPIRES 24 HOURS after it is issued, so it is meant to be rendered now, not stored.","type":"array","items":{"$ref":"#/components/schemas/AdPreviewItemDto"}}},"required":["previews"]},"EstimateAdReachDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Zumpo social account id. It is what resolves the platform token; it is NOT the ad account."},"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The ad account the estimate is computed against, in `act_<id>` form. It cannot be derived from `accountId`: one social account can reach many ad accounts. Get it from `GET /v1/ads/accounts`."},"spec":{"description":"Canonical camelCase targeting spec -- the SAME component used by `POST /v1/ads/create` and the saved-targeting audiences, so a spec resolved once is reusable verbatim. Translation into the platform's own `targeting_spec` dictionary happens in the adapter.","allOf":[{"$ref":"#/components/schemas/AdTargetingSpecDto"}]},"optimizationGoal":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$","description":"What the ad set would be optimised for, e.g. `REACH`, `IMPRESSIONS`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`.\n\nREQUIRED, and this deviates from the published contract, which calls it optional and says to omit it for \"the platform default\". META HAS NO SUCH DEFAULT -- the parameter is mandatory on the platform edge. Choosing one here would silently change the audience size you are shown, so the field is rejected by name instead of guessed.\n\nThe value list is NOT pinned: the platform keeps adding goals, so its own error is the authority on which ones exist. Only the SHAPE is checked here (upper-case, digits and underscores)."},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","adAccountId","spec","optimizationGoal"]},"AdReachEstimateResponseDto":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether the platform served an estimate. ALWAYS `true` here: this API only serves Meta, and a non-Meta account never reaches this operation -- it is rejected earlier by name rather than answered with an empty estimate."},"lower":{"type":"number","nullable":true,"description":"Lower bound of the estimated MONTHLY ACTIVE audience for this targeting. `null` when the platform did not supply one -- which is a normal answer while `estimateReady` is `false`, not an error. It is reported separately from `upper` on purpose: the platform deliberately does not commit to a single number, and averaging the two would invent a precision it never gave."},"upper":{"type":"number","nullable":true,"description":"Upper bound of the estimated monthly active audience, or `null`. See `lower`."},"daily":{"type":"number","nullable":true,"description":"ALWAYS `null`. The platform used to derive a daily figure from `daily_outcomes_curve` / `estimate_dau`; BOTH were removed in the platform API version this integration targets, and the vendor states that no replacement is available. There is nothing left to read, and dividing the monthly range would manufacture a precision the platform deliberately stopped giving."},"currency":{"type":"string","nullable":true,"description":"ALWAYS `null`. Neither the request nor the platform response carries a monetary field, so there is nothing to denominate. Filling it would cost a second platform call for a value no other field in this response depends on."},"estimateReady":{"type":"boolean","nullable":true,"description":"Meta only. `false` while the platform is still computing the estimate for a very new audience -- that is a 200, not an error. TREAT `lower`/`upper` AS UNTRUSTWORTHY WHILE THIS IS `false`: the platform does not document what the bounds hold in that state, which is why they are nullable rather than zero. Declared nullable to match the contract; in practice Meta always supplies a boolean."}},"additionalProperties":false,"required":["available","lower","upper","daily","currency","estimateReady"]},"AdConversionsQualityMatchKeyDto":{"type":"object","properties":{"identifier":{"type":"string","description":"The customer-information key the platform matched on, in ITS OWN vocabulary (e.g. `em` for a hashed email, `ph` for a hashed phone, `fbp`, `external_id`). The names are NOT translated here: they are the same identifiers you put on the events you send, so keeping them verbatim is what makes this row actionable."},"coveragePercentage":{"type":"number","description":"Share of this event's deliveries that carried this key, as a percentage. A LOW NUMBER HERE IS THE ACTIONABLE PART: it means you are omitting a key you could be sending, which is the usual cause of a low `compositeScore`."}},"additionalProperties":false,"required":["identifier","coveragePercentage"]},"AdConversionsQualityRowDto":{"type":"object","properties":{"eventName":{"type":"string","description":"The conversion event this row scores, e.g. `Purchase`, `Lead`, `AddToCart` -- including your own custom event names."},"compositeScore":{"type":"number","description":"The platform's composite match-quality score for this event, typically on a 0-10 scale where higher is better. THE RANGE IS NOT ENFORCED by this API: the scale belongs to the platform, and rejecting a real score because it fell outside a number we pinned would be worse than reporting it."},"matchKeys":{"description":"Per-key coverage behind `compositeScore`. It can be EMPTY -- an event the platform scored but broke down no further is a normal answer, not a missing field.","type":"array","items":{"$ref":"#/components/schemas/AdConversionsQualityMatchKeyDto"}},"eventCoveragePercentage":{"type":"number","description":"Share of this event's deliveries the platform was able to score at all, as a percentage. It is DISTINCT from any single key's coverage: an event can carry keys on every delivery and still score poorly."}},"additionalProperties":false,"required":["eventName","compositeScore","matchKeys","eventCoveragePercentage"]},"AdConversionsQualityResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the rows came from, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and read this surface through it."},"rows":{"description":"One row per scored conversion event. AN EMPTY LIST IS A NORMAL ANSWER: a dataset that has received no events yet, or none the platform could score, has nothing to report and this is not an error. THERE IS NO PAGING -- the platform returns the whole set for a dataset.","type":"array","items":{"$ref":"#/components/schemas/AdConversionsQualityRowDto"}}},"additionalProperties":false,"required":["platform","rows"]},"AdConversionClickIdsDto":{"type":"object","properties":{"fbc":{"type":"string","maxLength":512},"fbp":{"type":"string","maxLength":512}},"additionalProperties":false},"AdConversionUserDto":{"type":"object","properties":{"email":{"type":"string","description":"Plaintext email; SHA-256 hashed by the adapter.","maxLength":512},"phone":{"type":"string","description":"Plaintext phone; SHA-256 hashed by the adapter.","maxLength":512},"firstName":{"type":"string","maxLength":512},"lastName":{"type":"string","maxLength":512},"externalId":{"type":"string","maxLength":512},"ipAddress":{"type":"string","maxLength":512},"userAgent":{"type":"string","maxLength":2048,"description":"Required when actionSource is web (the default): the platform documents client_user_agent as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match."},"country":{"type":"string","maxLength":512},"city":{"type":"string","maxLength":512},"state":{"type":"string","maxLength":512},"zip":{"type":"string","maxLength":512},"dob":{"type":"string","maxLength":512},"gender":{"type":"string","maxLength":512},"leadId":{"type":"string","maxLength":512},"clickIds":{"$ref":"#/components/schemas/AdConversionClickIdsDto"}},"additionalProperties":false},"AdConversionItemDto":{"type":"object","properties":{"id":{"type":"string","maxLength":256},"name":{"type":"string","maxLength":512},"price":{"type":"number"},"quantity":{"type":"number"},"category":{"type":"string","maxLength":512}},"additionalProperties":false,"required":["id"]},"AdConversionAppDataDto":{"type":"object","properties":{"advertiserTrackingEnabled":{"type":"boolean"},"applicationTrackingEnabled":{"type":"boolean"},"extInfo":{"type":"array","minItems":16,"maxItems":16,"items":{"type":"string","maxLength":128},"description":"Meta app extinfo tuple. Slot 0 is a2/i2; slot 4 is the OS value; device metric slots use their string wire values and unavailable slots use an empty string."}},"additionalProperties":false,"required":["advertiserTrackingEnabled","extInfo"]},"AdConversionEventDto":{"type":"object","properties":{"eventName":{"type":"string","maxLength":128},"eventTime":{"type":"number","description":"Unix seconds."},"eventId":{"type":"string","description":"Stable provider-side deduplication key.","maxLength":256},"value":{"type":"number"},"currency":{"type":"string","enum":["AED","AFN","ALL","AMD","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAD","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XCG","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWG"]},"user":{"$ref":"#/components/schemas/AdConversionUserDto"},"items":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/AdConversionItemDto"}},"sourceUrl":{"type":"string","format":"uri","maxLength":2048,"description":"Required when actionSource is web (the default): the platform documents event_source_url as required for website events, and this API refuses a website event without it rather than letting the platform quietly downgrade the match."},"actionSource":{"type":"string","enum":["web","app","offline","crm","phone_call","system_generated"]},"appData":{"description":"Required only when actionSource is app; rejected for every other source.","allOf":[{"$ref":"#/components/schemas/AdConversionAppDataDto"}]},"platformData":{"type":"object","additionalProperties":true,"maxProperties":64,"description":"Provider-specific custom data; bounded recursively and limited to 32768 encoded bytes."}},"additionalProperties":false,"required":["eventName","eventTime","eventId","user"]},"AdConversionConsentDto":{"type":"object","properties":{"adUserData":{"type":"string","enum":["GRANTED","DENIED"]},"adPersonalization":{"type":"string","enum":["GRANTED","DENIED"]}},"additionalProperties":false},"SendAdConversionsDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Connected Facebook account id used to resolve the Meta token.","pattern":"^[0-9a-f]{24}$","maxLength":24},"adAccountId":{"type":"string","description":"Meta ad account whose promote_pages edge authorizes the selected Page and whose adspixels edge contains the destination.","pattern":"^act_[1-9]\\d{0,19}$"},"destinationId":{"type":"string","description":"Meta pixel/dataset id.","pattern":"^[1-9][0-9]{0,19}$","maxLength":20},"events":{"minItems":1,"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/AdConversionEventDto"}},"testCode":{"type":"string","description":"Meta test_event_code passthrough.","maxLength":64},"consent":{"$ref":"#/components/schemas/AdConversionConsentDto"}},"additionalProperties":false,"required":["accountId","adAccountId","destinationId","events"]},"AdConversionFailureDto":{"type":"object","properties":{"eventIndex":{"type":"number"},"eventId":{"type":"string"},"message":{"type":"string"},"code":{"oneOf":[{"type":"string"},{"type":"integer"}]}},"additionalProperties":false,"required":["eventIndex","message"]},"SendAdConversionsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"]},"eventsReceived":{"type":"number"},"eventsFailed":{"type":"number"},"failures":{"type":"array","items":{"$ref":"#/components/schemas/AdConversionFailureDto"}},"traceId":{"type":"string"}},"additionalProperties":false,"required":["platform","eventsReceived","eventsFailed","failures"]},"MetaLeadFieldDataDto":{"type":"object","properties":{"name":{"type":"string","maxLength":256},"values":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":4096}}},"additionalProperties":false,"required":["name","values"]},"MetaLeadDto":{"type":"object","properties":{"id":{"type":"string"},"leadgenId":{"type":"string","description":"Meta Lead id. Equal to `id` on this live proxy because no local lead row exists."},"formId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"formName":{"type":"string","nullable":true},"accountId":{"type":"string"},"adId":{"type":"string","nullable":true},"adsetId":{"type":"string","nullable":true},"campaignId":{"type":"string","nullable":true},"isOrganic":{"type":"boolean"},"createdTime":{"type":"string","nullable":true,"format":"date-time"},"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"Question name to answer. Multiple values are joined with `, `; use `fieldData` when preserving the original array matters."},"fieldData":{"type":"array","items":{"$ref":"#/components/schemas/MetaLeadFieldDataDto"}}},"additionalProperties":false,"required":["id","leadgenId","formId","formName","accountId","adId","adsetId","campaignId","isOrganic","createdTime","fields","fieldData"]},"MetaLeadsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048}},"additionalProperties":false,"required":["hasMore","cursor"]},"ListMetaLeadsResponseDto":{"type":"object","properties":{"leads":{"type":"array","items":{"$ref":"#/components/schemas/MetaLeadDto"}},"pagination":{"$ref":"#/components/schemas/MetaLeadsPaginationDto"}},"additionalProperties":false,"required":["leads","pagination"]},"MetaTestLeadDisclaimerResponseDto":{"type":"object","properties":{"checkboxKey":{"type":"string","maxLength":256},"isChecked":{"type":"string","enum":["true","false"],"description":"Meta's generated SDK declares `is_checked` as a string rather than a boolean."}},"additionalProperties":false,"required":["checkboxKey","isChecked"]},"CreateMetaTestLeadDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Connected Facebook Page account used to resolve the Page token."},"fieldData":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/MetaLeadFieldDataDto"}},"customDisclaimerResponses":{"maxItems":100,"description":"Optional custom-disclaimer checkbox answers; forwarded as `custom_disclaimer_responses`.","type":"array","items":{"$ref":"#/components/schemas/MetaTestLeadDisclaimerResponseDto"}}},"additionalProperties":false,"required":["accountId","fieldData"]},"MetaTestLeadCreatedDto":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":false,"required":["id"]},"CreateMetaTestLeadResponseDto":{"type":"object","properties":{"testLead":{"$ref":"#/components/schemas/MetaTestLeadCreatedDto"}},"additionalProperties":false,"required":["testLead"]},"AdLeadFormsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean","description":"TRUE when the platform announced a next page. Derived from the platform saying there IS one, not from it handing back a cursor."},"cursor":{"type":"string","nullable":true,"pattern":"^[\\x21-\\x7e]{1,2048}$","maxLength":2048,"description":"Pass back as `cursor` for the next page; NULL when there is none. It is the platform's own cursor, forwarded OPAQUELY -- never decoded, never re-encoded, and not meant to be stored."}},"required":["hasMore","cursor"]},"ListAdLeadFormsResponseDto":{"type":"object","properties":{"forms":{"description":"Lead form rows exactly as the platform returned them -- nothing is added, renamed or dropped, because the contract declares this array as an OPEN object and narrowing it here would drop fields it promises. Rows typically carry `id`, `name`, `status`, `locale`, `created_time`, `page_id`, `privacy_policy_url`, `questions` and `thank_you_page`. Treat every field as optional. NO LEAD DATA IS RETURNED HERE: these are form DEFINITIONS.","type":"array","items":{"type":"object"}},"pagination":{"$ref":"#/components/schemas/AdLeadFormsPaginationDto"}},"required":["forms","pagination"]},"AdLeadFormQuestionOptionDto":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"AdLeadFormQuestionDto":{"type":"object","properties":{"type":{"type":"string","description":"EMAIL, PHONE, FULL_NAME, FIRST_NAME, LAST_NAME, CUSTOM and the rest of the platform's list. NOT validated against a pinned enum: the platform keeps its own set and its error is the authority on which types exist."},"key":{"type":"string","description":"CUSTOM questions only. The rule is NOT enforced here: the platform documents both fields as optional and only its examples pair them with CUSTOM, so enforcing it would reject a body the platform accepts."},"label":{"type":"string","description":"CUSTOM questions only. See the note on `key`."},"options":{"type":"array","items":{"$ref":"#/components/schemas/AdLeadFormQuestionOptionDto"}},"inline_context":{"type":"string","description":"Snake_case on purpose -- it is the name the contract declares for this field, next to camelCase siblings."}},"required":["type"]},"MetaAdLeadFormPlatformDataDto":{"type":"object","properties":{"questions":{"minItems":1,"description":"The questions the form asks. An EMPTY array is rejected: a form with no questions collects nothing, and the platform refuses it anyway.","type":"array","items":{"$ref":"#/components/schemas/AdLeadFormQuestionDto"}},"privacyPolicyLinkText":{"type":"string","maxLength":70},"followUpActionUrl":{"type":"string","format":"uri"},"locale":{"type":"string","example":"EN_US","description":"LANGUAGE_REGION, upper case. The exact shape is enforced one layer down, where the platform-specific rule lives."},"thankYouTitle":{"type":"string"},"thankYouBody":{"type":"string"},"thankYouButtonText":{"type":"string"},"thankYouButtonType":{"type":"string","example":"VIEW_WEBSITE"},"thankYouWebsiteUrl":{"type":"string","format":"uri"},"isOptimizedForQuality":{"type":"boolean","description":"Set true for a higher-intent form (adds a review step before submit)."}},"required":["questions"]},"CreateAdLeadFormDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the platform token."},"name":{"type":"string","maxLength":200,"description":"Form name. Internal -- the person filling the form does not see it."},"privacyPolicyUrl":{"type":"string","format":"uri","description":"Privacy policy URL shown on the form. REQUIRED by the platform, and stays top-level in BOTH shapes. Its validity is the platform's call, not pre-judged here."},"questions":{"minItems":1,"deprecated":true,"description":"DEPRECATED legacy Meta shape: use `platformSpecificData.questions`. Still accepted while `platformSpecificData` is ABSENT; sending both shapes is a 400.","type":"array","items":{"$ref":"#/components/schemas/AdLeadFormQuestionDto"}},"privacyPolicyLinkText":{"type":"string","maxLength":70,"deprecated":true,"description":"Deprecated: use `platformSpecificData.privacyPolicyLinkText`."},"followUpActionUrl":{"type":"string","format":"uri","deprecated":true,"description":"Deprecated: use `platformSpecificData.followUpActionUrl`."},"locale":{"type":"string","example":"EN_US","deprecated":true,"description":"Deprecated: use `platformSpecificData.locale`."},"thankYouTitle":{"type":"string","deprecated":true,"description":"Deprecated: use `platformSpecificData.thankYouTitle`."},"thankYouBody":{"type":"string","deprecated":true,"description":"Deprecated: use `platformSpecificData.thankYouBody`."},"thankYouButtonText":{"type":"string","deprecated":true,"description":"Deprecated: use `platformSpecificData.thankYouButtonText`."},"thankYouButtonType":{"type":"string","example":"VIEW_WEBSITE","deprecated":true,"description":"Deprecated: use `platformSpecificData.thankYouButtonType`."},"thankYouWebsiteUrl":{"type":"string","format":"uri","deprecated":true,"description":"Deprecated: use `platformSpecificData.thankYouWebsiteUrl`."},"isOptimizedForQuality":{"type":"boolean","deprecated":true,"description":"Deprecated: use `platformSpecificData.isOptimizedForQuality`."},"platformSpecificData":{"description":"Form content, strict-parsed: an unknown field is a 400, never a silently dropped one. Sending this together with ANY of the deprecated top-level fields above is a 400 -- there would be no way to tell which of the two the caller meant.","allOf":[{"$ref":"#/components/schemas/MetaAdLeadFormPlatformDataDto"}]},"platform":{"type":"string","description":"Defaults to 'facebook'. Only Meta is served today."}},"additionalProperties":false,"required":["accountId","name","privacyPolicyUrl"]},"CreatedAdLeadFormDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"name":{"type":"string","description":"The name the form was created with. ECHOED from the request when the platform does not return one -- this edge accepts no field selection, so a read-after-write is not available and a second call would double the operation's price."}},"required":["id","name"]},"CreateAdLeadFormResponseDto":{"type":"object","properties":{"form":{"$ref":"#/components/schemas/CreatedAdLeadFormDto"}},"required":["form"]},"AdLeadFormResponseDto":{"type":"object","properties":{"form":{"type":"object","description":"One lead form exactly as the platform returned it. Same verbatim contract as the list, and the same projection behind it -- the field set is read from ONE source in the adapter, so the two cannot drift."}},"required":["form"]},"ArchiveAdLeadFormResponseDto":{"type":"object","properties":{"formId":{"type":"string","pattern":"^[1-9]\\d{0,19}$"},"archived":{"type":"boolean","description":"ALWAYS true on success, and the field is named `archived` rather than `deleted` because the form is NOT destroyed: it stays on the platform with status ARCHIVED and the leads it already collected stay reachable."}},"required":["formId","archived"]},"AdChainCampaignDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"goal":{"type":"string","enum":["engagement","page_likes","traffic","awareness","lead_generation","lead_conversion","conversions","app_promotion","catalog_sales"],"description":"Mapped to the ODAX objective. The mapping is the one `POST /v1/ads/campaigns` uses; `page_likes` maps to OUTCOME_ENGAGEMENT. `video_views` and `job_applicants` are NOT accepted for the reason written there."},"specialAdCategories":{"type":"array","description":"Regulated-category declarations. Duplicates are rejected.","items":{"type":"string","enum":["HOUSING","EMPLOYMENT","CREDIT","ISSUES_ELECTIONS_POLITICS","FINANCIAL_PRODUCTS_SERVICES","ONLINE_GAMBLING_AND_GAMING"]}},"buyingType":{"type":"string","enum":["AUCTION","RESERVED"],"description":"Omit it and no buying type is sent at all, leaving the platform default in force -- this API does not substitute one. `RESERVED` is the reach-and-frequency path and pairs with `adSet.rfPredictionId`."}},"required":["name","goal"]},"AdChainPromotedObjectDto":{"type":"object","properties":{"pageId":{"type":"string"},"pixelId":{"type":"string"},"customEventType":{"type":"string"},"customEventStr":{"type":"string"},"applicationId":{"type":"string"},"objectStoreUrl":{"type":"string"},"customConversionId":{"type":"string"},"productCatalogId":{"type":"string"},"productSetId":{"type":"string"},"offlineConversionDataSetId":{"type":"string"},"whatsappPhoneNumber":{"type":"string"}}},"AdChainAdSetDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"billingEvent":{"type":"string","enum":["APP_INSTALLS","CLICKS","IMPRESSIONS","LINK_CLICKS","LISTING_INTERACTION","NONE","OFFER_CLAIMS","PAGE_LIKES","POST_ENGAGEMENT","PURCHASE","THRUPLAY"]},"optimizationGoal":{"type":"string","enum":["ADVERTISER_SILOED_VALUE","AD_RECALL_LIFT","APP_INSTALLS","APP_INSTALLS_AND_OFFSITE_CONVERSIONS","AUTOMATIC_OBJECTIVE","CONVERSATIONS","DERIVED_EVENTS","ENGAGED_PAGE_VIEWS","ENGAGED_USERS","EVENT_RESPONSES","IMPRESSIONS","IN_APP_VALUE","LANDING_PAGE_VIEWS","LEAD_GENERATION","LINK_CLICKS","MEANINGFUL_CALL_ATTEMPT","MESSAGING_APPOINTMENT_CONVERSION","MESSAGING_DEEP_CONVERSATION_AND_FOLLOW","MESSAGING_PURCHASE_CONVERSION","NONE","OFFSITE_CONVERSIONS","PAGE_LIKES","POST_ENGAGEMENT","PROFILE_AND_PAGE_ENGAGEMENT","PROFILE_VISIT","QUALITY_CALL","QUALITY_LEAD","REACH","REMINDERS_SET","SUBSCRIBERS","THRUPLAY","VALUE","VISIT_INSTAGRAM_PROFILE"]},"targeting":{"type":"object","description":"Meta targeting object, forwarded to the platform VERBATIM -- no key is renamed, added or dropped. `geo_locations.countries` is required by the platform and checked before the request leaves this API.\n\nTHIS IS NOT the canonical camelCase `TargetingSpec` used by `/v1/ads/targeting/reach-estimate`: the ad-set create primitive takes the platform wire shape, and the canonical translator lives inside the adapter where it is not reachable from here. Writing a second copy of that translation is what this repository forbids by name, so the wire shape is published instead of a half-true camelCase surface."},"dailyBudgetMinorUnits":{"type":"number","description":"EXACTLY ONE of `dailyBudgetMinorUnits` / `lifetimeBudgetMinorUnits` is required. The value is forwarded unchanged and the platform reads it in the MINOR unit of the ad account currency -- cents for USD."},"lifetimeBudgetMinorUnits":{"type":"number","description":"EXACTLY ONE of `dailyBudgetMinorUnits` / `lifetimeBudgetMinorUnits` is required. A lifetime budget also requires `endTime`."},"bidStrategy":{"type":"string","enum":["LOWEST_COST_WITHOUT_CAP","LOWEST_COST_WITH_BID_CAP","COST_CAP","LOWEST_COST_WITH_MIN_ROAS"]},"bidAmountMinorUnits":{"type":"number"},"startTime":{"type":"string","format":"date-time"},"endTime":{"type":"string","format":"date-time"},"destinationType":{"type":"string","enum":["APP","APPLINKS_AUTOMATIC","FACEBOOK","FACEBOOK_LIVE","FACEBOOK_PAGE","IMAGINE","INSTAGRAM_DIRECT","INSTAGRAM_LIVE","INSTAGRAM_PROFILE","INSTAGRAM_PROFILE_AND_FACEBOOK_PAGE","MESSAGING_INSTAGRAM_DIRECT_MESSENGER","MESSAGING_INSTAGRAM_DIRECT_MESSENGER_WHATSAPP","MESSAGING_INSTAGRAM_DIRECT_WHATSAPP","MESSAGING_MESSENGER_WHATSAPP","MESSENGER","ON_AD","ON_EVENT","ON_PAGE","ON_POST","ON_VIDEO","PHONE_CALL","SHOP_AUTOMATIC","WEBSITE","WHATSAPP"],"description":"Where the ad sends people. `PHONE_CALL` is the call path; the messaging paths use the `MESSENGER` / `WHATSAPP` members. The combination of objective, optimisation goal and destination is NOT validated here -- primary platform documents contradict each other on which triples are legal, so the platform is left to refuse."},"rfPredictionId":{"type":"string","description":"Reach-and-frequency prediction id; pairs with `campaign.buyingType`."},"promotedObject":{"$ref":"#/components/schemas/AdChainPromotedObjectDto"},"attributionSpec":{"description":"Attribution windows, forwarded VERBATIM. Which combinations the platform requires could NOT be measured, so nothing is validated here.","type":"array","items":{"type":"object"}}},"required":["name","billingEvent","optimizationGoal","targeting"]},"AdChainCreativeCardDto":{"type":"object","properties":{"imageUrl":{"type":"string"},"imageHash":{"type":"string"},"linkUrl":{"type":"string"},"headline":{"type":"string"},"description":{"type":"string"},"callToAction":{"type":"string","enum":["LEARN_MORE","SHOP_NOW","SIGN_UP","BOOK_TRAVEL","CONTACT_US","DOWNLOAD","GET_OFFER","GET_QUOTE","SUBSCRIBE","WATCH_MORE","ADD_TO_CART","APPLY_NOW","BOOK_NOW","BUY_TICKETS","DONATE","DONATE_NOW","GET_DIRECTIONS","GET_SHOWTIMES","LISTEN_NOW","ORDER_NOW","PLAY_GAME","REQUEST_TIME","SEE_MENU","START_ORDER","INSTALL_MOBILE_APP","USE_APP","REGISTER","JOIN","ATTEND","REQUEST_DEMO","VIEW_QUOTE","APPLY","SEE_MORE","BUY_NOW","WHATSAPP_MESSAGE","MESSAGE_PAGE","CALL_NOW"]}},"required":["linkUrl"]},"AdChainWelcomeMessageDto":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4096},"prefillText":{"type":"string","minLength":1,"maxLength":4096}},"required":["text","prefillText"]},"AdChainNewPostCreativeDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"headline":{"type":"string"},"body":{"type":"string"},"description":{"type":"string"},"callToAction":{"type":"string","enum":["LEARN_MORE","SHOP_NOW","SIGN_UP","BOOK_TRAVEL","CONTACT_US","DOWNLOAD","GET_OFFER","GET_QUOTE","SUBSCRIBE","WATCH_MORE","ADD_TO_CART","APPLY_NOW","BOOK_NOW","BUY_TICKETS","DONATE","DONATE_NOW","GET_DIRECTIONS","GET_SHOWTIMES","LISTEN_NOW","ORDER_NOW","PLAY_GAME","REQUEST_TIME","SEE_MENU","START_ORDER","INSTALL_MOBILE_APP","USE_APP","REGISTER","JOIN","ATTEND","REQUEST_DEMO","VIEW_QUOTE","APPLY","SEE_MORE","BUY_NOW","WHATSAPP_MESSAGE","MESSAGE_PAGE","CALL_NOW"]},"linkUrl":{"type":"string","description":"Landing url. Must stay `https://` even on the call path."},"imageUrl":{"type":"string","description":"EXACTLY ONE of `imageUrl` / `imageHash` / `cards`."},"imageHash":{"type":"string"},"cards":{"type":"array","items":{"$ref":"#/components/schemas/AdChainCreativeCardDto"}},"urlTags":{"type":"string"},"appDestination":{"type":"string","enum":["WHATSAPP","MESSENGER"],"description":"Required by the `WHATSAPP_MESSAGE` and `MESSAGE_PAGE` call-to-action types, and accepted with others -- the platform treats it as an axis of its own, NOT a value derived from the call-to-action type.\n\n`INSTAGRAM_DIRECT` is NOT a member: the platform publishes no example for it and inventing one would send a valid creative with a field the platform never documented."},"welcomeMessage":{"description":"Messaging creatives only. Maps to Meta page_welcome_message: text is the greeting and prefillText is placed in the user input ready to send.","allOf":[{"$ref":"#/components/schemas/AdChainWelcomeMessageDto"}]},"phoneNumber":{"type":"string","description":"E.164 number the `CALL_NOW` button dials -- THE ADVERTISER OWN number, not an end user one. The `tel:` prefix is built by this API; send the bare E.164 value."}},"required":["headline","body","callToAction","linkUrl"]},"AdChainAdDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"creative":{"$ref":"#/components/schemas/AdChainNewPostCreativeDto"},"conversionDomain":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$","description":"Registrable domain the conversion is attributed to. The platform requires it to create an ad in a campaign that shares data with a pixel, and rejects the create when it is missing there; send it for those campaigns. Host name only -- no scheme, port or path."}},"required":["name","creative"]},"CreateStandaloneAdDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"campaign":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainCampaignDto"}]},"adSet":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainAdSetDto"}]},"adSetId":{"type":"string","description":"Existing Meta ad set id. When supplied, campaign and adSet must be omitted; only creatives and ads are created under this parent."},"ads":{"minItems":1,"maxItems":1,"type":"array","items":{"$ref":"#/components/schemas/AdChainAdDto"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED","description":"Created PAUSED unless ACTIVE is requested."}},"additionalProperties":false,"required":["accountId","adAccountId","ads"]},"AdChainResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"campaignId":{"type":"string","description":"Platform id of the created or existing parent campaign."},"adSetId":{"type":"string","description":"Platform id of the created or supplied existing ad set."},"creativeIds":{"description":"Same order and same length as the request `ads` array.","type":"array","items":{"type":"string"}},"adIds":{"description":"Same order and same length as the request `ads` array.","type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"description":"The status the whole hierarchy ended in. Everything is created PAUSED; `ACTIVE` flips the campaign as the LAST step, so a chain that fails part-way has never spent anything."}},"required":["adAccountId","campaignId","adSetId","creativeIds","adIds","status"]},"AdChainExistingPostCreativeDto":{"type":"object","properties":{"objectStoryId":{"type":"string","description":"Existing Page post, `<pageId>_<postId>`. It must belong to the Page selected on the account; a post owned by another Page is refused before the request leaves this API."},"name":{"type":"string","maxLength":255},"urlTags":{"type":"string"}},"required":["objectStoryId"]},"AdChainBoostAdDto":{"type":"object","properties":{"name":{"type":"string","maxLength":255},"creative":{"$ref":"#/components/schemas/AdChainExistingPostCreativeDto"},"conversionDomain":{"type":"string","maxLength":253,"pattern":"^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$","description":"Registrable domain the conversion is attributed to. The platform requires it to create an ad in a campaign that shares data with a pixel, and rejects the create when it is missing there; send it for those campaigns. Host name only -- no scheme, port or path."}},"required":["name","creative"]},"BoostPostDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"campaign":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainCampaignDto"}]},"adSet":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainAdSetDto"}]},"adSetId":{"type":"string","description":"Existing Meta ad set id; cannot be combined with campaign or adSet."},"ads":{"minItems":1,"maxItems":1,"type":"array","items":{"$ref":"#/components/schemas/AdChainBoostAdDto"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED"}},"additionalProperties":false,"required":["accountId","adAccountId","ads"]},"CreateCallAdDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"campaign":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainCampaignDto"}]},"adSet":{"description":"Required unless adSetId is supplied. The call path wants `destinationType: 'PHONE_CALL'`.","allOf":[{"$ref":"#/components/schemas/AdChainAdSetDto"}]},"adSetId":{"type":"string","description":"Existing Meta ad set id; its destination must be PHONE_CALL and it cannot be combined with campaign or adSet."},"ads":{"minItems":1,"maxItems":1,"description":"The creative wants `callToAction: 'CALL_NOW'` and an E.164 `phoneNumber`; `linkUrl` stays a separate `https://` landing page.","type":"array","items":{"$ref":"#/components/schemas/AdChainAdDto"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED"}},"additionalProperties":false,"required":["accountId","adAccountId","ads"]},"CreateMessagingAdDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"campaign":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainCampaignDto"}]},"adSet":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainAdSetDto"}]},"adSetId":{"type":"string","description":"Existing Meta ad set id; all ads must use one matching appDestination. Cannot be combined with campaign or adSet."},"ads":{"minItems":1,"maxItems":3,"description":"One ad per creative, all under ONE ad set. The upper bound is not a product choice: it is the largest chain that still fits the ad account's outbound rate-limit window.","type":"array","items":{"$ref":"#/components/schemas/AdChainAdDto"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED"}},"additionalProperties":false,"required":["accountId","adAccountId","ads"]},"CreateCtwaAdDto":{"type":"object","properties":{"accountId":{"type":"string","description":"Social account id used to resolve the Meta token."},"adAccountId":{"type":"string","description":"Meta ad account id (act_<n>)."},"campaign":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainCampaignDto"}]},"adSet":{"description":"Required unless adSetId is supplied.","allOf":[{"$ref":"#/components/schemas/AdChainAdSetDto"}]},"adSetId":{"type":"string","description":"Existing Meta ad set id; its destination must be WHATSAPP and it cannot be combined with campaign or adSet."},"ads":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/AdChainAdDto"}},"status":{"type":"string","enum":["ACTIVE","PAUSED"],"default":"PAUSED"}},"additionalProperties":false,"required":["accountId","adAccountId","ads"]},"TrackingTagDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,19}$","description":"Platform-native tag id -- on Meta a numeric pixel id, as a string. THIS IS THE VALUE THE REST OF THE ADS SURFACE ASKS FOR: it is what `getConversionsQuality` calls `destinationId`, what `createAdAudience` calls `pixelId`, and what an ad's `promotedObject.pixelId` needs. No conversion is required -- all three validate the same shape."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"The tag name as it is stored on the platform."},"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"kind":{"type":"string","enum":["pixel"],"description":"What kind of tracking object this is. Always `pixel` today, because Meta is the only surface served. The contract this API tracks lists other kinds for other platforms; declaring them here would give you branches that can never be reached."},"status":{"type":"string","enum":["active","inactive"],"description":"DERIVED, not a platform field: `inactive` when `isUnavailable` is true, `active` otherwise. `isUnavailable` is published alongside it because the derivation loses WHY the platform cannot reach the tag."},"code":{"type":"string","nullable":true,"description":"The install snippet. IT IS ALWAYS NULL IN THE LIST VIEW -- the list edge does not request it, because the snippet is kilobytes of JavaScript per row. Read one tag by id to get it. A null from the by-id operation means the platform really did not return one."},"lastFiredTime":{"type":"number","nullable":true,"description":"Unix seconds of the last event this tag received, or null if it has NEVER fired. Null and zero are not the same thing."},"isUnavailable":{"type":"boolean","description":"The platform's own `is_unavailable` flag -- published raw next to the derived `status` so the derivation can be checked rather than trusted."},"installed":{"type":"boolean","description":"DERIVED from `lastFiredTime`: true once the tag has fired at least once. CREATING A TAG DOES NOT INSTALL IT -- this stays false until the snippet is actually on the site and an event arrives."},"creationTime":{"type":"number","nullable":true,"description":"Unix seconds the tag was created. NULLABLE HERE although the tracked contract types it as a plain integer: the platform does not always return the field, and inventing a timestamp for the rows where it is missing would be worse than admitting it."},"ownerBusinessId":{"type":"string","nullable":true,"description":"Business Manager that owns the tag, or null for a tag on a personal (non-BM) ad account. A NULL HERE IS WHY SHARING FAILS: the platform requires an owning business on every shared-accounts operation, so a tag with none cannot be shared at all."},"ownerAdAccountId":{"type":"string","nullable":true,"pattern":"^act_[1-9]\\d{0,19}$","description":"The `act_<n>` ad account that owns the tag. THIS IS WHAT RESOLVES THE ambiguity `getConversionsQuality` warns about -- it tells you which ad account each dataset belongs to. Nullable for the same reason as `creationTime`: the tracked contract types it as a plain string, the platform does not always send it."}},"required":["id","name","platform","kind","status","code","lastFiredTime","isUnavailable","installed","creationTime","ownerBusinessId","ownerAdAccountId"]},"TrackingTagsPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"minLength":1,"maxLength":2048,"description":"Cursor for the next page; null when exhausted. It is the platform's own cursor forwarded OPAQUELY -- never decoded, never re-encoded. NOT IN THE TRACKED CONTRACT, which declares no paging for this operation: the Graph edge pages regardless, and hiding the cursor would silently truncate the answer at whatever page size the platform chose."}},"required":["after"]},"ListTrackingTagsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"tags":{"description":"The tags on the ad account. AN EMPTY LIST IS A NORMAL ANSWER -- an ad account with no pixels has nothing to report and that is not an error. `code` is null on every row here; read one tag by id for the snippet.","type":"array","items":{"$ref":"#/components/schemas/TrackingTagDto"}},"paging":{"$ref":"#/components/schemas/TrackingTagsPagingDto"}},"required":["platform","tags","paging"]},"CreateTrackingTagDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32,"description":"The `act_<n>` ad account to create the tag in. REQUIRED: the platform edge lives under the ad account, and a tag cannot be created without one."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Name for the new tag. THE ONLY OTHER INPUT THE PLATFORM ACCEPTS on this edge -- the matching and cookie settings are set afterwards with the update operation."}},"additionalProperties":false,"required":["adAccountId","name"]},"TrackingTagResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"tag":{"$ref":"#/components/schemas/TrackingTagDto"}},"required":["platform","tag"]},"UpdateTrackingTagDto":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"New name for the tag."},"enableAutomaticMatching":{"type":"boolean","description":"Turn Advanced Matching on or off. When it is off the platform ignores `automaticMatchingFields` entirely."},"automaticMatchingFields":{"type":"array","description":"Customer-information keys the tag may hash and send. THIS REPLACES the stored list, it does not add to it -- send the full set you want. YOU CANNOT READ IT BACK: the tracked contract does not publish this field on the tag, so keep your own record of what you set.","items":{"type":"string","enum":["em","ph","fn","ln","ge","db","ct","st","zp","country","external_id"]}},"firstPartyCookieStatus":{"type":"string","enum":["empty","first_party_cookie_disabled","first_party_cookie_enabled"],"description":"First-party cookie behaviour. Sent to the platform in ITS OWN spelling (upper case); you always use the lower-case form here. NOT READABLE BACK -- see `automaticMatchingFields`."},"dataUseSetting":{"type":"string","enum":["advertising_and_analytics","analytics_only","empty"],"description":"How the platform may use the data this tag collects. Sent to the platform in ITS OWN spelling (upper case). NOT READABLE BACK -- see `automaticMatchingFields`."}},"additionalProperties":false},"TrackingTagSharedAccountDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The `act_<n>` ad account the tag is shared with."},"name":{"type":"string","nullable":true,"description":"Ad account name as the platform reported it, or null when it did not. Only `id` is guaranteed."},"businessId":{"type":"string","nullable":true,"description":"Business Manager the shared ad account belongs to, or null when the platform did not report one."}},"required":["id","name","businessId"]},"ListTrackingTagSharedAccountsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"sharedAccounts":{"description":"Ad accounts the tag is shared with. AN EMPTY LIST IS A NORMAL ANSWER. THERE IS NO PAGING on this edge -- the platform returns the whole set.","type":"array","items":{"$ref":"#/components/schemas/TrackingTagSharedAccountDto"}}},"required":["platform","sharedAccounts"]},"ShareTrackingTagDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","maxLength":32,"description":"The `act_<n>` ad account to share the tag with. You must manage BOTH the tag's Business Manager and this ad account."}},"additionalProperties":false,"required":["adAccountId"]},"ShareTrackingTagResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"ok":{"type":"boolean","description":"True when the share landed. A FAILED SHARE NEVER REACHES THIS BODY -- it comes back as an error envelope, so this field is not a status you need to branch on."}},"required":["platform","ok"]},"TrackingTagStatsDto":{"type":"object","properties":{"aggregation":{"type":"string","enum":["event","host","url","url_by_rule","pixel_fire","device_type","device_os","browser_type","had_pii","custom_data_field","match_keys","event_source","event_detection_method","event_processing_results","event_total_counts","event_value_count"],"description":"The dimension the rows are grouped by -- AN ECHO OF YOUR REQUEST, not a platform field. Defaults to `event`."},"startTime":{"type":"number","nullable":true,"description":"Start of the window in unix seconds, echoed back; null when you did not send one and the platform chose the window."},"endTime":{"type":"number","nullable":true,"description":"End of the window in unix seconds, echoed back; null when you did not send one."},"rows":{"additionalProperties":true,"description":"Rows from the platform, PASSED THROUGH AS-IS. Their keys depend on `aggregation` and this API does not reshape or validate them -- the tracked contract declares them open, and inventing a shape for sixteen dimensions we have not observed would reject real data. AN EMPTY LIST IS A NORMAL ANSWER.","type":"array","items":{"type":"object"}}},"required":["aggregation","startTime","endTime","rows"]},"TrackingTagStatsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads"],"description":"Always `metaads`. This names the ADVERTISING SURFACE the tag lives on, and it is deliberately not one of the connected-account platform names: there is no separate `metaads` account, adapter or credential behind it. You connect a Facebook account and manage this surface through it."},"stats":{"$ref":"#/components/schemas/TrackingTagStatsDto"}},"required":["platform","stats"]},"CustomConversionDto":{"type":"object","properties":{"id":{"type":"string","description":"Platform id of the custom conversion."},"name":{"type":"string","nullable":true,"description":"Conversion name. TOGETHER WITH `pixelId` THIS IS THE REUSE KEY: creating with the same pair returns the existing conversion instead of minting a second one."},"rule":{"type":"object","nullable":true,"additionalProperties":true,"description":"The platform's own rule grammar, parsed back from the string the platform stores. It is forwarded and returned VERBATIM -- no key is renamed, added or dropped, because the grammar is the platform's and translating it here would corrupt rules this API does not know."},"customEventType":{"type":"string","nullable":true,"description":"The platform event type, e.g. `LEAD`, `PURCHASE`, `OTHER`. NOT VALIDATED AGAINST AN ENUM: the platform publishes no enumeration for this field, and writing our own would refuse values the platform accepts."},"pixelId":{"type":"string","nullable":true,"description":"The pixel the rule reads from (the platform calls it `event_source_id`). Discover it with `GET /v1/accounts/{accountId}/tracking-tags`."},"isArchived":{"type":"boolean","description":"Archived conversions ARE listed, and this flag is the only thing that tells them apart. Filtering them out here would close the only surface on which an archived conversion is visible at all."}},"required":["id","name","rule","customEventType","pixelId","isArchived"]},"CustomConversionsPagingDto":{"type":"object","properties":{"after":{"type":"string","nullable":true,"description":"Opaque cursor for the next page, or null when this is the last one. Pass it back as the `after` query parameter."}},"required":["after"]},"ListCustomConversionsResponseDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Echo of the ad account whose conversions these are."},"data":{"description":"The conversions on the ad account, INCLUDING ARCHIVED ONES. An empty list is a normal answer, not an error.","type":"array","items":{"$ref":"#/components/schemas/CustomConversionDto"}},"paging":{"$ref":"#/components/schemas/CustomConversionsPagingDto"}},"required":["adAccountId","data","paging"]},"CreateCustomConversionDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"The `act_<n>` ad account the conversion is created on."},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Conversion name, AND HALF OF THE REUSE KEY (the other half is `pixelId`). Sending a name that already exists on the same pixel returns that conversion with a 200 instead of creating a second one."},"pixelId":{"type":"string","description":"The pixel the rule reads from. Get it from `GET /v1/accounts/{accountId}/tracking-tags` -- `tags[].id` is exactly this value, with no conversion."},"customEventType":{"type":"string","description":"The platform event type, e.g. `LEAD`, `PURCHASE`, `OTHER`. NOT CHECKED AGAINST AN ENUM -- see the field of the same name on the conversion itself."},"rule":{"type":"object","additionalProperties":true,"description":"The rule, in the platform's own grammar, forwarded VERBATIM. This API does not translate, validate or reshape it; a rule the platform refuses comes back as a 400 carrying the platform's own reason."}},"additionalProperties":false,"required":["adAccountId","name","pixelId","customEventType","rule"]},"CustomConversionResultDto":{"type":"object","properties":{"adAccountId":{"type":"string","pattern":"^act_[1-9]\\d{0,19}$","description":"Echo of the ad account the conversion belongs to."},"customConversionId":{"type":"string","description":"Platform id of the conversion. DROPS STRAIGHT INTO `adSet.promotedObject.customConversionId` on the ad-creating endpoints -- no conversion of the value is needed."},"reused":{"type":"boolean","description":"True when an existing NON-ARCHIVED conversion matched `name` + `pixelId` and was returned instead of creating a second one; the response is then a 200 rather than a 201.\n\nTHE REUSE IS THIS API'S, NOT THE PLATFORM'S. The platform create is not idempotent, so without it a retried request would mint a duplicate carrying none of the original's optimisation history."},"customConversion":{"$ref":"#/components/schemas/CustomConversionDto"}},"required":["adAccountId","customConversionId","reused","customConversion"]},"ConversionDestination":{"type":"object","properties":{"id":{"type":"string","description":"Destination identifier. For Meta this is the pixel id.\n\nIT DROPS STRAIGHT INTO THE ENDPOINTS THAT ALREADY SERVE IT, with no conversion: `GET /v1/ads/conversions/quality?destinationId=...`, `pixelId` on `POST /v1/ads/audiences`, and `adSet.promotedObject.pixelId` on the ad-creating endpoints. It is also the same id `GET /v1/accounts/{accountId}/tracking-tags` returns as `tags[].id`. Google and LinkedIn identifiers likewise pass directly to `POST /v1/ads/conversions` and the LinkedIn detail routes."},"name":{"type":"string","description":"Destination name as the platform stores it. NOT SUFFIXED with the ad account it was discovered on: the tracked contract asks for that only on the tracking-tag listing, and two destinations that share a name are still told apart by `id`."},"status":{"type":"string","enum":["active","inactive"],"description":"For LinkedIn, `inactive` is the provider rule state `enabled=false`; DELETE performs that reversible soft delete. For Meta, status is derived from the provider `isUnavailable` flag."},"type":{"type":"string","description":"Provider-locked conversion category (Google Ads and LinkedIn)."},"adAccountId":{"type":"string","description":"Parent sponsored ad account when the provider requires it."}},"additionalProperties":false,"required":["id","name"]},"ListConversionDestinationsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["metaads","googleads","linkedinads","tiktokads","openaiads"],"description":"The ads platform the destinations came from. Meta pixels, Google Ads conversion actions, and LinkedIn conversion rules are served today. Unsupported account platforms are rejected instead of returning an invented empty list."},"destinations":{"description":"Every destination reachable by the connected account. Meta pixels are gathered across ad accounts and deduplicated by id; LinkedIn rules retain their parent adAccountId. An empty list is a normal answer, not an error.","type":"array","items":{"$ref":"#/components/schemas/ConversionDestination"}}},"required":["platform","destinations"]},"ConversionDestinationValueDto":{"type":"object","properties":{"currencyCode":{"type":"string","minLength":3,"maxLength":3},"amount":{"type":"string"}},"additionalProperties":false,"required":["currencyCode","amount"]},"CreateConversionDestinationRequestDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"name":{"type":"string","maxLength":255},"type":{"type":"string"},"attributionType":{"type":"string","enum":["LAST_TOUCH_BY_CAMPAIGN","LAST_TOUCH_BY_CONVERSION"]},"postClickAttributionWindowSize":{"type":"number","enum":[1,7,30,90,365]},"viewThroughAttributionWindowSize":{"type":"number","enum":[1,7,30,90,365]},"valueType":{"type":"string","enum":["DYNAMIC","FIXED","NO_VALUE"]},"value":{"$ref":"#/components/schemas/ConversionDestinationValueDto"},"autoAssociationType":{"type":"string","enum":["ALL_CAMPAIGNS","OBJECTIVE_BASED","NONE"]},"countingType":{"type":"string","enum":["MANY_PER_CLICK","ONE_PER_CLICK"]},"primaryForGoal":{"type":"boolean"}},"additionalProperties":false,"required":["adAccountId","name","type"]},"CreateConversionDestinationResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedinads","googleads"]},"destination":{"$ref":"#/components/schemas/ConversionDestination"}},"required":["platform","destination"]},"ConversionDestinationResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedinads"]},"destination":{"$ref":"#/components/schemas/ConversionDestination"}},"required":["platform","destination"]},"UpdateConversionDestinationRequestDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"name":{"type":"string","maxLength":255},"enabled":{"type":"boolean"},"attributionType":{"type":"string","enum":["LAST_TOUCH_BY_CAMPAIGN","LAST_TOUCH_BY_CONVERSION"]},"postClickAttributionWindowSize":{"type":"number","enum":[1,7,30,90,365]},"viewThroughAttributionWindowSize":{"type":"number","enum":[1,7,30,90,365]},"valueType":{"type":"string","enum":["DYNAMIC","FIXED","NO_VALUE"]},"value":{"$ref":"#/components/schemas/ConversionDestinationValueDto"}},"additionalProperties":false,"required":["adAccountId"]},"ConversionAssociationDto":{"type":"object","properties":{"campaignId":{"type":"string"},"conversionId":{"type":"string"},"associatedAt":{"type":"number","description":"Epoch milliseconds."}},"required":["campaignId","conversionId","associatedAt"]},"ConversionAssociationsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedinads"]},"associations":{"type":"array","items":{"$ref":"#/components/schemas/ConversionAssociationDto"}}},"required":["platform","associations"]},"ConversionAssociationBatchRequestDto":{"type":"object","properties":{"adAccountId":{"type":"string"},"campaignIds":{"minItems":1,"maxItems":100,"description":"Numeric campaign IDs or full urn:li:sponsoredCampaign:{id} URNs.","type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["adAccountId","campaignIds"]},"ConversionAssociationFailureDto":{"type":"object","properties":{"campaignId":{"type":"string"},"reason":{"type":"string"}},"required":["campaignId","reason"]},"ConversionAssociationBatchResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedinads"]},"succeeded":{"type":"array","items":{"type":"string"}},"failed":{"type":"array","items":{"$ref":"#/components/schemas/ConversionAssociationFailureDto"}}},"required":["platform","succeeded","failed"]},"ConversionMetricsRowDto":{"type":"object","properties":{"start":{"type":"string","description":"YYYY-MM-DD"},"end":{"type":"string","description":"YYYY-MM-DD (inclusive)"},"metrics":{"type":"object","additionalProperties":{"oneOf":[{"type":"number"},{"type":"string"}]}}},"required":["start","end","metrics"]},"ConversionMetricsResponseDto":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedinads"]},"granularity":{"type":"string","enum":["ALL","DAILY","MONTHLY","YEARLY"]},"rows":{"type":"array","items":{"$ref":"#/components/schemas/ConversionMetricsRowDto"}}},"required":["platform","granularity","rows"]},"AdMediaItemDto":{"type":"object","properties":{"type":{"type":"string","enum":["image","video"]},"url":{"type":"string","description":"Short-lived provider media URL."},"thumbnailUrl":{"type":"string"},"videoId":{"type":"string"},"length":{"type":"number","minimum":0},"index":{"type":"number","minimum":0}},"additionalProperties":false,"required":["type","url"]},"AdMediaResponseDto":{"type":"object","properties":{"adId":{"type":"string"},"platform":{"type":"string","enum":["facebook"],"description":"This bounded implementation resolves media through a connected Facebook Marketing API credential."},"media":{"type":"array","items":{"$ref":"#/components/schemas/AdMediaItemDto"}}},"additionalProperties":false,"required":["adId","platform","media"]},"UpdateAdStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"],"description":"Target delivery status for this one ad."},"platform":{"type":"string","description":"Optional. The platform is normally inferred from the stored ad, so this is only needed when one platform ad id exists on more than one platform for this tenant -- in that case the request is refused by name rather than resolved by guess. Sending it when it disagrees with the stored ad is a 400, never a silent override."}},"additionalProperties":false,"required":["status"]},"UpdateAdStatusResponseDto":{"type":"object","properties":{"updated":{"type":"number","description":"1 when the platform was asked to change this ad, 0 when the call was skipped. Like the campaign and ad-set endpoints this is a claim about the platform, NOT about rows in this API's store."},"skipped":{"type":"number","description":"1 when the ad was left alone because its stored status is terminal (rejected, completed, cancelled), else 0."},"message":{"type":"string","description":"Present only when the ad was skipped. In that case the platform is NOT called at all: a terminal ad has nothing to toggle, and spending a call to learn that would spend the account's platform budget for no effect."}},"required":["updated","skipped"]},"UpdateAdBudgetDto":{"type":"object","properties":{"amount":{"type":"number","minimum":1},"type":{"type":"string","enum":["daily","lifetime"]}},"required":["amount","type"]},"UpdateAdInterestDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"UpdateAdTargetingDto":{"type":"object","properties":{"keywords":{"description":"Google only.","type":"array","items":{"type":"string"}},"negativeKeywords":{"description":"Google only.","type":"array","items":{"type":"string"}},"ageMin":{"type":"number","minimum":13,"maximum":65},"ageMax":{"type":"number","minimum":13,"maximum":65},"countries":{"type":"array","items":{"type":"string"}},"interests":{"type":"array","items":{"$ref":"#/components/schemas/UpdateAdInterestDto"}},"advantage_audience":{"type":"number","enum":[0,1]}}},"UpdateAdReplacementCreativeDto":{"type":"object","properties":{"headline":{"type":"string"},"body":{"type":"string"},"callToAction":{"type":"string","enum":["LEARN_MORE","SHOP_NOW","SIGN_UP","BOOK_TRAVEL","CONTACT_US","DOWNLOAD","GET_OFFER","GET_QUOTE","SUBSCRIBE","WATCH_MORE","ADD_TO_CART","APPLY_NOW","BOOK_NOW","BUY_TICKETS","DONATE","DONATE_NOW","GET_DIRECTIONS","GET_SHOWTIMES","LISTEN_NOW","ORDER_NOW","PLAY_GAME","REQUEST_TIME","SEE_MENU","START_ORDER","INSTALL_MOBILE_APP","USE_APP","REGISTER","JOIN","ATTEND","REQUEST_DEMO","VIEW_QUOTE","APPLY","SEE_MORE","BUY_NOW"]},"linkUrl":{"type":"string","format":"uri"},"imageUrl":{"type":"string","format":"uri"}},"required":["headline","body","callToAction","linkUrl","imageUrl"]},"UpdateAdDto":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"]},"budget":{"$ref":"#/components/schemas/UpdateAdBudgetDto"},"targeting":{"$ref":"#/components/schemas/UpdateAdTargetingDto"},"creative":{"$ref":"#/components/schemas/UpdateAdReplacementCreativeDto"},"name":{"type":"string","maxLength":255},"platform":{"type":"string","description":"Optional local disambiguator. Inferred when the platform ad id is unique for this tenant."}},"additionalProperties":false},"AdDto":{"type":"object","properties":{"id":{"type":"string","description":"Zumpo ad document id (24-char lowercase hex)."},"platform":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","paused","pending_review","rejected","completed","cancelled","error"],"description":"Delivery status, from the platform's effective status."},"configuredStatus":{"type":"string","nullable":true,"description":"The ad's own on/off toggle as configured on the platform."},"reviewStatus":{"type":"string","nullable":true},"rejectionReason":{"type":"string","nullable":true},"adType":{"type":"string","enum":["boost","standalone"]},"creativeType":{"type":"string","nullable":true,"enum":["carousel","video","document","image"],"description":"Null when the creative carries no classifiable media."},"goal":{"type":"string","nullable":true,"description":"Null when the objective is UNKNOWN -- an ad whose campaign block the platform did not return has no objective to derive one from."},"isExternal":{"type":"boolean","description":"True for ads discovered from the platform ad manager."},"platformAdId":{"type":"string"},"platformAdAccountId":{"type":"string"},"platformCampaignId":{"type":"string","nullable":true},"platformAdSetId":{"type":"string","nullable":true},"campaignName":{"type":"string","nullable":true},"adSetName":{"type":"string","nullable":true},"platformObjective":{"type":"string","nullable":true},"optimizationGoal":{"type":"string","nullable":true},"bidStrategy":{"type":"string","nullable":true},"bidAmountMinorUnits":{"type":"number","nullable":true,"description":"Bid amount in the ad account's SMALLEST currency unit, unconverted, paired with `currency` so the conversion is always available to the caller. Meta's per-currency offset IS known (measured 2026-08-13 from the platform's own currency table), so the unconverted value is a choice, not a gap: a projection reports what the platform stored, and dividing here would make the number this API's arithmetic rather than the platform's reading."},"currency":{"type":"string","nullable":true,"description":"ISO 4217 code for every money field on this ad."},"effectiveObjectStoryId":{"type":"string","nullable":true},"effectiveInstagramMediaId":{"type":"string","nullable":true},"accountId":{"type":"string"},"platformCreatedAt":{"type":"string","nullable":true},"lastSyncedAt":{"type":"string","nullable":true,"description":"When this document was last refreshed from the platform."},"metrics":{"$ref":"#/components/schemas/AdMetricsDto"}},"required":["id","platform","name","status","configuredStatus","reviewStatus","rejectionReason","adType","creativeType","goal","isExternal","platformAdId","platformAdAccountId","platformCampaignId","platformAdSetId","campaignName","adSetName","platformObjective","optimizationGoal","bidStrategy","bidAmountMinorUnits","currency","effectiveObjectStoryId","effectiveInstagramMediaId","accountId","platformCreatedAt","lastSyncedAt","metrics"]},"UpdateAdResponseDto":{"type":"object","properties":{"ad":{"$ref":"#/components/schemas/AdDto"},"message":{"type":"string"}},"required":["ad","message"]},"DeleteAdResponseDto":{"type":"object","properties":{"deleted":{"type":"boolean","description":"Always true when the call succeeded."},"adId":{"type":"string","description":"The ad id that was deleted."},"updatedDocuments":{"type":"number","description":"Stored ad documents marked cancelled by this call. It is 0 when the document was already cancelled -- deleting twice is not an error."},"message":{"type":"string","description":"Human-readable confirmation. It states that the deletion is permanent, because on the platform this cannot be undone: a deleted ad cannot be moved back to any other state."}},"required":["deleted","adId","updatedDocuments","message"]},"DuplicateAdDto":{"type":"object","properties":{"platform":{"type":"string","enum":["facebook","instagram"],"description":"Platform the ad lives on. Inferred from the stored ad; only needed when one platform ad id exists on more than one platform for this tenant. Only Meta is served today."},"adSetId":{"type":"string","description":"Destination platform ad set id. Omitted = the source's own ad set. This is the ONLY way to move an ad between ad sets: the platform refuses to reparent an existing ad, so duplicating is the supported path."},"statusOption":{"type":"string","enum":["ACTIVE","PAUSED","INHERITED_FROM_SOURCE"],"default":"PAUSED","description":"Delivery state of the copy. Defaults to PAUSED so a caller can review before spending: a duplicate that starts delivering the moment it is created spends money on a configuration nobody has looked at."},"renameStrategy":{"type":"string","enum":["DEEP_RENAME","ONLY_TOP_LEVEL_RENAME","NO_RENAME"]},"renamePrefix":{"type":"string","maxLength":64,"description":"Prefix for the copied name. NOT trimmed -- a prefix exists to carry its trailing space (\"Copy of \"), and trimming would produce \"Copy ofSummer Sale\"."},"renameSuffix":{"type":"string","maxLength":64},"syncAfter":{"type":"boolean","default":true,"description":"Pull the account's next discovery pass forward so the copy shows up sooner. Nothing is written locally either way."}},"additionalProperties":false},"DuplicateAdResponseDto":{"type":"object","properties":{"copiedAdId":{"type":"string","description":"Platform id of the new ad."},"discovery":{"type":"string","enum":["triggered","skipped","failed"],"description":"What happened to the discovery nudge. `failed` does NOT mean the copy failed -- the ad exists on the platform either way; only its visibility here is delayed. Reporting the copy as failed would send the caller to create a SECOND one."}},"required":["copiedAdId","discovery"]},"AdAnalyticsSummaryDto":{"type":"object","properties":{"id":{"type":"string","description":"The platform's own ad id."},"name":{"type":"string","nullable":true},"platform":{"type":"string"},"status":{"type":"string","enum":["active","paused","pending_review","rejected","completed","cancelled","error"]},"campaignId":{"type":"string","nullable":true,"description":"Parent campaign id, so a caller can walk up the hierarchy."},"adSetId":{"type":"string","nullable":true,"description":"Parent ad set id."},"currency":{"type":"string","nullable":true,"description":"ISO 4217 code for every money field in `metrics`."},"platformAdAccountId":{"type":"string","nullable":true}},"required":["id","name","platform","status","campaignId","adSetId","currency","platformAdAccountId"]},"AdAnalyticsResponseDto":{"type":"object","properties":{"ad":{"$ref":"#/components/schemas/AdAnalyticsSummaryDto"},"metrics":{"description":"Totals over the whole range.","allOf":[{"$ref":"#/components/schemas/AdMetricsDto"}]},"daily":{"description":"One entry per day that has data, oldest first. Days with no delivery are OMITTED rather than zero-filled: a stored zero and an unsynced day are different facts, and `coverage` is what distinguishes them.","type":"array","items":{"$ref":"#/components/schemas/AdDailyMetricsPointDto"}},"coverage":{"$ref":"#/components/schemas/AdCoverageDto"}},"required":["ad","metrics","daily","coverage"]},"AdPreviewResponseDto":{"type":"object","properties":{"adId":{"type":"string","description":"The platform's own ad id."},"previews":{"description":"One entry per requested format, in the order requested. The iframe URL inside each snippet EXPIRES 24 HOURS after it is issued, so it is meant to be rendered now, not stored.","type":"array","items":{"$ref":"#/components/schemas/AdPreviewItemDto"}}},"required":["adId","previews"]},"AdTrackingTagsResponseDto":{"type":"object","properties":{"adId":{"type":"string","description":"The platform's own ad id."},"platform":{"type":"string","description":"The platform the ad runs on."},"level":{"type":"string","enum":["creative"],"description":"Which object the tags are stored on. On Meta that is the creative, which is why two ads sharing one creative report the same tags."},"creativeId":{"type":"string","nullable":true,"description":"The creative the tags were read from. NULL when the platform returned no creative block for this ad."},"urlTags":{"type":"string","nullable":true,"description":"The platform's own click-URL parameter string, verbatim -- typically `&`-joined `key=value` pairs. It is NOT parsed into a key/value map here: the string may carry the platform's dynamic macros (for example `{{ad.id}}`) and may repeat a key, and both facts survive a raw string while a map would have to invent a rule for them.\n\nNULL means no tags are set, which is not the same as an empty string."},"templateUrlSpec":{"type":"object","nullable":true,"additionalProperties":true,"description":"The creative's third-party click-tracking template, verbatim. NULL when none is configured."}},"required":["adId","platform","level","creativeId","urlTags","templateUrlSpec"]},"AdTrackingTagPairDto":{"type":"object","properties":{"key":{"type":"string","maxLength":128},"value":{"type":"string","maxLength":2048}},"required":["key","value"]},"UpdateAdTrackingTagsDto":{"type":"object","properties":{"urlTags":{"maxItems":100,"description":"Meta click-URL parameters. An empty array clears url_tags. Dynamic macros such as {{campaign.id}} remain unescaped; all other key/value characters are percent-encoded.","type":"array","items":{"$ref":"#/components/schemas/AdTrackingTagPairDto"}}},"additionalProperties":false,"required":["urlTags"]},"UpdateAdTrackingTagsResponseDto":{"type":"object","properties":{"adId":{"type":"string"},"platform":{"type":"string"},"level":{"type":"string","enum":["creative"]},"creativeId":{"type":"string"},"urlTags":{"type":"string","description":"Serialized value stored in Meta url_tags."}},"required":["adId","platform","level","creativeId","urlTags"]},"AdCommentDto":{"type":"object","properties":{"id":{"type":"string","description":"The platform's own comment id."},"text":{"type":"string","nullable":true,"description":"NULL when the comment carries no text -- a sticker or image comment is a real comment with no message."},"createdAt":{"type":"string","nullable":true,"description":"ISO 8601."},"authorId":{"type":"string","nullable":true,"description":"ALWAYS NULL on Instagram: that platform returns a username, not a commenter id. On Facebook it is NULL when the platform withheld the author block, which it does for deleted or hidden commenters."},"authorName":{"type":"string","nullable":true,"description":"Display name on Facebook, username on Instagram."},"likeCount":{"type":"number","nullable":true},"replyCount":{"type":"number","nullable":true,"description":"Replies under this comment. ALWAYS NULL on Instagram: the comment node does not carry a reply count in this projection, and a number that was not measured is worse than no number."}},"required":["id","text","createdAt","authorId","authorName","likeCount","replyCount"]},"AdCommentsPaginationDto":{"type":"object","properties":{"hasMore":{"type":"boolean"},"cursor":{"type":"string","nullable":true,"description":"Pass back as `cursor` for the next page. NULL on the last page -- and that is derived from the platform saying there IS a next page, not from it handing back a cursor: it hands one back on the last page too, and following that one would page forever."}},"required":["hasMore","cursor"]},"AdCommentsMetaDto":{"type":"object","properties":{"placement":{"type":"string","enum":["facebook","instagram"],"description":"Which side these comments are on -- useful when you did not ask."},"platformAdId":{"type":"string","description":"The platform's own ad id."},"effectiveStoryId":{"type":"string","description":"The underlying post the comments belong to: the object story id on the Facebook side, the media id on the Instagram side."},"facebookAccountId":{"type":"string","nullable":true,"description":"The connected Facebook account the comments were read through. NULL on the Instagram side."},"instagramAccountId":{"type":"string","nullable":true,"description":"The connected Instagram account the comments were read through. NULL on the Facebook side."},"instagramUserId":{"type":"string","nullable":true,"description":"The platform's own id for the Instagram account that owns the media."},"instagramPermalink":{"type":"string","nullable":true}},"required":["placement","platformAdId","effectiveStoryId","facebookAccountId","instagramAccountId","instagramUserId","instagramPermalink"]},"AdCommentsResponseDto":{"type":"object","properties":{"comments":{"type":"array","items":{"$ref":"#/components/schemas/AdCommentDto"}},"pagination":{"$ref":"#/components/schemas/AdCommentsPaginationDto"},"meta":{"$ref":"#/components/schemas/AdCommentsMetaDto"}},"required":["comments","pagination","meta"]},"AdsResponseDto":{"type":"object","properties":{"ads":{"type":"array","items":{"$ref":"#/components/schemas/AdDto"}},"pagination":{"$ref":"#/components/schemas/PaginationDto"},"coverage":{"$ref":"#/components/schemas/AdCoverageDto"}},"required":["ads","pagination","coverage"]},"AdResponseDto":{"type":"object","properties":{"ad":{"$ref":"#/components/schemas/AdDto"},"coverage":{"$ref":"#/components/schemas/AdCoverageDto"}},"required":["ad","coverage"]},"SendSmsMessageDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"from":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$","example":"+15551234567"},"to":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$","example":"+15557654321"},"body":{"type":"string","minLength":1,"maxLength":4096,"example":"Your order is on its way."}},"additionalProperties":false,"required":["profileId","from","to","body"]},"SmsMessageDto":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"a1b2c3d4e5f6a7b8c9d0e1f2"},"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","example":"b2c3d4e5f6a7b8c9d0e1f2a3"},"status":{"type":"string","enum":["queued","sent","failed"],"example":"sent"},"from":{"type":"string","example":"+15551234567"},"to":{"type":"string","example":"+15557654321"},"body":{"type":"string","example":"Your order is on its way."},"encoding":{"type":"string","enum":["gsm7","ucs2"],"example":"gsm7"},"segments":{"type":"number","minimum":1,"example":1},"providerMessageId":{"type":"string","nullable":true,"example":"40017b1a-1b2c-4d5e-8f90-1234567890ab","description":"The message id at the carrier; filled only while status=sent."},"errorCode":{"type":"string","nullable":true,"example":null,"description":"The rejection code of the carrier; filled only while status=failed."},"sentAt":{"type":"string","nullable":true,"format":"date-time","example":null,"description":"The moment the carrier accepted it; filled only while status=sent."},"createdAt":{"type":"string","format":"date-time","example":"2026-08-25T09:00:00.123456Z"}},"additionalProperties":false,"required":["id","profileId","status","from","to","body","encoding","segments","providerMessageId","errorCode","sentAt","createdAt"]},"SmsMessageListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SmsMessageDto"}},"hasMore":{"type":"boolean","example":false},"nextCursor":{"type":"string","nullable":true,"example":null,"description":"Opaque next-page cursor; null if absent"}},"additionalProperties":false,"required":["data","hasMore","nextCursor"]},"SmsBrandSummaryDto":{"type":"object","properties":{"brandId":{"type":"string","example":"4b6b8f2a-0c3d-4a1e-9f7b-2c5d8e1a4b7c"},"tcrBrandId":{"type":"string","nullable":true,"example":"BRAND123"},"entityType":{"type":"string","enum":["PRIVATE_PROFIT","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT","SOLE_PROPRIETOR"],"example":"PRIVATE_PROFIT"},"identityStatus":{"type":"string","enum":["VERIFIED","UNVERIFIED","SELF_DECLARED","VETTED_VERIFIED"],"nullable":true,"example":"VERIFIED"},"displayName":{"type":"string","example":"Zumpo Technology"},"companyName":{"type":"string","nullable":true,"example":"Zumpo Technology Inc."},"email":{"type":"string","nullable":true,"example":"sms@example.com"},"website":{"type":"string","nullable":true,"example":"https://example.com"},"status":{"type":"string","enum":["OK","REGISTRATION_PENDING","REGISTRATION_FAILED"],"example":"OK"},"failureReasons":{"type":"string","nullable":true,"example":null},"createdAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"assignedCampaignsCount":{"type":"number","nullable":true,"example":2}},"additionalProperties":false,"required":["brandId","tcrBrandId","entityType","identityStatus","displayName","companyName","email","website","status","failureReasons","createdAt","updatedAt","assignedCampaignsCount"]},"SmsBrandListDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/SmsBrandSummaryDto"}},"page":{"type":"number","minimum":1,"example":1},"totalRecords":{"type":"number","minimum":0,"example":1}},"additionalProperties":false,"required":["records","page","totalRecords"]},"CreateSmsBrandDto":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^[0-9a-f]{24}$","description":"The profile that owns this brand and its campaigns."},"entityType":{"type":"string","enum":["PRIVATE_PROFIT","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT","SOLE_PROPRIETOR"],"example":"PRIVATE_PROFIT"},"displayName":{"type":"string","minLength":1,"maxLength":256,"example":"Zumpo Technology"},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","example":"US"},"email":{"type":"string","minLength":3,"maxLength":320,"example":"sms@example.com"},"vertical":{"type":"string","enum":["AGRICULTURE","COMMUNICATION","CONSTRUCTION","EDUCATION","ENERGY","ENTERTAINMENT","FINANCIAL","GAMBLING","GOVERNMENT","HEALTHCARE","HOSPITALITY","HUMAN_RESOURCES","INSURANCE","LEGAL","MANUFACTURING","NGO","POLITICAL","POSTAL","PROFESSIONAL","REAL_ESTATE","RETAIL","TECHNOLOGY","TRANSPORTATION"],"example":"TECHNOLOGY"},"companyName":{"type":"string","maxLength":256},"ein":{"type":"string","maxLength":64},"phone":{"type":"string","maxLength":32},"street":{"type":"string","maxLength":256},"city":{"type":"string","maxLength":128},"state":{"type":"string","maxLength":128},"postalCode":{"type":"string","maxLength":32},"website":{"type":"string","maxLength":2048},"isReseller":{"type":"boolean","example":false},"businessContactEmail":{"type":"string","maxLength":320},"stockSymbol":{"type":"string","maxLength":256,"example":"TLNX"},"stockExchange":{"type":"string","maxLength":256,"example":"NASDAQ"},"mock":{"type":"boolean","example":true}},"additionalProperties":false,"required":["profileId","entityType","displayName","country","email","vertical"]},"SmsBrandDto":{"type":"object","properties":{"brandId":{"type":"string","example":"4b6b8f2a-0c3d-4a1e-9f7b-2c5d8e1a4b7c"},"tcrBrandId":{"type":"string","nullable":true,"example":"BRAND123"},"entityType":{"type":"string","enum":["PRIVATE_PROFIT","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT","SOLE_PROPRIETOR"],"example":"PRIVATE_PROFIT"},"identityStatus":{"type":"string","enum":["VERIFIED","UNVERIFIED","SELF_DECLARED","VETTED_VERIFIED"],"nullable":true,"example":"VERIFIED"},"displayName":{"type":"string","example":"Zumpo Technology"},"companyName":{"type":"string","nullable":true,"example":"Zumpo Technology Inc."},"email":{"type":"string","nullable":true,"example":"sms@example.com"},"website":{"type":"string","nullable":true,"example":"https://example.com"},"status":{"type":"string","enum":["OK","REGISTRATION_PENDING","REGISTRATION_FAILED"],"example":"OK"},"failureReasons":{"type":"string","nullable":true,"example":null},"createdAt":{"type":"string","nullable":true,"format":"date-time"},"updatedAt":{"type":"string","nullable":true,"format":"date-time"},"assignedCampaignsCount":{"type":"number","nullable":true,"example":2},"country":{"type":"string","example":"US"},"vertical":{"type":"string","example":"TECHNOLOGY"},"ein":{"type":"string","nullable":true,"example":null},"phone":{"type":"string","nullable":true,"example":"+15551234567"},"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"isReseller":{"type":"boolean","example":false},"mock":{"type":"boolean","example":false}},"additionalProperties":false,"required":["brandId","tcrBrandId","entityType","identityStatus","displayName","companyName","email","website","status","failureReasons","createdAt","updatedAt","assignedCampaignsCount","country","vertical","ein","phone","street","city","state","postalCode","isReseller","mock"]},"SmsBrandResponseDto":{"type":"object","properties":{"brand":{"$ref":"#/components/schemas/SmsBrandDto"}},"additionalProperties":false,"required":["brand"]},"SmsCampaignDto":{"type":"object","properties":{"campaignId":{"type":"string","example":"CAMPAIGN123"},"brandId":{"type":"string","example":"4b6b8f2a-0c3d-4a1e-9f7b-2c5d8e1a4b7c"},"tcrCampaignId":{"type":"string","nullable":true,"example":"CTCR123"},"usecase":{"type":"string","example":"MIXED"},"subUsecases":{"example":["MARKETING"],"type":"array","items":{"type":"string"}},"description":{"type":"string","example":"Order notifications"},"messageFlow":{"type":"string","nullable":true},"helpMessage":{"type":"string","nullable":true},"sample1":{"type":"string","nullable":true},"sample2":{"type":"string","nullable":true},"embeddedLink":{"type":"boolean","example":false},"embeddedPhone":{"type":"boolean","example":false},"ageGated":{"type":"boolean","example":false},"directLending":{"type":"boolean","example":false},"numberPool":{"type":"boolean","example":false},"subscriberOptin":{"type":"boolean","example":true},"subscriberOptout":{"type":"boolean","example":true},"subscriberHelp":{"type":"boolean","example":true},"termsAndConditions":{"type":"boolean","example":true},"submissionStatus":{"type":"string","enum":["CREATED","FAILED","PENDING"],"example":"CREATED"},"campaignStatus":{"type":"string","enum":["TCR_PENDING","TCR_SUSPENDED","TCR_EXPIRED","TCR_ACCEPTED","TCR_FAILED","TELNYX_ACCEPTED","TELNYX_FAILED","MNO_PENDING","MNO_ACCEPTED","MNO_REJECTED","MNO_PROVISIONED","MNO_PROVISIONING_FAILED"],"example":"TCR_ACCEPTED"},"failureReasons":{"type":"string","nullable":true},"createDate":{"type":"string","nullable":true,"format":"date-time"},"mock":{"type":"boolean","example":false}},"additionalProperties":false,"required":["campaignId","brandId","tcrCampaignId","usecase","subUsecases","description","messageFlow","helpMessage","sample1","sample2","embeddedLink","embeddedPhone","ageGated","directLending","numberPool","subscriberOptin","subscriberOptout","subscriberHelp","termsAndConditions","submissionStatus","campaignStatus","failureReasons","createDate","mock"]},"SmsCampaignListDto":{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/SmsCampaignDto"}},"page":{"type":"number","minimum":1,"example":1},"totalRecords":{"type":"number","minimum":0,"example":1}},"additionalProperties":false,"required":["records","page","totalRecords"]},"CreateSmsCampaignDto":{"type":"object","properties":{"brandId":{"type":"string","example":"4b6b8f2a-0c3d-4a1e-9f7b-2c5d8e1a4b7c"},"usecase":{"type":"string","minLength":1,"maxLength":64,"example":"MIXED"},"description":{"type":"string","minLength":1,"maxLength":4096,"example":"Order notifications"},"subUsecases":{"type":"array","items":{"type":"string"}},"messageFlow":{"type":"string","maxLength":4096},"helpMessage":{"type":"string","maxLength":4096},"sample1":{"type":"string","maxLength":4096},"sample2":{"type":"string","maxLength":4096},"optinKeywords":{"type":"string","maxLength":512},"optoutKeywords":{"type":"string","maxLength":512},"helpKeywords":{"type":"string","maxLength":512},"embeddedLink":{"type":"boolean"},"embeddedPhone":{"type":"boolean"},"ageGated":{"type":"boolean"},"directLending":{"type":"boolean"},"numberPool":{"type":"boolean"},"subscriberOptin":{"type":"boolean"},"subscriberOptout":{"type":"boolean"},"subscriberHelp":{"type":"boolean"},"termsAndConditions":{"type":"boolean"},"privacyPolicyLink":{"type":"string","maxLength":2048},"termsAndConditionsLink":{"type":"string","maxLength":2048},"mock":{"type":"boolean"}},"additionalProperties":false,"required":["brandId","usecase","description"]},"SmsCampaignResponseDto":{"type":"object","properties":{"campaign":{"$ref":"#/components/schemas/SmsCampaignDto"}},"additionalProperties":false,"required":["campaign"]},"SmsSenderIdDto":{"type":"object","properties":{"id":{"type":"string","example":"1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9"},"alphanumericSenderId":{"type":"string","example":"ZUMPO"},"messagingProfileId":{"type":"string","example":"zumpo-telnyx-sandbox-profile"},"organizationId":{"type":"string","nullable":true},"usLongCodeFallback":{"type":"string","nullable":true,"example":"+15551234567"}},"additionalProperties":false,"required":["id","alphanumericSenderId","messagingProfileId","organizationId","usLongCodeFallback"]},"SmsSenderIdPageMetaDto":{"type":"object","properties":{"totalPages":{"type":"number","minimum":0,"example":1},"totalResults":{"type":"number","minimum":0,"example":1},"pageNumber":{"type":"number","minimum":1,"example":1},"pageSize":{"type":"number","minimum":1,"example":25}},"additionalProperties":false,"required":["totalPages","totalResults","pageNumber","pageSize"]},"SmsSenderIdListDto":{"type":"object","properties":{"senderIds":{"type":"array","items":{"$ref":"#/components/schemas/SmsSenderIdDto"}},"meta":{"$ref":"#/components/schemas/SmsSenderIdPageMetaDto"}},"additionalProperties":false,"required":["senderIds","meta"]},"CreateSmsSenderIdDto":{"type":"object","properties":{"senderId":{"type":"string","minLength":3,"maxLength":11,"example":"ZUMPO"},"messagingProfileId":{"type":"string","minLength":1,"maxLength":128,"example":"zumpo-telnyx-sandbox-profile"},"usLongCodeFallback":{"type":"string","pattern":"^\\+[1-9][0-9]{1,14}$"}},"additionalProperties":false,"required":["senderId","messagingProfileId"]},"SmsSenderIdResponseDto":{"type":"object","properties":{"senderId":{"$ref":"#/components/schemas/SmsSenderIdDto"}},"additionalProperties":false,"required":["senderId"]},"AiProviderCredentialDto":{"type":"object","properties":{"provider":{"type":"string","enum":["anthropic","openai","google","mistral","groq","openrouter"],"example":"anthropic","description":"The provider this row describes."},"configured":{"type":"boolean","example":true,"description":"Whether a key is stored for this provider. The list endpoint returns every supported provider, configured or not, so a client never has to learn the supported set from a second endpoint."},"last4":{"type":"string","nullable":true,"example":"a1b2","description":"The last four characters of the stored key, and the ONLY fragment of it that ever leaves the server. Null when no key is stored."},"createdAt":{"type":"string","format":"date-time","nullable":true,"description":"When a key was first stored for this provider; null when none is."},"updatedAt":{"type":"string","format":"date-time","nullable":true,"description":"When the stored key was last replaced; null when none is stored."}},"required":["provider","configured","last4","createdAt","updatedAt"]},"AiProviderCredentialListDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AiProviderCredentialDto"}}},"required":["data"]},"PutAiProviderCredentialDto":{"type":"object","properties":{"apiKey":{"type":"string","example":"REDACTED-EXAMPLE-KEY-VALUE","minLength":16,"maxLength":1024,"description":"The provider API key. It is sealed with AES-256-GCM before it is stored and is never returned again in any form; only `last4` is readable afterwards. NO PREFIX VALIDATION IS PERFORMED - zumpo does not track provider prefix schemes, and enforcing one would risk rejecting a key that is valid. The accepted form is provider independent: 16-1024 characters, visible ASCII only, no whitespace anywhere. Leading and trailing whitespace is NOT trimmed - it is rejected, because whitespace inside a secret is meaningful and silently storing something other than what was sent would only surface as a provider-side authentication failure later."}},"required":["apiKey"]},"AiProviderCredentialDeleteResponseDto":{"type":"object","properties":{"message":{"type":"string","example":"AI provider key deleted successfully"}},"required":["message"]},"NotificationSettingsDto":{"type":"object","properties":{"postFailures":{"type":"boolean","example":true,"description":"Email me when a scheduled post fails to publish, on the post as a whole or on one of its platforms."},"accountDisconnects":{"type":"boolean","example":false,"description":"Email me when a connected account is disconnected and stops publishing."},"accountHealthChanges":{"type":"boolean","example":false,"description":"Email me when a connected account changes health, for example when its token needs to be renewed."},"updatedAt":{"type":"string","format":"date-time","nullable":true,"description":"When these preferences were last changed. Null when they have never been changed and every category is still at its default of false."}},"required":["postFailures","accountDisconnects","accountHealthChanges","updatedAt"]},"UpdateNotificationSettingsDto":{"type":"object","properties":{"postFailures":{"type":"boolean","example":true},"accountDisconnects":{"type":"boolean","example":false},"accountHealthChanges":{"type":"boolean","example":false}},"required":["postFailures","accountDisconnects","accountHealthChanges"]},"SsoConnectionDto":{"type":"object","properties":{"configured":{"type":"boolean","description":"Whether this team has a single sign-on connection at all. When false every other field except redirectUri is null or false."},"issuer":{"type":"string","nullable":true,"example":"https://login.example.com","description":"The OpenID Connect issuer identifier. Discovery is performed at <issuer>/.well-known/openid-configuration."},"clientId":{"type":"string","nullable":true,"example":"zumpo-panel"},"clientSecretConfigured":{"type":"boolean","description":"True when a client secret is stored. The secret itself is never returned, and no partial value (such as the last four characters) is exposed either."},"emailDomain":{"type":"string","nullable":true,"example":"example.com","description":"Email domain routed to this identity provider. A domain can be claimed by at most one team across the whole platform."},"enabled":{"type":"boolean","description":"Single sign-on is only offered at login while this is true. Password login is never disabled by this setting: SSO is an additional route, not a replacement, and this release has no way to require it."},"redirectUri":{"type":"string","nullable":true,"example":"https://api.example.com/v1/auth/sso/callback","description":"The redirect URI that must be registered with the identity provider. It is sent again during the token exchange and compared byte for byte, so it has to match exactly."}},"required":["configured","issuer","clientId","clientSecretConfigured","emailDomain","enabled","redirectUri"]},"PutSsoConnectionDto":{"type":"object","properties":{"issuer":{"type":"string","example":"https://login.example.com","description":"Absolute https URL, without credentials, query string or fragment. A trailing slash is removed."},"clientId":{"type":"string","example":"zumpo-panel"},"clientSecret":{"type":"string","example":"a-secret-from-your-identity-provider","description":"Stored encrypted and never returned by any endpoint."},"emailDomain":{"type":"string","example":"example.com","description":"Lower-cased on write. Rejected with 409 when another team already claims it."},"enabled":{"type":"boolean","description":"Whether the login flow accepts this connection."}},"required":["issuer","clientId","clientSecret","emailDomain","enabled"]},"SsoDeleteResponseDto":{"type":"object","properties":{"deleted":{"type":"boolean","description":"False when the team had no connection to begin with."}},"required":["deleted"]},"SsoLoginStartDto":{"type":"object","properties":{"email":{"type":"string","example":"ada@example.com","description":"The address whose domain selects the identity provider. No user lookup is performed: the response is identical whether or not an account exists."},"redirectTo":{"type":"string","example":"/settings","description":"Panel-relative path to land on after the login completes. Must start with a single slash; absolute URLs are rejected. Defaults to /."}},"required":["email"]},"SsoLoginStartResponseDto":{"type":"object","properties":{"authorizationUrl":{"type":"string","example":"https://login.example.com/authorize?response_type=code&client_id=...&state=...","description":"Send the browser here to continue at the identity provider."}},"required":["authorizationUrl"]},"RequestTeamDeactivationResponseDto":{"type":"object","properties":{"expiresAt":{"type":"string","description":"When the confirmation code stops working. The code itself is never returned by the API; it is delivered only to the requesting user by email.","format":"date-time","example":"2026-09-03T12:00:00.000Z"},"delivery":{"type":"string","description":"Whether the confirmation code was actually sent. \"not_configured\" means no email delivery is set up for this deployment, so no code can arrive.","enum":["sent","not_configured"]}},"required":["expiresAt","delivery"]},"DeactivateTeamDto":{"type":"object","properties":{"code":{"type":"string","description":"The 6-digit confirmation code emailed to the user who requested the deactivation. Valid for one hour and usable once.","example":"014823","pattern":"^[0-9]{6}$","minLength":6,"maxLength":6},"teamName":{"type":"string","description":"The exact name of the team, typed by the user. Case-sensitive; this is the second gate against deactivating the wrong team.","example":"Acme Corp"}},"required":["code","teamName"]}}},"security":[{"bearer":[]}]}