{"openapi":"3.1.0","info":{"title":"PubNio API","version":"2026-12-02","description":"Manage workspaces, API keys, connected social accounts, and posts. Use a WorkOS AuthKit access token or a workspace API key. The first-party web app also uses its browser session.\n\n1. **Choose a workspace.** Call `GET /api/v1/workspaces` and use the returned workspace ID as `workspaceId` on post and integration requests. To switch workspaces, pass the other ID on your next request.\n\n2. **List connected social accounts.** Call `GET /api/v1/integrations?workspaceId=<id>` to see the Facebook Pages, Instagram professional accounts, LinkedIn members, Pinterest boards, TikTok accounts, Threads accounts, X accounts, YouTube channels, and Google Business Profile locations connected to that workspace.\n\n3. **Connect a social account with OAuth.** Call `POST /api/v1/integrations/{provider}/connect?workspaceId=<id>` with `facebook`, `instagram`, `linkedin`, `pinterest`, `tiktok`, `threads`, `x`, `youtube`, `google_business`, or `bluesky`. Open the returned URL and check the attempt with `GET /api/v1/integrations/attempts/{attemptId}?workspaceId=<id>`.\n\n4. **Submit and track delivery in one call.** POST to `/api/v1/posts` with `text` plus `platforms` (for example `[\"x\"]`) or `accounts`. Send `targets` only when you need exact per-destination text, media, or schedule. The 202 response returns a `postId`, the resolved `idempotencyKey`, and one status per destination. Read `/api/v1/posts/{postId}` or call the SDK `posts.wait` for the confirmed outcome. Read `/api/v1/capabilities` before the first call for placements, media rules, scopes, and limits.\n\n5. **Pin the API version.** Send `PubNio-Version: 2026-12-02`, or omit it to use the current version. Every response carries the version it served. An unsupported version returns `code: \"unsupported_api_version\"` with `supportedVersions` and `nextAction`."},"paths":{"/api/v1/me":{"get":{"tags":["profile"],"operationId":"profile.get","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"email":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email","displayName"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Get your profile"},"patch":{"tags":["profile"],"operationId":"profile.update","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"email":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email","displayName"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Update or clear your display name","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["displayName"],"additionalProperties":false}}},"required":true}},"delete":{"tags":["profile"],"operationId":"profile.deactivate","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deactivated":{"type":"boolean","enum":[true]}},"required":["deactivated"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Archive any active workspaces you own before deactivating your profile.","summary":"Deactivate your profile"}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"operationId":"workspaces.list","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."},"role":{"type":"string","enum":["owner","member"]}},"required":["id","name","defaultTimezone","role"],"additionalProperties":false}}},"required":["workspaces"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"List active workspaces you belong to. Use a returned ID to choose which workspace a request acts on.","summary":"List workspaces"},"post":{"tags":["workspaces"],"operationId":"workspaces.create","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."},"role":{"type":"string","enum":["owner","member"]}},"required":["id","name","defaultTimezone","role"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Invalid time zone","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InvalidTimezoneEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"An omitted defaultTimezone starts at UTC. New queues use the workspace default when they do not set their own time zone.","summary":"Create a workspace","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"Default IANA time zone for new queues. Defaults to UTC; existing queues keep their own time zone."}},"required":["name"],"additionalProperties":false}}},"required":true}}},"/api/v1/workspaces/{workspaceId}":{"get":{"tags":["workspaces"],"operationId":"workspaces.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."},"role":{"type":"string","enum":["owner","member"]}},"required":["id","name","defaultTimezone","role"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Get a workspace"},"patch":{"tags":["workspaces"],"operationId":"workspaces.update","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."},"role":{"type":"string","enum":["owner","member"]}},"required":["id","name","defaultTimezone","role"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Invalid time zone","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InvalidTimezoneEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Rename the workspace, change its default IANA time zone, or both. Changing the default does not move existing queues.","summary":"Update a workspace you own","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["workspaces"],"operationId":"workspaces.archive","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean","enum":[true]}},"required":["archived"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Archive a workspace you own"}},"/api/v1/workspaces/{workspaceId}/api-keys":{"post":{"tags":["apiKeys"],"operationId":"apiKeys.create","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":"string","description":"Copy this secret now. This is the only response that returns it."}},"required":["key","secret"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Create a workspace API key","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["read","publish","engage","ads_read","ads_manage"]},"minItems":1,"maxItems":5},"expiresAt":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":true}},"get":{"tags":["apiKeys"],"operationId":"apiKeys.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ApiKeyList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List workspace API keys"}},"/api/v1/workspaces/{workspaceId}/api-keys/{keyId}":{"get":{"tags":["apiKeys"],"operationId":"apiKeys.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"keyId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read API key metadata"},"patch":{"tags":["apiKeys"],"operationId":"apiKeys.update","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"keyId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Rename an API key or change its access","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["read","publish","engage","ads_read","ads_manage"]},"minItems":1,"maxItems":5}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["apiKeys"],"operationId":"apiKeys.revoke","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"keyId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean","enum":[true]}},"required":["revoked"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Revoke a workspace API key"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints":{"post":{"tags":["webhooks"],"operationId":"webhooks.create","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed"]},"minItems":1,"maxItems":19},"enabled":{"type":"boolean"},"profileId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"apiVersion":{"anyOf":[{"type":"string","enum":["2026-12-02"]}]},"destinationOrigin":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"required":["id","workspaceId","name","eventTypes","enabled","profileId","apiVersion","destinationOrigin","createdAt","updatedAt","deletedAt","url"],"additionalProperties":false},"secret":{"type":"string"}},"required":["endpoint","secret"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Register a webhook endpoint","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","maxLength":2048},"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed"]},"minItems":1,"maxItems":19},"enabled":{"type":"boolean"},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["name","url","eventTypes"],"additionalProperties":false}}},"required":true}},"get":{"tags":["webhooks"],"operationId":"webhooks.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WebhookEndpointList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List webhook endpoints"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}":{"get":{"tags":["webhooks"],"operationId":"webhooks.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed"]},"minItems":1,"maxItems":19},"enabled":{"type":"boolean"},"profileId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"apiVersion":{"anyOf":[{"type":"string","enum":["2026-12-02"]}]},"destinationOrigin":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"required":["id","workspaceId","name","eventTypes","enabled","profileId","apiVersion","destinationOrigin","createdAt","updatedAt","deletedAt","url"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Inspect a webhook endpoint"},"patch":{"tags":["webhooks"],"operationId":"webhooks.update","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WebhookEndpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Edit or pause a webhook endpoint","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed"]},"minItems":1,"maxItems":19},"enabled":{"type":"boolean"},"profileId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["webhooks"],"operationId":"webhooks.delete","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Permanently disable a webhook endpoint"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/test":{"post":{"tags":["webhooks"],"operationId":"webhooks.test","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deliveryId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["deliveryId"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited | Webhook test rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/WebhookTestRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Enqueue a webhook test event"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries":{"get":{"tags":["webhooks"],"operationId":"webhooks.listDeliveries","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WebhookDeliveryList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List webhook deliveries"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries/{deliveryId}":{"get":{"tags":["webhooks"],"operationId":"webhooks.getDelivery","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"deliveryId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Inspect a webhook delivery"}},"/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/replay":{"post":{"tags":["webhooks"],"operationId":"webhooks.replayDelivery","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"endpointId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"deliveryId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Webhook delivery not replayable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/WebhookDeliveryNotReplayableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Resets a delivered, failed, or cancelled delivery to pending with zero attempts and queues it for the dispatcher. A pending or sending delivery returns 409.","summary":"Replay a settled webhook delivery"}},"/api/v1/webhooks/event-types":{"get":{"tags":["webhooks"],"operationId":"webhooks.eventTypes","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WebhookEventTypes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEventTypes"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns every workspace event type a webhook endpoint can subscribe to.","summary":"List supported webhook event types"}},"/api/v1/integrations":{"get":{"tags":["integrations"],"operationId":"integrations.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"ready","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"includeAdAccounts","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/ProviderAccount"}}},"required":["accounts"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"List publishing destinations in the specified workspace with their availability and publishing selection. Includes Facebook Pages, Instagram professional accounts, LinkedIn members and organizations, Pinterest boards, TikTok accounts, Threads accounts, X accounts, YouTube channels, and Google Business Profile locations. Set includeAdAccounts=true to also include connected ad accounts and their ads readiness; the default remains publishing accounts only.","summary":"List connected accounts"},"post":{"tags":["integrations"],"operationId":"integrations.setEnabled","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ProviderAccount","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderAccount"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Enable or disable a publishing destination","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"enabled":{"type":"boolean"}},"required":["id","enabled"],"additionalProperties":false}}},"required":true}}},"/api/v1/integrations/accounts/{accountId}/profile":{"post":{"tags":["integrations"],"operationId":"integrations.moveAccount","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ProviderAccount","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderAccount"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. The account ID, credentials, history, and selected state do not change.","summary":"Move an account to another profile","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["profileId"],"additionalProperties":false}}},"required":true}}},"/api/v1/integrations/{provider}/connect":{"post":{"tags":["integrations"],"operationId":"integrations.prepareConnection","parameters":[{"name":"provider","in":"path","schema":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"loginMethod","in":"query","schema":{"type":"string","enum":["instagram_login","facebook_login","unified_login"]},"required":false},{"name":"capabilities","in":"query","schema":{"type":"array","items":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"maxItems":7},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"url":{"type":"string"}},"required":["attemptId","url"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Choose facebook, instagram, linkedin, pinterest, tiktok, threads, x, youtube, google_business, or bluesky. Open the returned URL as the same PubNio user, then check the returned attempt ID for the result. Bluesky opens a handle and app-password form; use POST /api/v1/integrations/bluesky/session for a one-call connection.","summary":"Start a social account connection"}},"/api/v1/integrations/bluesky/session":{"post":{"tags":["integrations"],"operationId":"integrations.blueskySession","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"url":{"type":"string"}},"required":["attemptId","url"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Exchanges a handle and app password for an encrypted AT Protocol session, connects the account, and returns a workspace URL. Pass accountId to reconnect that existing Bluesky account; a different DID is rejected.","summary":"Connect Bluesky with an app password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskySessionConnect"}}},"required":true}}},"/api/v1/integrations/attempts/{attemptId}":{"get":{"tags":["integrations"],"operationId":"integrations.connectionStatus","parameters":[{"name":"attemptId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ConnectionStatus","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatus"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Read the outcome of an OAuth attempt you started in this workspace. A connected attempt returns the discovered account IDs.","summary":"Check social OAuth completion"}},"/api/v1/integrations/accounts/{accountId}":{"get":{"tags":["integrations"],"operationId":"integrations.getAccount","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"includeAdAccounts","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ProviderAccount","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderAccount"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Report readiness from the last recorded grant, destination selection, and token expiry. Publishing readiness is returned for social accounts; pass includeAdAccounts=true to read an ad account with its ads_read scope readiness. The default excludes ad accounts.","summary":"Check account readiness"}},"/api/v1/integrations/accounts/{accountId}/reconnect":{"post":{"tags":["integrations"],"operationId":"integrations.reconnect","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"loginMethod","in":"query","schema":{"type":"string","enum":["instagram_login","facebook_login","unified_login"]},"required":false},{"name":"capabilities","in":"query","schema":{"type":"array","items":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"maxItems":7},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"url":{"type":"string"}},"required":["attemptId","url"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Start OAuth for an existing account. Bluesky opens the app-password form; use POST /api/v1/integrations/bluesky/session with accountId for a one-call reconnect. Successful reconnection preserves its PubNio account ID.","summary":"Reconnect a social account"}},"/api/v1/integrations/accounts/{accountId}/instagram/publishing-limit":{"get":{"tags":["integrations"],"operationId":"integrations.instagramPublishingLimit","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InstagramPublishingLimit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramPublishingLimit"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read the account’s current Instagram publishing quota"}},"/api/v1/integrations/accounts/{accountId}/instagram/audio":{"get":{"tags":["integrations"],"operationId":"integrations.searchInstagramAudio","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"audioType","in":"query","schema":{"type":"string","enum":["music","original_sound"]},"required":true},{"name":"q","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"audio":{"type":"array","items":{"$ref":"#/components/schemas/InstagramAudio"}}},"required":["audio"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Search the Instagram audio catalog or list trending tracks"}},"/api/v1/integrations/accounts/{accountId}/instagram/audio/{audioId}":{"get":{"tags":["integrations"],"operationId":"integrations.getInstagramAudio","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"audioId","in":"path","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InstagramAudio","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstagramAudio"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read current Instagram audio metadata and refresh its preview URL"}},"/api/v1/integrations/connections/{connectionId}":{"delete":{"tags":["integrations"],"operationId":"integrations.disconnect","parameters":[{"name":"connectionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"disconnected":{"type":"boolean","enum":[true]}},"required":["disconnected"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Remove PubNio's credentials and disable all publishing destinations using this grant while preserving account IDs and history.","summary":"Disconnect a social grant you own"}},"/api/v1/profiles":{"get":{"tags":["profiles"],"operationId":"profiles.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"includeArchived","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ProfileList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List workspace profiles"},"post":{"tags":["profiles"],"operationId":"profiles.create","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"WorkspaceProfile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceProfile"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Create a workspace profile","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"externalId":{"type":"string","minLength":1,"maxLength":128}},"required":["name"],"additionalProperties":false}}},"required":true}}},"/api/v1/profiles/{profileId}":{"get":{"tags":["profiles"],"operationId":"profiles.get","parameters":[{"name":"profileId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceProfile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceProfile"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read a workspace profile"},"patch":{"tags":["profiles"],"operationId":"profiles.update","parameters":[{"name":"profileId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceProfile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceProfile"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Rename a profile or change its external ID","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["profiles"],"operationId":"profiles.archive","parameters":[{"name":"profileId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean","enum":[true]}},"required":["archived"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"The default profile cannot be archived. Move every account to another profile first.","summary":"Archive a workspace profile"}},"/api/v1/capabilities":{"get":{"tags":["capabilities"],"operationId":"capabilities.get","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PublishCapabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishCapabilities"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Derived from the code-owned provider catalog. Returns providers, account kinds, per-placement media rules, required scopes, and documented limits. Read this once instead of learning a rule from a failed post.","summary":"Read the publish capability catalog"}},"/api/v1/integrations/capabilities":{"get":{"tags":["capabilities"],"operationId":"capabilities.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"capability","in":"query","schema":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/AccountCapabilities"}}},"required":["capabilities"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Capabilities are computed from the provider support matrix and the recorded grant. They do not change publishing readiness.","summary":"List computed capabilities for connected accounts"}},"/api/v1/capabilities/catalog":{"get":{"tags":["capabilities"],"operationId":"capabilities.catalog","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"CapabilityCatalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilityCatalog"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Contains no workspace or grant state. Approvals and limits are provider-wide facts.","summary":"Read the static provider capability catalog"}},"/api/v1/limits":{"get":{"tags":["limits"],"operationId":"limits.get","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ApiLimits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiLimits"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns the documented request, publish, media, wait, and idempotency budgets. Rate headers on API responses report the same static policy until per-credential metering lands.","summary":"Read documented API limits"}},"/api/v1/media":{"get":{"tags":["media"],"operationId":"media.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"type","in":"query","schema":{"type":"string","enum":["image","video","document"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"MediaList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List ready workspace media"},"post":{"tags":["media"],"operationId":"media.upload","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"mimeType","in":"query","schema":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp","video/mp4","video/quicktime","video/webm","application/pdf"]},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"413":{"description":"Content Too Large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UploadTooLargeEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Send the raw file as application/octet-stream with its MIME type in the query. Limit 25 MiB.","summary":"Upload a workspace image, video, or document","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}},"required":true}}},"/api/v1/media/{mediaId}":{"delete":{"tags":["media"],"operationId":"media.delete","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Requires a workspace owner. Media referenced by a current post or any delivery attempt is retained.","summary":"Delete unused workspace media"},"get":{"tags":["media"],"operationId":"media.get","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Get workspace media metadata"}},"/api/v1/media/inline":{"post":{"tags":["media"],"operationId":"media.uploadInline","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":false},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Media upload conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/MediaUploadConflictEncoded"}]}}}},"413":{"description":"Content Too Large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UploadTooLargeEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"JSON upload for small files (maximum 8 MiB after base64 decoding). Uses the same workspace storage and returns the shared MediaIntake result.","summary":"Upload a small base64-encoded image, video, or document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaInlineUpload"}}},"required":true}}},"/api/v1/media/import":{"post":{"tags":["media"],"operationId":"media.import","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Import a public or signed HTTPS media URL","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaImport"}}},"required":true}}},"/api/v1/media/{mediaId}/status":{"get":{"tags":["media"],"operationId":"media.status","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Get workspace media intake status"}},"/api/v1/media/uploads":{"post":{"tags":["media"],"operationId":"media.startUpload","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"MediaUploadSession","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadSession"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"413":{"description":"Content Too Large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UploadTooLargeEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Start a resumable media upload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadStart"}}},"required":true}}},"/api/v1/media/uploads/{mediaId}/parts/{partNumber}":{"put":{"tags":["media"],"operationId":"media.uploadPart","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"partNumber","in":"path","schema":{"type":"string"},"required":true},{"name":"content-length","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"MediaPartReceipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaPartReceipt"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Media upload conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/MediaUploadConflictEncoded"}]}}}},"413":{"description":"Content Too Large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/UploadTooLargeEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Upload the next media part using its exact Content-Length","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}},"required":true}}},"/api/v1/media/uploads/{mediaId}/complete":{"post":{"tags":["media"],"operationId":"media.completeUpload","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"MediaIntake","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaIntake"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Media upload conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/MediaUploadConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Complete a resumable media upload"}},"/api/v1/media/{mediaId}/content":{"get":{"tags":["media"],"operationId":"media.download","parameters":[{"name":"mediaId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Download private workspace media"}},"/api/v1/queues":{"get":{"tags":["queues"],"operationId":"queues.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List schedule queues"},"post":{"tags":["queues"],"operationId":"queues.create","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"Queue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Creates the only active queue for the account. Repeating an identical request returns that queue.","summary":"Create an account schedule queue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQueue"}}},"required":true}}},"/api/v1/queues/{queueId}":{"get":{"tags":["queues"],"operationId":"queues.get","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read a schedule queue"},"patch":{"tags":["queues"],"operationId":"queues.update","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Send expectedVersion from the last queue read. Pausing blocks new assignments; scheduled attempts still publish.","summary":"Update, pause, or resume a queue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQueue"}}},"required":true}},"delete":{"tags":["queues"],"operationId":"queues.archive","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"expectedVersion","in":"query","schema":{"type":"string"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueArchived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueArchived"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Archiving keeps existing assignments scheduled and blocks new assignments.","summary":"Archive a schedule queue"}},"/api/v1/queues/{queueId}/slots":{"put":{"tags":["queues"],"operationId":"queues.slots.replace","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Queue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Round-trip slot IDs to keep them. An omitted ID creates a slot. A removed slot leaves historical assignments with no slot ID.","summary":"Replace every weekly queue slot","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceQueueSlots"}}},"required":true}}},"/api/v1/queues/{queueId}/next-slot":{"get":{"tags":["queues"],"operationId":"queues.slots.next","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"after","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueNextSlot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueNextSlot"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read the next free queue slot"}},"/api/v1/queues/{queueId}/slots/preview":{"get":{"tags":["queues"],"operationId":"queues.slots.preview","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"count","in":"query","schema":{"type":"string"},"required":true},{"name":"after","in":"query","schema":{"type":"string"},"required":false},{"name":"includeOccupied","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueSlotPreview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueSlotPreview"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns the next occurrences in ascending order. includeOccupied also returns assigned or unavailable occurrences marked unavailable.","summary":"Preview upcoming queue slots"}},"/api/v1/queues/{queueId}/skips":{"get":{"tags":["queues"],"operationId":"queues.skips.list","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueSkipList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueSkipList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns skipped slot/date pairs ordered by occurrence date, then ID. A skipped occurrence is never assigned.","summary":"List skipped queue occurrences"},"post":{"tags":["queues"],"operationId":"queues.skips.create","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"QueueSkip","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueSkip"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"The slot must belong to the queue and the date must not be in the past in the queue time zone. Repeating the same skip returns the existing row.","summary":"Skip one queue occurrence","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipQueueSlot"}}},"required":true}}},"/api/v1/queues/{queueId}/skips/{skipId}":{"delete":{"tags":["queues"],"operationId":"queues.skips.delete","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"skipId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueDeleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueDeleted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Restore a skipped queue occurrence"}},"/api/v1/queues/{queueId}/blackouts":{"get":{"tags":["queues"],"operationId":"queues.blackouts.list","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueBlackoutList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueBlackoutList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns blackout ranges ordered by start date, then ID. Dates inside a blackout are never assigned.","summary":"List queue blackout date ranges"},"post":{"tags":["queues"],"operationId":"queues.blackouts.create","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"QueueBlackout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueBlackout"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Use YYYY-MM-DD dates in the queue time zone with startsOn before or equal to endsOn and at most 90 days. Overlaps with other blackouts are allowed.","summary":"Black out a queue date range","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQueueBlackout"}}},"required":true}}},"/api/v1/queues/{queueId}/blackouts/{blackoutId}":{"delete":{"tags":["queues"],"operationId":"queues.blackouts.delete","parameters":[{"name":"queueId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"blackoutId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"QueueDeleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueDeleted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Remove a queue blackout"}},"/api/v1/schedule":{"get":{"tags":["schedule"],"operationId":"schedule.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"from","in":"query","schema":{"type":"string"},"required":true},{"name":"to","in":"query","schema":{"type":"string"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"queueId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"ScheduleList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns current queued attempts in ascending scheduled order. The inclusive range must be at most 90 days; a wider range returns ScheduleRangeTooWide. Any workspace actor can read it.","summary":"Read queued attempts in a time range"}},"/api/v1/posts/{postId}/targets/{targetId}/schedule":{"post":{"tags":["schedule"],"operationId":"schedule.change","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"scheduledAt":{"type":"string"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"assignmentId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"},"localDate":{"type":"string"},"localTime":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]}},"required":["targetId","attemptId","accountId","status"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Delivery attempt changed | Delivery schedule cannot change","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AttemptChangedEncoded"},{"$ref":"#/components/schemas/DeliveryScheduleLockedEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Send the current attempt ID from post status. A queueId assigns the next free occurrence or the pinned slot. scheduledAt detaches the target from its queue.","summary":"Reschedule to a queue or time, cancel, or publish now","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleChange"}}},"required":true}}},"/api/v1/analytics/posts/{postId}":{"get":{"tags":["analytics"],"operationId":"analytics.posts.get","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"timezone","in":"query","schema":{"type":"string"},"required":false},{"name":"granularity","in":"query","schema":{"type":"string","enum":["day","total"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PostAnalytics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnalytics"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns one entry per destination target. A target whose attempt is not published or lacks a provider post ID returns a pending or unavailable state, not 404.","summary":"Read target-scoped post analytics totals"}},"/api/v1/analytics/posts/{postId}/series":{"get":{"tags":["analytics"],"operationId":"analytics.posts.series","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"timezone","in":"query","schema":{"type":"string"},"required":false},{"name":"granularity","in":"query","schema":{"type":"string","enum":["day","total"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PostAnalytics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnalytics"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Daily points use UTC dates. Cumulative metrics set value to the day's increase and total to the cumulative value; a missing date means no data.","summary":"Read daily post analytics series"}},"/api/v1/workspaces/{workspaceId}/analytics/accounts":{"get":{"tags":["analytics"],"operationId":"analytics.accounts.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":false},{"name":"platform","in":"query","schema":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"timezone","in":"query","schema":{"type":"string"},"required":false},{"name":"granularity","in":"query","schema":{"type":"string","enum":["day","total"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AccountAnalyticsList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountAnalyticsList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Account analytics collection follows post analytics. Summaries report stored observations or a pending state.","summary":"List account analytics summaries"}},"/api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId}":{"get":{"tags":["analytics"],"operationId":"analytics.accounts.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"timezone","in":"query","schema":{"type":"string"},"required":false},{"name":"granularity","in":"query","schema":{"type":"string","enum":["day","total"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"}},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AccountAnalytics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountAnalytics"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns totals or a daily series for one provider account in the workspace.","summary":"Read one account's analytics"}},"/api/v1/workspaces/{workspaceId}/analytics/capabilities":{"get":{"tags":["analytics"],"operationId":"analytics.capabilities.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AnalyticsCapabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsCapabilities"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Lists every canonical metric and supported provider without a provider call, plus each account's scope and access state.","summary":"Read the analytics metric catalog and provider support"}},"/api/v1/analytics/refreshes":{"post":{"tags":["analytics"],"operationId":"analytics.refreshes.create","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"AnalyticsRefresh","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsRefresh"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Marks an existing published post cursor due now and returns 202. Repeating the request coalesces on the same refresh ID. No provider call happens in the request.","summary":"Queue a priority analytics refresh","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"metrics":{"type":"array","items":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"maxItems":30}},"required":["workspaceId"],"additionalProperties":false}}},"required":true}}},"/api/v1/analytics/refreshes/{refreshId}":{"get":{"tags":["analytics"],"operationId":"analytics.refreshes.get","parameters":[{"name":"refreshId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AnalyticsRefresh","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsRefresh"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Analytics range invalid | Analytics metric unsupported | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/AnalyticsRangeInvalidEncoded"},{"$ref":"#/components/schemas/AnalyticsMetricUnsupportedEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Analytics refresh conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AnalyticsRefreshConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read an analytics refresh status"}},"/api/v1/inbox/conversations":{"get":{"tags":["inbox"],"operationId":"inbox.conversations.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"provider","in":"query","schema":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"required":false},{"name":"status","in":"query","schema":{"type":"string","enum":["active","archived"]},"required":false},{"name":"folder","in":"query","schema":{"type":"string","enum":["inbox","message_request","spam","other"]},"required":false},{"name":"unread","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"search","in":"query","schema":{"type":"string","maxLength":200},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxConversationList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Filter by account, provider, local status, folder, unread state, or search text. Cursors are opaque and stable.","summary":"List DM conversations newest first"}},"/api/v1/inbox/conversations/{conversationId}":{"get":{"tags":["inbox"],"operationId":"inbox.conversations.get","parameters":[{"name":"conversationId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxConversation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read one conversation and reply window"},"patch":{"tags":["inbox"],"operationId":"inbox.conversations.update","parameters":[{"name":"conversationId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxConversation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Local, workspace-shared, and idempotent. The provider is not called.","summary":"Mark read or archive a conversation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","archived"]},"read":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/api/v1/inbox/conversations/{conversationId}/messages":{"get":{"tags":["inbox"],"operationId":"inbox.messages.list","parameters":[{"name":"conversationId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"order","in":"query","schema":{"type":"string","enum":["oldest","newest"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxMessageList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMessageList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Page messages oldest or newest first"},"post":{"tags":["inbox"],"operationId":"inbox.messages.send","parameters":[{"name":"conversationId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"InboxMessage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMessage"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"One provider call per accepted action. A repeated key returns the stored message; a changed body conflicts. A closed window returns 409 with zero provider calls.","summary":"Send a text reply inside the provider window","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInboxMessage"}}},"required":true}}},"/api/v1/inbox/comments":{"get":{"tags":["inbox"],"operationId":"inbox.comments.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"postId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"providerPostId","in":"query","schema":{"type":"string"},"required":false},{"name":"unread","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxCommentThreadList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentThreadList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Filter by account, PubNio post, provider post ID, or unread state.","summary":"List comment threads with counts"}},"/api/v1/inbox/comments/{threadId}":{"get":{"tags":["inbox"],"operationId":"inbox.comments.get","parameters":[{"name":"threadId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxCommentThreadDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCommentThreadDetail"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read a comment thread and its comments"}},"/api/v1/inbox/comments/{commentId}/replies":{"post":{"tags":["inbox"],"operationId":"inbox.comments.reply","parameters":[{"name":"commentId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"InboxComment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxComment"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Reply to a comment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyInboxComment"}}},"required":true}}},"/api/v1/inbox/comments/{commentId}":{"patch":{"tags":["inbox"],"operationId":"inbox.comments.moderate","parameters":[{"name":"commentId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxComment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxComment"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Idempotent. Send hidden or liked only; omitted state is preserved.","summary":"Hide, unhide, like, or unlike a comment","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"hidden":{"type":"boolean"},"liked":{"type":"boolean"}},"additionalProperties":false}}},"required":true}},"delete":{"tags":["inbox"],"operationId":"inbox.comments.delete","parameters":[{"name":"commentId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxDeleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxDeleted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Delete a comment where the provider supports it"}},"/api/v1/inbox/mentions":{"get":{"tags":["inbox"],"operationId":"inbox.mentions.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"provider","in":"query","schema":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxMentionList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMentionList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List mentions of a connected account"}},"/api/v1/inbox/mentions/{mentionId}/reply":{"post":{"tags":["inbox"],"operationId":"inbox.mentions.reply","parameters":[{"name":"mentionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"InboxMentionReply","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxMentionReply"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Reply to a mention where supported","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyInboxComment"}}},"required":true}}},"/api/v1/inbox/unread-count":{"get":{"tags":["inbox"],"operationId":"inbox.unread.count","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxUnreadCount","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxUnreadCount"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Count conversations with at least one unread inbound message"}},"/api/v1/inbox/capabilities":{"get":{"tags":["inbox"],"operationId":"inbox.capabilities.get","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxCapabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCapabilities"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Derived from the provider, account kind, login method, recorded scopes, and Page tasks. The shared AccountCapability state stays authoritative and never changes publishing readiness.","summary":"Read per-account inbox channel capabilities"}},"/api/v1/inbox/sync":{"post":{"tags":["inbox"],"operationId":"inbox.sync.start","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"InboxSyncAccepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSyncAccepted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Moves an inbox cursor due now and returns 202 with a shared sync run ID. No provider call happens during the request.","summary":"Queue a bounded inbox sync","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["workspaceId"],"additionalProperties":false}}},"required":true}}},"/api/v1/inbox/sync/{syncRunId}":{"get":{"tags":["inbox"],"operationId":"inbox.sync.get","parameters":[{"name":"syncRunId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"InboxSyncStatus","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSyncStatus"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read a sync run and current inbox counts"}},"/api/v1/inbox/attachments/{attachmentId}":{"get":{"tags":["inbox"],"operationId":"inbox.attachments.get","parameters":[{"name":"attachmentId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/InboxReplyWindowClosedEncoded"},{"$ref":"#/components/schemas/InboxTargetChangedEncoded"},{"$ref":"#/components/schemas/InboxSyncInProgressEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/InboxUnsupportedContentEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Requires workspace access. Never exposes a provider URL or token. Cache-Control is always no-store.","summary":"Stream an inbound attachment"}},"/api/v1/comments":{"post":{"tags":["comments"],"operationId":"comments.create","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":false},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"CommentCreated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentCreated"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Comment target invalid | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/CommentTargetInvalidEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Comment outcome unresolved | Idempotency key already used","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/CommentUnresolvedEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Account ambiguous | Provider mismatch | Publishing account not found | Comment rejected","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AccountAmbiguousEncoded"},{"$ref":"#/components/schemas/ProviderMismatchEncoded"},{"$ref":"#/components/schemas/PublishAccountNotFoundEncoded"},{"$ref":"#/components/schemas/CommentRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Send a provider target ID or public permalink. The server derives provider, account, and target kind when unambiguous, checks the comment scope before one provider call, and replays the same idempotency key without a duplicate comment. Facebook and Instagram use Page/media comment endpoints, Threads publishes a reply container, X replies with a tweet, and LinkedIn uses the socialActions comment endpoint.","summary":"Comment on or reply to a provider post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComment"}}},"required":true}}},"/api/v1/posts":{"get":{"tags":["posts"],"operationId":"posts.list","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"isDraft","in":"query","schema":{"type":"string","enum":["true","false"]},"required":false},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Filter to posts targeting this connected account (applies to both drafts and submitted posts; pairs with deliveryStatus on the same target)."},"required":false},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Filter to posts targeting any account in this workspace profile."},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false},{"name":"deliveryStatus","in":"query","schema":{"type":"string","enum":["scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PostList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Includes drafts and submitted posts. Filter with isDraft, deliveryStatus, accountId, or profileId. Rows carry a short text preview; the full content is on GET /api/v1/posts/{postId}.","summary":"List posts and drafts newest first"},"post":{"tags":["posts"],"operationId":"posts.create","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":false},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"Post","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"202":{"description":"PublishAccepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAccepted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Destination already submitted | Idempotency key already used | Post revision changed","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/DestinationAlreadySubmittedEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/PostRevisionConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Account ambiguous | Invalid publish selection | Provider mismatch | Publishing account not found | Schedule required | Placement unsupported | Invalid publication","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AccountAmbiguousEncoded"},{"$ref":"#/components/schemas/InvalidPublishSelectionEncoded"},{"$ref":"#/components/schemas/ProviderMismatchEncoded"},{"$ref":"#/components/schemas/PublishAccountNotFoundEncoded"},{"$ref":"#/components/schemas/ScheduleRequiredEncoded"},{"$ref":"#/components/schemas/UnsupportedPlacementEncoded"},{"$ref":"#/components/schemas/InvalidPublicationEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Send exactly one selector for a direct post: platforms resolves the single ready account per provider (ambiguous providers return 422 with candidates), accounts selects exact account IDs, and targets selects exact destinations with an optional provider and placement. The server derives provider from accountId and defaults placement per provider. publishNow defaults to true when scheduledAt is absent. Set isDraft to true to save a draft with text, media, and optional exact targets without submitting. An omitted Idempotency-Key is generated and returned for direct posts; the same key and body replay for 24 hours and a changed body returns 409.","summary":"Create a post or draft","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePost"}}},"required":true}}},"/api/v1/posts/{postId}":{"get":{"tags":["posts"],"operationId":"posts.get","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Post","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns isDraft, revision, text, media, saved targets, current delivery state, and one delivery per destination with providerRef, url, issue, nextAction, canRetry, and canReconcile.","summary":"Read a post or draft"},"patch":{"tags":["posts"],"operationId":"posts.update","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Post","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Post revision changed","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/PostRevisionConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Omitted fields are preserved. Supplied media and target arrays replace the saved arrays. Send expectedRevision to guard against editing an older draft.","summary":"Edit a draft","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePost"}}},"required":true}},"delete":{"tags":["posts"],"operationId":"posts.delete","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean","enum":[true]}},"required":["archived"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Queued deliveries are cancelled and queue assignments released. The post and its delivery history stay readable to analytics.","summary":"Archive a post or draft"}},"/api/v1/posts/{postId}/validate":{"post":{"tags":["posts"],"operationId":"posts.validate","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PostValidation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostValidation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Dry run for the saved accounts and placements. Returns typed issues for readiness, captions, media, and settings. It never submits.","summary":"Validate a saved draft"}},"/api/v1/posts/{postId}/publish":{"post":{"tags":["posts"],"operationId":"posts.publish","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"PublishAccepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAccepted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Destination already submitted | Idempotency key already used | Post revision changed","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/DestinationAlreadySubmittedEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/PostRevisionConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Account ambiguous | Invalid publish selection | Provider mismatch | Publishing account not found | Schedule required | Placement unsupported | Invalid publication","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AccountAmbiguousEncoded"},{"$ref":"#/components/schemas/InvalidPublishSelectionEncoded"},{"$ref":"#/components/schemas/ProviderMismatchEncoded"},{"$ref":"#/components/schemas/PublishAccountNotFoundEncoded"},{"$ref":"#/components/schemas/ScheduleRequiredEncoded"},{"$ref":"#/components/schemas/UnsupportedPlacementEncoded"},{"$ref":"#/components/schemas/InvalidPublicationEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Publishes the saved revision named by expectedRevision and returns one accepted target per destination. Publish to Facebook Page feed, Reels, or Stories; Instagram feed, carousels, Reels, or Stories; LinkedIn text or single-image posts; Pinterest image, carousel, or video Pins; TikTok public videos or photo posts; Threads text, image, video, carousel, threads, or first comments; X text or threads; and YouTube videos or Shorts. Send one media array of { mediaId } or { url } selections. Schedule each destination independently.","summary":"Publish a saved draft","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991},"scheduledAt":{"type":"string"},"accountIds":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"minItems":1,"maxItems":50,"description":"Select every draft placement for these accounts. Use targets for exact selection instead."},"targets":{"type":"array","items":{"$ref":"#/components/schemas/DestinationSelection"},"minItems":1,"maxItems":50,"description":"Select exact draft destinations and optionally override each schedule. Omit accountIds when using targets."}},"required":["expectedRevision"],"additionalProperties":false}}},"required":true}}},"/api/v1/posts/{postId}/targets/{targetId}/attempts":{"get":{"tags":["posts"],"operationId":"posts.attempts","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"DeliveryHistory","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryHistory"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read a destination's delivery attempt history"}},"/api/v1/posts/{postId}/targets/{targetId}/retry":{"post":{"tags":["posts"],"operationId":"posts.retry","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"scheduledAt":{"type":"string"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"assignmentId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"},"localDate":{"type":"string"},"localTime":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]}},"required":["targetId","attemptId","accountId","status"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Delivery attempt changed | Delivery cannot be retried","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AttemptChangedEncoded"},{"$ref":"#/components/schemas/DeliveryNotRetryableEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Retry the frozen content for one failed destination. Repeating the same expected attempt ID returns the same replacement. Uncertain publications require reconciliation.","summary":"Retry a failed delivery","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expectedAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["expectedAttemptId"],"additionalProperties":false}}},"required":true}}},"/api/v1/posts/{postId}/targets/{targetId}/reconcile":{"post":{"tags":["posts"],"operationId":"posts.reconcile","parameters":[{"name":"postId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"targetId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"status":{"$ref":"#/components/schemas/PostState"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryStatus"}}},"required":["postId","status","targets"],"additionalProperties":false}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Delivery attempt changed | Delivery cannot be reconciled","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AttemptChangedEncoded"},{"$ref":"#/components/schemas/DeliveryNotReconcilableEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Reads the provider's current status for one unresolved delivery. May return unresolved again and never submits another post.","summary":"Recheck a recorded provider receipt","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expectedAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["expectedAttemptId"],"additionalProperties":false}}},"required":true}}},"/api/v1/ads/accounts":{"get":{"tags":["ads"],"operationId":"ads.listAccounts","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"state","in":"query","schema":{"type":"string","enum":["available","selected"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdAccountList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns currency, time zone, account status, business or manager ID, readiness, ads capabilities, and policy state from stored grants. Use state=available or state=selected to narrow the list. No provider call happens during the request.","summary":"List available and selected ad accounts"}},"/api/v1/ads/accounts/connect":{"post":{"tags":["ads"],"operationId":"ads.connectAccount","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdConnectLaunch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdConnectLaunch"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Open the returned URL as the same PubNio user. Check the shared attempt route for the result, then select discovered accounts explicitly.","summary":"Start an ad account OAuth connection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["workspaceId","provider"],"additionalProperties":false}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/select":{"post":{"tags":["ads"],"operationId":"ads.selectAccount","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdAccountSelection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountSelection"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Selection starts campaign and insight sync. Reconnect preserves this PubNio account ID.","summary":"Select a discovered ad account"}},"/api/v1/ads/accounts/{accountId}/disconnect":{"post":{"tags":["ads"],"operationId":"ads.disconnectAccount","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdAccountDisconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountDisconnected"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Stops future sync and keeps normalized campaigns and insights. A shared publishing grant is preserved.","summary":"Stop syncing an ad account"}},"/api/v1/ads/campaigns":{"get":{"tags":["ads"],"operationId":"ads.listWorkspaceCampaigns","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"provider","in":"query","schema":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"required":false},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","paused","activating","active","pending_review","rejected","completed","archived","unknown"]},"required":false},{"name":"managed","in":"query","schema":{"type":"string","enum":["provider","pubnio"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdCampaignList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Provider-native campaigns are included read-only with managed=provider. Filter by account, provider, status, or managed state. Reads return stored rows with syncedAt.","summary":"List campaigns across selected ad accounts"}},"/api/v1/ads/accounts/{accountId}/campaigns":{"get":{"tags":["ads"],"operationId":"ads.listCampaigns","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"provider","in":"query","schema":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"required":false},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","paused","activating","active","pending_review","rejected","completed","archived","unknown"]},"required":false},{"name":"managed","in":"query","schema":{"type":"string","enum":["provider","pubnio"]},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdCampaignList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List one account's campaigns newest first"}},"/api/v1/ads/tree":{"get":{"tags":["ads"],"operationId":"ads.getTree","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"campaignId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdTree","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdTree"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Optionally filter by account or campaign. Returns at most the requested number of campaigns.","summary":"Read a campaign, ad group, ad, and creative tree"}},"/api/v1/ads/ads/{adId}":{"get":{"tags":["ads"],"operationId":"ads.getAd","parameters":[{"name":"adId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"Ad","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ad"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Cross-workspace IDs return 404. The metrics window defaults to the last seven completed account days.","summary":"Read one ad with its creative and metrics"}},"/api/v1/ads/creatives":{"get":{"tags":["ads"],"operationId":"ads.listCreatives","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"adId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdCreativeList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCreativeList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Filter by account or ad. Provider-native creatives carry diagnostic provider IDs and no workspace media unless one was matched.","summary":"List ad creatives"}},"/api/v1/ads/insights":{"get":{"tags":["ads"],"operationId":"ads.listWorkspaceInsights","parameters":[{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"accountId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"campaignId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"adGroupId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"adId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"level","in":"query","schema":{"type":"string","enum":["campaign","ad_group","ad"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"},"maxItems":30},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdInsightList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdInsightList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Stored daily rows with a currency-aware summary and freshness. Dates are account-local provider days. Ranges are capped at 730 days. No provider call happens during the request.","summary":"Read daily insights across selected ad accounts"}},"/api/v1/ads/accounts/{accountId}/insights":{"get":{"tags":["ads"],"operationId":"ads.listInsights","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"campaignId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"adGroupId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"adId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"from","in":"query","schema":{"type":"string"},"required":false},{"name":"to","in":"query","schema":{"type":"string"},"required":false},{"name":"level","in":"query","schema":{"type":"string","enum":["campaign","ad_group","ad"]},"required":false},{"name":"metrics","in":"query","schema":{"type":"array","items":{"type":"string"},"maxItems":30},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:[Ee][+-]?\\d+)?$"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdInsightList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdInsightList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns stored daily rows, a summary in the account currency, and syncedAt. Values are provider observations, never local intent.","summary":"Read one ad account's daily insights"}},"/api/v1/ads/accounts/{accountId}/insights/refresh":{"post":{"tags":["ads"],"operationId":"ads.refreshInsights","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"AdRefreshAccepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdRefreshAccepted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner or ads_manage key. Marks the account's campaign and insight cursors due now and returns 202. Rate limited per account. No provider call happens during the request.","summary":"Queue an ad insight refresh"}},"/api/v1/ads/accounts/{accountId}/spend-policy":{"get":{"tags":["ads"],"operationId":"ads.getSpendPolicy","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdSpendPolicy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdSpendPolicy"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns monthly and daily caps, per-campaign budget limits, kill-switch state, and revision from stored rows. A missing policy reports configured=false with revision 0. No provider call happens during the request.","summary":"Read an ad account's spend policy"},"put":{"tags":["ads"],"operationId":"ads.updateSpendPolicy","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdSpendPolicy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdSpendPolicy"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Send every cap and the current expectedRevision. Caps use the account currency; a monthly cap is required before the first activation. A stale revision returns AdRevisionConflict.","summary":"Replace an ad account's spend policy","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdSpendPolicyUpdate"}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/kill-switch":{"post":{"tags":["ads"],"operationId":"ads.setKillSwitch","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdKillSwitchResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdKillSwitchResult"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Setting active is open to workspace members and ads_manage keys and pauses active campaigns, ad groups, and ads. Clearing is human owner only and never resumes spend. Repeating the current state is idempotent.","summary":"Set or clear an ad account kill switch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdKillSwitchInput"}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/operations/{operationId}":{"get":{"tags":["ads"],"operationId":"ads.getOperation","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"operationId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdOperation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdOperation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns status, step, sanitized input and result references, issues, attempts, and the next action. Cross-workspace or cross-account IDs return 404. No provider call happens during the request.","summary":"Read one ad operation"}},"/api/v1/ads/accounts/{accountId}/boosts/validate":{"post":{"tags":["ads"],"operationId":"ads.validateBoost","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AdValidation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdValidation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Validates the published source, Facebook Page actor, budget, schedule, targeting, spend policy, and kill switch without a provider write. Returns every issue and the next action. Phase 1 supports Facebook Page posts; Instagram is rejected.","summary":"Validate a Facebook Page post boost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdBoostDraft"}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/boosts":{"post":{"tags":["ads"],"operationId":"ads.createBoost","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"AdOperation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdOperation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Creates a Meta campaign, ad set, creative, and ad, all PAUSED, from a published Facebook Page post. The provider post ID is frozen at admission. The same Idempotency-Key and intent return the same operation; a different intent returns 400. Provider IDs are read back before the operation succeeds. Spend is not activated by this call.","summary":"Create a paused Facebook Page post boost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdBoostDraft"}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/campaigns/{campaignId}/activate":{"post":{"tags":["ads"],"operationId":"ads.activateCampaign","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"campaignId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"AdOperation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdOperation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Requires the current expectedRevision, confirmation activate_spend, a configured monthly cap, a clear kill switch, and committed budgets within every cap. The provider call sets the campaign ACTIVE and reads it back. API keys cannot activate spend.","summary":"Activate one paused boost campaign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignActivationInput"}}},"required":true}}},"/api/v1/ads/accounts/{accountId}/campaigns/{campaignId}/pause":{"post":{"tags":["ads"],"operationId":"ads.pauseCampaign","parameters":[{"name":"accountId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"campaignId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":true},{"name":"workspaceId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"202":{"description":"AdOperation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdOperation"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Invalid ad request | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/InvalidAdRequestEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Ad spend permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/AdSpendForbiddenEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Ad account not ready | Ad account not selected | Ad resource revision conflict | Ad kill switch is active | Ad operation is not retryable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/AdAccountNotReadyEncoded"},{"$ref":"#/components/schemas/AdAccountNotSelectedEncoded"},{"$ref":"#/components/schemas/AdRevisionConflictEncoded"},{"$ref":"#/components/schemas/AdKillSwitchActiveEncoded"},{"$ref":"#/components/schemas/AdOperationNotRetryableEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide | Ad insight range invalid | Ad budget exceeds a spend cap | Ad budget is below the provider minimum | Ad currency does not match the account | Ad provider rejected the request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"},{"$ref":"#/components/schemas/AdInsightRangeInvalidEncoded"},{"$ref":"#/components/schemas/AdBudgetExceededEncoded"},{"$ref":"#/components/schemas/AdBudgetBelowMinimumEncoded"},{"$ref":"#/components/schemas/AdCurrencyMismatchEncoded"},{"$ref":"#/components/schemas/AdProviderRejectedEncoded"}]}}}},"429":{"description":"Provider rate limited | Ad refresh rate limited","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"},{"$ref":"#/components/schemas/AdRefreshRateLimitedEncoded"}]}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner, member, or ads_manage key. Requires the current expectedRevision. The provider call sets the campaign PAUSED and reads it back. Activation remains a separate owner-only action.","summary":"Pause one boost campaign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCampaignPauseInput"}}},"required":true}}},"/api/v1/workspaces/{workspaceId}/audit-logs":{"get":{"tags":["audit"],"operationId":"audit.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"action","in":"query","schema":{"$ref":"#/components/schemas/AuditAction"},"required":false},{"name":"targetKind","in":"query","schema":{"$ref":"#/components/schemas/AuditTargetKind"},"required":false},{"name":"targetId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"actorType","in":"query","schema":{"$ref":"#/components/schemas/AuditActorType"},"required":false},{"name":"actorId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"profileId","in":"query","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":false},{"name":"from","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"string"}],"description":"Inclusive start instant (ISO 8601 timestamp or YYYY-MM-DD UTC date)."},"required":false},{"name":"to","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"string"}],"description":"Inclusive end instant (ISO 8601 timestamp or YYYY-MM-DD UTC date)."},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AuditEventList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Cursor-paginated newest first on (createdAt, id). Filters by action, target, actor, profile, or UTC date/time range.","summary":"List workspace audit events"}},"/api/v1/workspaces/{workspaceId}/audit-logs/{eventId}":{"get":{"tags":["audit"],"operationId":"audit.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"eventId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"AuditEvent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEvent"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Read one audit event"}},"/api/v1/workspaces/{workspaceId}/notification-preferences":{"get":{"tags":["notifications"],"operationId":"notifications.preferences.get","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"NotificationPreferences","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferences"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Returns the caller's saved preferences, or role-derived defaults with updatedAt: null when none have been saved yet.","summary":"Read email notification preferences"},"patch":{"tags":["notifications"],"operationId":"notifications.preferences.update","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"NotificationPreferences","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferences"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Upserts one or more notification preference booleans for the signed-in caller. Workspace members cannot enable billingAlerts.","summary":"Update email notification preferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationPreferences"}}},"required":true}}},"/api/v1/workspaces/{workspaceId}/members":{"get":{"tags":["workspaces"],"operationId":"workspaces.members.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"role","in":"query","schema":{"$ref":"#/components/schemas/WorkspaceRole"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceMemberList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List workspace members"}},"/api/v1/workspaces/{workspaceId}/members/{userId}":{"patch":{"tags":["workspaces"],"operationId":"workspaces.members.updateRole","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"userId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceMember","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMember"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Update a workspace member's role","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceMemberRole"}}},"required":true}},"delete":{"tags":["workspaces"],"operationId":"workspaces.members.remove","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"userId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceMemberRemoved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberRemoved"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Remove a workspace member or leave the workspace"}},"/api/v1/workspaces/{workspaceId}/invites":{"get":{"tags":["workspaces"],"operationId":"workspaces.invites.list","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/WorkspaceInviteStatus"},"required":false},{"name":"cursor","in":"query","schema":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"required":false},{"name":"limit","in":"query","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceInviteList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List workspace invitations"},"post":{"tags":["workspaces"],"operationId":"workspaces.invites.create","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"201":{"description":"WorkspaceInviteCreated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteCreated"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Owner only. Reserves an invitation and asks WorkOS to send the email. Supports Idempotency-Key; deliveryState reports an uncertain or pending send.","summary":"Create a workspace invitation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceInvite"}}},"required":true}}},"/api/v1/workspaces/{workspaceId}/invites/{inviteId}/resend":{"post":{"tags":["workspaces"],"operationId":"workspaces.invites.resend","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"inviteId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"idempotency-key","in":"header","schema":{"type":"string"},"required":false}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceInviteResent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteResent"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Resend a pending invitation email"}},"/api/v1/workspaces/{workspaceId}/invites/{inviteId}":{"delete":{"tags":["workspaces"],"operationId":"workspaces.invites.revoke","parameters":[{"name":"workspaceId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"inviteId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceInviteRevoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteRevoked"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Revoke a pending workspace invitation"}},"/api/v1/me/invites":{"get":{"tags":["me"],"operationId":"me.invites.list","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"PendingUserInviteList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingUserInviteList"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"List your pending workspace invitations"}},"/api/v1/me/invites/accept":{"post":{"tags":["me"],"operationId":"me.invites.accept","parameters":[],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceInviteAccepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteAccepted"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Accept a pending workspace invitation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptWorkspaceInvite"}}},"required":true}}},"/api/v1/me/invites/{inviteId}/decline":{"post":{"tags":["me"],"operationId":"me.invites.decline","parameters":[{"name":"inviteId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pubnioBearer":[]}],"responses":{"200":{"description":"WorkspaceInviteDeclined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteDeclined"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/AuthenticationRequiredEncoded"}}}},"402":{"description":"Seat limit reached","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/SeatLimitReachedEncoded"}}}},"403":{"description":"Provider permission required | Human actor required | Owner permission required | Invite email mismatch | Forbidden","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"},{"$ref":"#/components/schemas/HumanActorRequiredEncoded"},{"$ref":"#/components/schemas/OwnerRequiredEncoded"},{"$ref":"#/components/schemas/InviteEmailMismatchEncoded"},{"$ref":"#/components/schemas/ForbiddenEncoded"}]}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Idempotency key already used | Already a workspace member | Invite already pending | Last owner required","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"},{"$ref":"#/components/schemas/IdempotencyConflictEncoded"},{"$ref":"#/components/schemas/AlreadyMemberEncoded"},{"$ref":"#/components/schemas/InviteAlreadyPendingEncoded"},{"$ref":"#/components/schemas/LastOwnerRequiredEncoded"}]}}}},"410":{"description":"Invite expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InviteExpiredEncoded"}}}},"415":{"description":"Error","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalFailureEncoded"},{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}]}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"summary":"Decline a pending workspace invitation"}},"/api/v1/audit-logs/actions":{"get":{"tags":["audit"],"operationId":"audit.actions.list","parameters":[],"security":[],"responses":{"200":{"description":"AuditActionCatalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditActionCatalog"}}}},"400":{"description":"Invalid cursor | Unsupported API version | Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InvalidCursorEncoded"},{"$ref":"#/components/schemas/UnsupportedApiVersionEncoded"},{"$ref":"#/components/schemas/BadRequestProblemEncoded"}]}}}},"403":{"description":"Provider permission required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderPermissionRequiredEncoded"}}}},"404":{"description":"Not Found | Queue not found","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NotFoundEncoded"},{"$ref":"#/components/schemas/QueueNotFoundEncoded"}]}}}},"409":{"description":"Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/ProviderReconnectRequiredEncoded"},{"$ref":"#/components/schemas/CapabilityUnverifiedEncoded"},{"$ref":"#/components/schemas/QueueAlreadyExistsEncoded"},{"$ref":"#/components/schemas/QueueDefaultRequiredEncoded"},{"$ref":"#/components/schemas/QueueVersionConflictEncoded"},{"$ref":"#/components/schemas/QueueUnavailableEncoded"},{"$ref":"#/components/schemas/QueueCapacityReachedEncoded"},{"$ref":"#/components/schemas/QueueNoSlotAvailableEncoded"},{"$ref":"#/components/schemas/QueueSlotConflictEncoded"}]}}}},"422":{"description":"Capability unsupported | Invalid queue | Schedule range too wide","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CapabilityUnsupportedEncoded"},{"$ref":"#/components/schemas/InvalidQueueEncoded"},{"$ref":"#/components/schemas/ScheduleRangeTooWideEncoded"}]}}}},"429":{"description":"Provider rate limited","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProviderRateLimitedEncoded"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorProblemEncoded"}}}},"503":{"description":"Service Unavailable | Provider unavailable","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnavailableEncoded"},{"$ref":"#/components/schemas/ProviderUnavailableEncoded"}]}}}}},"description":"Public edge-cacheable catalog of AuditAction values, target kinds, and retention days.","summary":"List documented audit actions"}}},"components":{"schemas":{"InternalServerErrorProblemEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["about:blank"]},"status":{"type":"number","enum":[500]},"title":{"type":"string","enum":["Internal Server Error"]}},"required":["type"],"additionalProperties":false},"ScheduleRangeTooWideEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"maxDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:schedule-range-too-wide"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Schedule range too wide"]}},"required":["maxDays","type"],"additionalProperties":false},"InvalidQueueEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/QueueIssue"}},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-queue"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Invalid queue"]}},"required":["issues","type"],"additionalProperties":false},"QueueIssue":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_timezone","invalid_slot_time","duplicate_slot","too_many_slots","slot_gap_too_short","limit_above_provider_default","queue_account_mismatch","queue_and_time_conflict","queue_archived","occurrence_in_past","occurrence_outside_horizon","invalid_blackout_range"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false},"CapabilityUnsupportedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"capability":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"type":{"type":"string","enum":["urn:pubnio:problem:capability-unsupported"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Capability unsupported"]}},"required":["capability","provider","accountKind","type"],"additionalProperties":false},"ProviderRateLimitedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:provider-rate-limited"]},"status":{"type":"number","enum":[429]},"title":{"type":"string","enum":["Provider rate limited"]}},"required":["provider","type"],"additionalProperties":false},"ProviderPermissionRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"missingScopes":{"type":"array","items":{"type":"string"}},"missingRoles":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"reconnectRequired":{"type":"boolean"},"type":{"type":"string","enum":["urn:pubnio:problem:provider-permission-required"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Provider permission required"]}},"required":["provider","missingScopes","missingRoles","type"],"additionalProperties":false},"BadRequestProblemEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}},"type":{"type":"string","enum":["about:blank"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Bad Request"]}},"required":["type"],"additionalProperties":false},"UnsupportedApiVersionEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["unsupported_api_version"]},"param":{"type":"string"},"supportedVersions":{"type":"array","items":{"anyOf":[{"type":"string","enum":["2026-12-02"]}]}},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:unsupported-api-version"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Unsupported API version"]}},"required":["code","param","supportedVersions","nextAction","type"],"additionalProperties":false},"InvalidCursorEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["invalid_cursor"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-cursor"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Invalid cursor"]}},"required":["type"],"additionalProperties":false},"ProviderUnavailableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:provider-unavailable"]},"status":{"type":"number","enum":[503]},"title":{"type":"string","enum":["Provider unavailable"]}},"required":["provider","type"],"additionalProperties":false},"UnavailableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:unavailable"]},"status":{"type":"number","enum":[503]},"title":{"type":"string","enum":["Service Unavailable"]}},"required":["type"],"additionalProperties":false},"QueueSlotConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"scheduledAt":{"type":"string"},"suggestedSlots":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["urn:pubnio:problem:queue-slot-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue slot conflict"]}},"required":["scheduledAt","suggestedSlots","type"],"additionalProperties":false},"QueueNoSlotAvailableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"horizonEndsAt":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:queue-no-slot-available"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["No queue slot available"]}},"required":["horizonEndsAt","type"],"additionalProperties":false},"QueueCapacityReachedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["max_per_day","max_pending"]},"type":{"type":"string","enum":["urn:pubnio:problem:queue-capacity-reached"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue capacity reached"]}},"required":["reason","type"],"additionalProperties":false},"QueueUnavailableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["paused","archived","account_not_ready"]},"type":{"type":"string","enum":["urn:pubnio:problem:queue-unavailable"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue unavailable"]}},"required":["reason","type"],"additionalProperties":false},"QueueVersionConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"currentVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:queue-version-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue version changed"]}},"required":["currentVersion","type"],"additionalProperties":false},"QueueDefaultRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["queue_default_required"]},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:queue-default-required"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue default required"]}},"required":["code","accountId","nextAction","type"],"additionalProperties":false},"QueueAlreadyExistsEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:queue-already-exists"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Queue already exists"]}},"required":["type"],"additionalProperties":false},"CapabilityUnverifiedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"capability":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"type":{"type":"string","enum":["urn:pubnio:problem:capability-unverified"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Capability unverified"]}},"required":["capability","provider","type"],"additionalProperties":false},"ProviderReconnectRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"missingScopes":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:provider-reconnect-required"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Provider reconnect required"]}},"required":["provider","missingScopes","type"],"additionalProperties":false},"ConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Conflict"]}},"required":["type"],"additionalProperties":false},"QueueNotFoundEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:queue-not-found"]},"status":{"type":"number","enum":[404]},"title":{"type":"string","enum":["Queue not found"]}},"required":["type"],"additionalProperties":false},"NotFoundEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:not-found"]},"status":{"type":"number","enum":[404]},"title":{"type":"string","enum":["Not Found"]}},"required":["type"],"additionalProperties":false},"AuditActionCatalog":{"type":"object","properties":{"actions":{"type":"array","items":{"$ref":"#/components/schemas/AuditActionCatalogEntry"}},"targetKinds":{"type":"array","items":{"$ref":"#/components/schemas/AuditTargetKind"}},"retention":{"type":"object","properties":{"standardDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spendDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["standardDays","spendDays"],"additionalProperties":false}},"required":["actions","targetKinds","retention"],"additionalProperties":false},"AuditTargetKind":{"type":"string","enum":["workspace","workspace_member","workspace_invite","workspace_profile","api_key","webhook_endpoint","webhook_delivery","integration_connection","provider_account","schedule_queue","schedule_queue_skip","schedule_queue_blackout","workspace_billing"]},"AuditActionCatalogEntry":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/AuditAction"},"targetKind":{"$ref":"#/components/schemas/AuditTargetKind"},"description":{"type":"string"},"retentionDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["action","targetKind","description","retentionDays"],"additionalProperties":false},"AuditAction":{"type":"string","enum":["workspace.updated","workspace.archived","workspace.member.role_updated","workspace.member.removed","workspace.invite.created","workspace.invite.resent","workspace.invite.revoked","workspace.invite.accepted","workspace.invite.declined","api_key.created","api_key.updated","api_key.revoked","webhook.endpoint.created","webhook.endpoint.updated","webhook.endpoint.deleted","webhook.delivery.replayed","account.connected","account.reconnected","account.disconnected","account.enabled","account.disabled","account.moved","profile.created","profile.updated","profile.archived","queue.created","queue.updated","queue.paused","queue.resumed","queue.archived","queue.slots.replaced","queue.skip.created","queue.skip.deleted","queue.blackout.created","queue.blackout.deleted","billing.subscription.updated","billing.credit.topped_up","billing.spend_controls.updated"]},"InternalFailureEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"requestId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"type":{"type":"string","enum":["urn:pubnio:problem:internal-error"]},"status":{"type":"number","enum":[500]},"title":{"type":"string","enum":["Internal Server Error"]}},"required":["requestId","type"],"additionalProperties":false},"AuthenticationRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"docUrl":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:authentication-required"]},"status":{"type":"number","enum":[401]},"title":{"type":"string","enum":["Unauthorized"]}},"required":["type"],"additionalProperties":false},"InviteExpiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["invite_expired"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invite-expired"]},"status":{"type":"number","enum":[410]},"title":{"type":"string","enum":["Invite expired"]}},"required":["code","nextAction","type"],"additionalProperties":false},"SeatLimitReachedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["seat_limit_reached"]},"seatsUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seatsLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:seat-limit-reached"]},"status":{"type":"number","enum":[402]},"title":{"type":"string","enum":["Seat limit reached"]}},"required":["code","seatsUsed","seatsLimit","nextAction","type"],"additionalProperties":false},"ForbiddenEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"requiredScope":{"type":"string","enum":["read","publish","engage","ads_read","ads_manage"]},"docUrl":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:forbidden"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Forbidden"]}},"required":["type"],"additionalProperties":false},"InviteEmailMismatchEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["invite_email_mismatch"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invite-email-mismatch"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Invite email mismatch"]}},"required":["code","nextAction","type"],"additionalProperties":false},"OwnerRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["owner_required"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:owner-required"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Owner permission required"]}},"required":["code","nextAction","type"],"additionalProperties":false},"HumanActorRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["human_actor_required"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:human-actor-required"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Human actor required"]}},"required":["code","nextAction","type"],"additionalProperties":false},"LastOwnerRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["last_owner_required"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:last-owner-required"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Last owner required"]}},"required":["code","nextAction","type"],"additionalProperties":false},"InviteAlreadyPendingEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["invite_already_pending"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invite-already-pending"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Invite already pending"]}},"required":["code","nextAction","type"],"additionalProperties":false},"AlreadyMemberEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["already_member"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:already-member"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Already a workspace member"]}},"required":["code","nextAction","type"],"additionalProperties":false},"IdempotencyConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["idempotency_conflict"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:idempotency-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Idempotency key already used"]}},"required":["type"],"additionalProperties":false},"WorkspaceInviteDeclined":{"type":"object","properties":{"declined":{"type":"boolean","enum":[true]},"remoteRevocationPending":{"type":"boolean"}},"required":["declined","remoteRevocationPending"],"additionalProperties":false},"WorkspaceInviteAccepted":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"defaultTimezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York."},"role":{"type":"string","enum":["owner","member"]}},"required":["id","name","defaultTimezone","role"],"additionalProperties":false},"membership":{"$ref":"#/components/schemas/WorkspaceMember"}},"required":["workspace","membership"],"additionalProperties":false},"WorkspaceMember":{"type":"object","properties":{"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"userId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"email":{"type":"string"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"joinedAt":{"type":"string"}},"required":["workspaceId","userId","email","displayName","role","joinedAt"],"additionalProperties":false},"WorkspaceRole":{"type":"string","enum":["owner","member"]},"AcceptWorkspaceInvite":{"anyOf":[{"type":"object","properties":{"token":{"type":"string"}},"required":["token"],"additionalProperties":false},{"type":"object","properties":{"inviteId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["inviteId"],"additionalProperties":false}]},"PendingUserInviteList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PendingUserInvite"}}},"required":["data"],"additionalProperties":false},"PendingUserInvite":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceName":{"type":"string"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"invitedByEmail":{"anyOf":[{"type":"string"},{"type":"null"}]},"invitedByName":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","workspaceId","workspaceName","role","invitedByEmail","invitedByName","expiresAt","createdAt"],"additionalProperties":false},"WorkspaceInviteRevoked":{"type":"object","properties":{"revoked":{"type":"boolean","enum":[true]},"remoteRevocationPending":{"type":"boolean"}},"required":["revoked","remoteRevocationPending"],"additionalProperties":false},"WorkspaceInviteResent":{"type":"object","properties":{"invite":{"$ref":"#/components/schemas/WorkspaceInvite"},"resendState":{"type":"string","enum":["sending","sent","uncertain"]}},"required":["invite","resendState"],"additionalProperties":false},"WorkspaceInvite":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"email":{"type":"string"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"status":{"$ref":"#/components/schemas/WorkspaceInviteStatus"},"deliveryState":{"type":"string","enum":["queued","sending","uncertain","sent"]},"remoteRevocationPending":{"type":"boolean"},"invitedByUserId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"invitedByEmail":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"},"acceptedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","workspaceId","email","role","status","deliveryState","remoteRevocationPending","invitedByUserId","invitedByEmail","expiresAt","acceptedAt","revokedAt","createdAt"],"additionalProperties":false},"WorkspaceInviteStatus":{"type":"string","enum":["pending","accepted","revoked","expired"]},"WorkspaceInviteCreated":{"type":"object","properties":{"invite":{"$ref":"#/components/schemas/WorkspaceInvite"}},"required":["invite"],"additionalProperties":false},"CreateWorkspaceInvite":{"type":"object","properties":{"email":{"$ref":"#/components/schemas/NormalizedEmailEncoded"},"role":{"$ref":"#/components/schemas/WorkspaceRole"}},"required":["email"],"additionalProperties":false},"NormalizedEmailEncoded":{"type":"string"},"WorkspaceInviteList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceInvite"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"WorkspaceMemberRemoved":{"type":"object","properties":{"removed":{"type":"boolean","enum":[true]}},"required":["removed"],"additionalProperties":false},"UpdateWorkspaceMemberRole":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/WorkspaceRole"}},"required":["role"],"additionalProperties":false},"WorkspaceMemberList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceMember"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"NotificationPreferences":{"type":"object","properties":{"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"deliveryFailures":{"type":"boolean"},"connectionExpiring":{"type":"boolean"},"webhookFailures":{"type":"boolean"},"billingAlerts":{"type":"boolean"},"weeklyDigest":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["workspaceId","deliveryFailures","connectionExpiring","webhookFailures","billingAlerts","weeklyDigest","updatedAt"],"additionalProperties":false},"UpdateNotificationPreferences":{"type":"object","properties":{"deliveryFailures":{"type":"boolean"},"connectionExpiring":{"type":"boolean"},"webhookFailures":{"type":"boolean"},"billingAlerts":{"type":"boolean"},"weeklyDigest":{"type":"boolean"}},"additionalProperties":false},"AuditEvent":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"profileId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"actor":{"$ref":"#/components/schemas/AuditActor"},"action":{"$ref":"#/components/schemas/AuditAction"},"targetKind":{"$ref":"#/components/schemas/AuditTargetKind"},"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"detail":{"type":"object"},"createdAt":{"type":"string"}},"required":["id","workspaceId","profileId","actor","action","targetKind","targetId","detail","createdAt"],"additionalProperties":false},"AuditActor":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id","email","displayName"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["api_key"]},"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"prefix":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","id","name","prefix"],"additionalProperties":false}]},"AuditEventList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"AuditActorType":{"type":"string","enum":["user","api_key"]},"AdProviderRejectedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"code":{"type":"string"},"retryable":{"type":"boolean"},"providerCode":{"type":"string"},"providerMessage":{"type":"string"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/AdIssue"}},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-provider-rejected"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Ad provider rejected the request"]}},"required":["provider","code","retryable","issues","nextAction","type"],"additionalProperties":false},"AdIssue":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"field":{"type":"string"},"providerCode":{"type":"string"},"missingScopes":{"type":"array","items":{"type":"string"}},"retryable":{"type":"boolean"},"providerMessage":{"type":"string"}},"required":["code","message","retryable"],"additionalProperties":false},"AdCurrencyMismatchEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-currency-mismatch"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Ad currency does not match the account"]}},"required":["expected","actual","nextAction","type"],"additionalProperties":false},"AdBudgetBelowMinimumEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"minimum":{"$ref":"#/components/schemas/Money"},"requested":{"$ref":"#/components/schemas/Money"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-budget-below-minimum"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Ad budget is below the provider minimum"]}},"required":["minimum","requested","nextAction","type"],"additionalProperties":false},"Money":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amountMinor","currency"],"additionalProperties":false},"AdBudgetExceededEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["daily_cap","monthly_cap","campaign_daily_max","campaign_lifetime_max"]},"limit":{"$ref":"#/components/schemas/Money"},"requested":{"$ref":"#/components/schemas/Money"},"committed":{"$ref":"#/components/schemas/Money"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-budget-exceeded"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Ad budget exceeds a spend cap"]}},"required":["reason","limit","requested","committed","nextAction","type"],"additionalProperties":false},"AdInsightRangeInvalidEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["invalid_range","range_too_wide"]},"maxDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:ad-insight-range-invalid"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Ad insight range invalid"]}},"required":["reason","type"],"additionalProperties":false},"AdRefreshRateLimitedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"retryAfterSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:ad-refresh-rate-limited"]},"status":{"type":"number","enum":[429]},"title":{"type":"string","enum":["Ad refresh rate limited"]}},"required":["retryAfterSeconds","type"],"additionalProperties":false},"AdSpendForbiddenEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["owner_required","api_key_forbidden","confirmation_required","monthly_cap_required","provider_managed"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-spend-forbidden"]},"status":{"type":"number","enum":[403]},"title":{"type":"string","enum":["Ad spend permission required"]}},"required":["reason","nextAction","type"],"additionalProperties":false},"InvalidAdRequestEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string"},"field":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-ad-request"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Invalid ad request"]}},"required":["reason","nextAction","type"],"additionalProperties":false},"AdOperationNotRetryableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"operationStatus":{"type":"string","enum":["queued","preflight","creating","recording","reviewing","activating","succeeded","partial","failed","unresolved","cancelled"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-operation-not-retryable"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Ad operation is not retryable"]}},"required":["operationStatus","nextAction","type"],"additionalProperties":false},"AdKillSwitchActiveEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"activatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-kill-switch-active"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Ad kill switch is active"]}},"required":["accountId","activatedAt","reason","nextAction","type"],"additionalProperties":false},"AdRevisionConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"resource":{"type":"string","enum":["spend_policy","campaign","boost"]},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"actualRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-revision-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Ad resource revision conflict"]}},"required":["resource","expectedRevision","actualRevision","nextAction","type"],"additionalProperties":false},"AdAccountNotSelectedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"accountId":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:ad-account-not-selected"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Ad account not selected"]}},"required":["accountId","type"],"additionalProperties":false},"AdAccountNotReadyEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["unavailable","needs_reconnect","permission_missing","account_disabled"]},"missingScopes":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["urn:pubnio:problem:ad-account-not-ready"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Ad account not ready"]}},"required":["reason","type"],"additionalProperties":false},"AdOperation":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"kind":{"type":"string","enum":["boost.create","campaign.activate","campaign.pause"]},"status":{"type":"string","enum":["queued","preflight","creating","recording","reviewing","activating","succeeded","partial","failed","unresolved","cancelled"]},"step":{"type":"string","enum":["queued","preflight","create","record","review","activate","finish"]},"input":{"type":"object"},"result":{"anyOf":[{"type":"object"},{"type":"null"}]},"issues":{"type":"array","items":{"$ref":"#/components/schemas/AdIssue"}},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"canRetry":{"type":"boolean"},"nextAction":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","accountId","kind","status","step","input","result","issues","attempts","canRetry","nextAction","createdAt","updatedAt","startedAt","completedAt"],"additionalProperties":false},"AdCampaignPauseInput":{"type":"object","properties":{"expectedRevision":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0}},"required":["expectedRevision"],"additionalProperties":false},"AdCampaignActivationInput":{"type":"object","properties":{"expectedRevision":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0},"confirmation":{"type":"string","enum":["activate_spend"]}},"required":["expectedRevision","confirmation"],"additionalProperties":false},"AdBoostDraft":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"postTargetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"actorAccountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"budget":{"$ref":"#/components/schemas/AdBudget"},"schedule":{"$ref":"#/components/schemas/AdSchedule"},"targeting":{"type":"object"}},"required":["postId","budget"],"additionalProperties":false},"AdSchedule":{"type":"object","properties":{"startAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"}},"required":["startAt","endAt","timezone"],"additionalProperties":false},"AdBudget":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string"},"kind":{"type":"string","enum":["daily","lifetime"]}},"required":["amountMinor","currency","kind"],"additionalProperties":false},"AdValidation":{"type":"object","properties":{"valid":{"type":"boolean"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"actorAccountId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"currency":{"type":"string"},"budget":{"anyOf":[{"$ref":"#/components/schemas/AdBudget"},{"type":"null"}]},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdSchedule"},{"type":"null"}]},"killSwitchActive":{"type":"boolean"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/AdIssue"}},"nextAction":{"type":"string"}},"required":["valid","accountId","provider","actorAccountId","currency","budget","schedule","killSwitchActive","issues","nextAction"],"additionalProperties":false},"AdKillSwitchResult":{"type":"object","properties":{"policy":{"$ref":"#/components/schemas/AdSpendPolicy"},"changed":{"type":"boolean"},"paused":{"type":"object","properties":{"campaigns":{"type":"integer","minimum":0,"maximum":9007199254740991},"adGroups":{"type":"integer","minimum":0,"maximum":9007199254740991},"ads":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["campaigns","adGroups","ads"],"additionalProperties":false},"nextAction":{"type":"string"}},"required":["policy","changed","paused","nextAction"],"additionalProperties":false},"AdSpendPolicy":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"currency":{"type":"string"},"configured":{"type":"boolean"},"monthlyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"dailyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignDailyBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignLifetimeBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"killSwitchActive":{"type":"boolean"},"killSwitchAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"killSwitchReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"updatedAt":{"type":"string"}},"required":["accountId","currency","configured","monthlyCap","dailyCap","maxCampaignDailyBudget","maxCampaignLifetimeBudget","killSwitchActive","killSwitchAt","killSwitchReason","revision","updatedAt"],"additionalProperties":false},"AdKillSwitchInput":{"type":"object","properties":{"active":{"type":"boolean"},"reason":{"type":"string","maxLength":500}},"required":["active"],"additionalProperties":false},"AdSpendPolicyUpdate":{"type":"object","properties":{"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"monthlyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"dailyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignDailyBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignLifetimeBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"required":["expectedRevision","monthlyCap","dailyCap","maxCampaignDailyBudget","maxCampaignLifetimeBudget"],"additionalProperties":false},"AdRefreshAccepted":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"queuedScopes":{"type":"array","items":{"type":"string","enum":["campaigns","ads_insights"]}},"nextDueAt":{"type":"string"},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["accountId","queuedScopes","nextDueAt"],"additionalProperties":false},"AdInsightList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdInsightRow"}},"summary":{"$ref":"#/components/schemas/AdInsightSummary"},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"freshness":{"$ref":"#/components/schemas/AdFreshness"}},"required":["data","summary","hasMore","freshness"],"additionalProperties":false},"AdFreshness":{"type":"object","properties":{"status":{"type":"string","enum":["fresh","stale","pending","partial","unavailable"]},"syncedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextSyncAt":{"type":"string"},"retryAfter":{"type":"string"}},"required":["status","syncedAt"],"additionalProperties":false},"AdInsightSummary":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"level":{"type":"string","enum":["campaign","ad_group","ad"]},"totals":{"type":"array","items":{"$ref":"#/components/schemas/AdInsightTotals"}},"rowCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"freshness":{"$ref":"#/components/schemas/AdFreshness"}},"required":["from","to","level","totals","rowCount","freshness"],"additionalProperties":false},"AdInsightTotals":{"type":"object","properties":{"currency":{"type":"string"},"spend":{"$ref":"#/components/schemas/Money"},"impressions":{"type":"integer","minimum":0,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversions":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"revenue":{"$ref":"#/components/schemas/Money"},"metrics":{"type":"object","additionalProperties":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}}},"required":["currency","spend","impressions","clicks","conversions","revenue","metrics"],"additionalProperties":false},"AdInsightRow":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"level":{"type":"string","enum":["campaign","ad_group","ad"]},"campaignId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"adGroupId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"adId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"creativeId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"date":{"type":"string"},"currency":{"type":"string"},"spend":{"$ref":"#/components/schemas/Money"},"impressions":{"type":"integer","minimum":0,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversions":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"revenue":{"$ref":"#/components/schemas/Money"},"metrics":{"type":"object","additionalProperties":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"syncedAt":{"type":"string"}},"required":["id","accountId","level","campaignId","adGroupId","adId","creativeId","date","currency","spend","impressions","clicks","conversions","revenue","metrics","syncedAt"],"additionalProperties":false},"AdCreativeList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdCreative"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"freshness":{"$ref":"#/components/schemas/AdFreshness"}},"required":["data","hasMore","freshness"],"additionalProperties":false},"AdCreative":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"externalId":{"type":"string"},"kind":{"type":"string"},"actorAccountId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"mediaId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"body":{"anyOf":[{"type":"string"},{"type":"null"}]},"callToAction":{"anyOf":[{"type":"string"},{"type":"null"}]},"destinationUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerSettings":{"type":"object"},"syncedAt":{"type":"string"}},"required":["id","accountId","provider","externalId","kind","actorAccountId","mediaId","headline","body","callToAction","destinationUrl","providerSettings","syncedAt"],"additionalProperties":false},"Ad":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"campaignId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"adGroupId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"creativeId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"externalId":{"type":"string"},"name":{"type":"string"},"format":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["draft","paused","activating","active","pending_review","rejected","completed","archived","unknown"]},"providerStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"providerSettings":{"type":"object"},"syncedAt":{"type":"string"},"creative":{"anyOf":[{"$ref":"#/components/schemas/AdCreative"},{"type":"null"}]},"insights":{"anyOf":[{"$ref":"#/components/schemas/AdInsightSummary"},{"type":"null"}]}},"required":["id","accountId","campaignId","adGroupId","creativeId","provider","externalId","name","format","status","providerStatus","revision","providerSettings","syncedAt"],"additionalProperties":false},"AdTree":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdTreeCampaign"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"freshness":{"$ref":"#/components/schemas/AdFreshness"}},"required":["data","hasMore","freshness"],"additionalProperties":false},"AdTreeCampaign":{"type":"object","properties":{"campaign":{"$ref":"#/components/schemas/AdCampaign"},"adGroups":{"type":"array","items":{"$ref":"#/components/schemas/AdTreeNode"}}},"required":["campaign","adGroups"],"additionalProperties":false},"AdTreeNode":{"type":"object","properties":{"adGroup":{"$ref":"#/components/schemas/AdGroup"},"ads":{"type":"array","items":{"type":"object","properties":{"ad":{"$ref":"#/components/schemas/Ad"},"creative":{"anyOf":[{"$ref":"#/components/schemas/AdCreative"},{"type":"null"}]}},"required":["ad","creative"],"additionalProperties":false}}},"required":["adGroup","ads"],"additionalProperties":false},"AdGroup":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"campaignId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"kind":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["draft","paused","activating","active","pending_review","rejected","completed","archived","unknown"]},"providerStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"budget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"bidStrategy":{"anyOf":[{"type":"string"},{"type":"null"}]},"targeting":{"type":"object"},"providerSettings":{"type":"object"},"syncedAt":{"type":"string"}},"required":["id","campaignId","accountId","provider","kind","externalId","name","status","providerStatus","revision","budget","bidStrategy","targeting","providerSettings","syncedAt"],"additionalProperties":false},"AdCampaign":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"externalId":{"type":"string"},"name":{"type":"string"},"objective":{"type":"string","enum":["awareness","traffic","engagement","leads","sales","app_promotion","video_views","reach","conversions","unknown"]},"status":{"type":"string","enum":["draft","paused","activating","active","pending_review","rejected","completed","archived","unknown"]},"providerStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"managed":{"type":"string","enum":["provider","pubnio"]},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"budget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"bidStrategy":{"anyOf":[{"type":"string"},{"type":"null"}]},"schedule":{"$ref":"#/components/schemas/AdSchedule"},"providerSettings":{"type":"object"},"syncedAt":{"type":"string"}},"required":["id","accountId","provider","externalId","name","objective","status","providerStatus","managed","revision","budget","bidStrategy","schedule","providerSettings","syncedAt"],"additionalProperties":false},"AdCampaignList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdCampaign"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."},"freshness":{"$ref":"#/components/schemas/AdFreshness"}},"required":["data","hasMore","freshness"],"additionalProperties":false},"AdAccountDisconnected":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"disconnected":{"type":"boolean","enum":[true]},"historyRetained":{"type":"boolean","enum":[true]}},"required":["accountId","disconnected","historyRetained"],"additionalProperties":false},"AdAccountSelection":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"selected":{"type":"boolean","enum":[true]},"campaignSyncQueued":{"type":"boolean"},"insightSyncQueued":{"type":"boolean"}},"required":["accountId","selected","campaignSyncQueued","insightSyncQueued"],"additionalProperties":false},"AdConnectLaunch":{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"url":{"type":"string"},"status":{"type":"string","enum":["pending"]}},"required":["attemptId","provider","url","status"],"additionalProperties":false},"AdAccountList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdAccount"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"AdAccount":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["ad_account"]},"available":{"type":"boolean"},"selected":{"type":"boolean"},"details":{"$ref":"#/components/schemas/AdAccountDetails"},"readiness":{"$ref":"#/components/schemas/AccountReadiness"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/AccountCapability"}},"policy":{"$ref":"#/components/schemas/AdAccountPolicy"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/AdIssue"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","provider","accountKind","available","selected","details","readiness","capabilities","policy","issues","createdAt","updatedAt"],"additionalProperties":false},"AdAccountPolicy":{"type":"object","properties":{"configured":{"type":"boolean"},"killSwitchActive":{"type":"boolean"},"monthlyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"dailyCap":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignDailyBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxCampaignLifetimeBudget":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["configured","killSwitchActive","monthlyCap","dailyCap","maxCampaignDailyBudget","maxCampaignLifetimeBudget","revision"],"additionalProperties":false},"AccountCapability":{"type":"object","properties":{"capability":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"state":{"type":"string","enum":["supported","not_supported","access_pending","permission_missing","unverified","reconnect_required","unavailable"]},"missingScopes":{"type":"array","items":{"type":"string"}},"missingRoles":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}},"required":["capability","state","missingScopes","missingRoles"],"additionalProperties":false},"AccountReadiness":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["ready","disabled","unavailable"]}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["needs_reconnect"]},"reason":{"type":"string","enum":["disconnected","token_expired"]}},"required":["status","reason"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["unverified"]},"reason":{"type":"string","enum":["scopes_unknown","page_tasks_unknown"]}},"required":["status","reason"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["permission_required"]},"reason":{"type":"string","enum":["missing_scope"]},"missingScopes":{"type":"array","items":{"type":"string"}}},"required":["status","reason","missingScopes"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["permission_required"]},"reason":{"type":"string","enum":["missing_page_task"]}},"required":["status","reason"],"additionalProperties":false}]},"AdAccountDetails":{"type":"object","properties":{"provider":{"type":"string","enum":["meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"},"managerId":{"type":"string"},"loginCustomerId":{"type":"string"},"region":{"type":"string","enum":["na","eu","fe"]}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},"DeliveryNotReconcilableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:delivery-not-reconcilable"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Delivery cannot be reconciled"]}},"required":["type"],"additionalProperties":false},"AttemptChangedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"currentAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"type":{"type":"string","enum":["urn:pubnio:problem:attempt-changed"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Delivery attempt changed"]}},"required":["currentAttemptId","type"],"additionalProperties":false},"DeliveryStatus":{"type":"object","properties":{"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"scheduledAt":{"type":"string"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"assignmentId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"},"localDate":{"type":"string"},"localTime":{"type":"string"},"timezone":{"type":"string"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"status":{"type":"string","enum":["scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]},"providerRef":{"$ref":"#/components/schemas/DeliveryProviderRef"},"url":{"type":"string"},"issue":{"type":"string","enum":["authorization_changed","account_not_ready","credential_unavailable","media_preparation_failed","video_compression_failed","audio_unavailable","provider_rejected","tiktok_settings_unavailable","tiktok_settings_not_allowed","tiktok_processing_failed","submission_uncertain","confirmation_unavailable"]},"canRetry":{"type":"boolean"},"canReconcile":{"type":"boolean"},"nextAction":{"type":"string"}},"required":["targetId","attemptId","accountId","revision","provider","placement","status","canRetry","canReconcile"],"additionalProperties":false},"DeliveryProviderRef":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","minLength":1}},"required":["id","kind"],"additionalProperties":false},"PostState":{"type":"string","enum":["draft","scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]},"DeliveryNotRetryableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:delivery-not-retryable"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Delivery cannot be retried"]}},"required":["type"],"additionalProperties":false},"DeliveryHistory":{"type":"object","properties":{"currentAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"data":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryAttemptSummary"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["currentAttemptId","data","hasMore"],"additionalProperties":false},"DeliveryAttemptSummary":{"type":"object","properties":{"delivery":{"$ref":"#/components/schemas/DeliveryStatus"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"replacesAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["delivery","createdAt","updatedAt"],"additionalProperties":false},"InvalidPublicationEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["no_targets","schedule_out_of_range","publishing_not_supported","publish_permission_required","duplicate_target","account_not_found","provider_mismatch","account_not_ready","account_unverified","caption_too_long","empty_content","media_required","media_unresolved","media_not_ready","media_count","media_type","media_mime_type","media_too_large","media_upload_required","media_unverified","settings_conflict","tiktok_privacy_unsupported","tiktok_disclosure_required","tiktok_upload_required","tiktok_too_many_mentions","queue_and_time_conflict"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"code":{"type":"string","enum":["invalid_publication"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-publication"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Invalid publication"]}},"required":["issues","type"],"additionalProperties":false},"UnsupportedPlacementEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["unsupported_placement"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"param":{"type":"string"},"supportedPlacements":{"type":"array","items":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]}},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:unsupported-placement"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Placement unsupported"]}},"required":["code","provider","placement","param","supportedPlacements","nextAction","type"],"additionalProperties":false},"ScheduleRequiredEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["schedule_required"]},"param":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:schedule-required"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Schedule required"]}},"required":["code","param","nextAction","type"],"additionalProperties":false},"PublishAccountNotFoundEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["account_not_found"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"param":{"type":"string"},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/ProblemCandidate"}},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:publish-account-not-found"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Publishing account not found"]}},"required":["code","param","nextAction","type"],"additionalProperties":false},"ProblemCandidate":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"}},"required":["accountId","name"],"additionalProperties":false},"ProviderMismatchEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["provider_mismatch"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"expectedProvider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"param":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:provider-mismatch"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Provider mismatch"]}},"required":["code","provider","expectedProvider","param","nextAction","type"],"additionalProperties":false},"InvalidPublishSelectionEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["selector_required","selector_conflict","duplicate_destination"]},"param":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-publish-selection"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Invalid publish selection"]}},"required":["code","param","nextAction","type"],"additionalProperties":false},"AccountAmbiguousEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["account_ambiguous"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"param":{"type":"string"},"candidates":{"type":"array","items":{"$ref":"#/components/schemas/ProblemCandidate"}},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:account-ambiguous"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Account ambiguous"]}},"required":["code","provider","param","candidates","nextAction","type"],"additionalProperties":false},"PostRevisionConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"currentRevision":{"type":"integer","minimum":1,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:post-revision-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Post revision changed"]}},"required":["currentRevision","type"],"additionalProperties":false},"DestinationAlreadySubmittedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:destination-already-submitted"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Destination already submitted"]}},"required":["type"],"additionalProperties":false},"PublishAccepted":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"idempotencyKey":{"type":"string"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PublishAcceptedTarget"}}},"required":["postId","idempotencyKey","targets"],"additionalProperties":false},"PublishAcceptedTarget":{"type":"object","properties":{"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"status":{"type":"string","enum":["scheduled","queued","submitting","confirming","published","provider_draft","failed","unresolved","cancelled"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"issue":{"anyOf":[{"type":"string"},{"type":"null"}]},"canRetry":{"type":"boolean"},"canReconcile":{"type":"boolean"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"assignmentId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"},"localDate":{"type":"string"},"localTime":{"type":"string"},"timezone":{"type":"string"}},"required":["targetId","attemptId","accountId","provider","placement","status","scheduledAt","url","issue","canRetry","canReconcile"],"additionalProperties":false},"DestinationSelection":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["accountId","placement"],"additionalProperties":false},"PostValidation":{"type":"object","properties":{"valid":{"type":"boolean"},"canPublish":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["no_targets","schedule_out_of_range","publishing_not_supported","publish_permission_required","duplicate_target","account_not_found","provider_mismatch","account_not_ready","account_unverified","caption_too_long","empty_content","media_required","media_unresolved","media_not_ready","media_count","media_type","media_mime_type","media_too_large","media_upload_required","media_unverified","settings_conflict","tiktok_privacy_unsupported","tiktok_disclosure_required","tiktok_upload_required","tiktok_too_many_mentions","queue_and_time_conflict"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["no_targets","schedule_out_of_range","publishing_not_supported","publish_permission_required","duplicate_target","account_not_found","provider_mismatch","account_not_ready","account_unverified","caption_too_long","empty_content","media_required","media_unresolved","media_not_ready","media_count","media_type","media_mime_type","media_too_large","media_upload_required","media_unverified","settings_conflict","tiktok_privacy_unsupported","tiktok_disclosure_required","tiktok_upload_required","tiktok_too_many_mentions","queue_and_time_conflict"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"targets":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"valid":{"type":"boolean"},"canPublish":{"type":"boolean"},"publishSupported":{"type":"boolean"},"caption":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count","limit"],"additionalProperties":false},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["no_targets","schedule_out_of_range","publishing_not_supported","publish_permission_required","duplicate_target","account_not_found","provider_mismatch","account_not_ready","account_unverified","caption_too_long","empty_content","media_required","media_unresolved","media_not_ready","media_count","media_type","media_mime_type","media_too_large","media_upload_required","media_unverified","settings_conflict","tiktok_privacy_unsupported","tiktok_disclosure_required","tiktok_upload_required","tiktok_too_many_mentions","queue_and_time_conflict"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["no_targets","schedule_out_of_range","publishing_not_supported","publish_permission_required","duplicate_target","account_not_found","provider_mismatch","account_not_ready","account_unverified","caption_too_long","empty_content","media_required","media_unresolved","media_not_ready","media_count","media_type","media_mime_type","media_too_large","media_upload_required","media_unverified","settings_conflict","tiktok_privacy_unsupported","tiktok_disclosure_required","tiktok_upload_required","tiktok_too_many_mentions","queue_and_time_conflict"]},"path":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}}},"required":["accountId","provider","placement","valid","canPublish","publishSupported","caption","errors","warnings"],"additionalProperties":false}}},"required":["valid","canPublish","errors","warnings","targets"],"additionalProperties":false},"Post":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"isDraft":{"type":"boolean"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"text":{"type":"string","description":"At most 128000 characters after trimming."},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PublishTarget"},"maxItems":50},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryStatus"}},"status":{"$ref":"#/components/schemas/PostState"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["postId","isDraft","revision","text","media","targets","deliveries","status","createdAt","updatedAt"],"additionalProperties":false},"PublishTarget":{"anyOf":[{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/BlueskyFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["facebook"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/FacebookFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["facebook"]},"placement":{"type":"string","enum":["reel"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/FacebookReelSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["facebook"]},"placement":{"type":"string","enum":["story"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/FacebookStorySettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["instagram"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/InstagramFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["instagram"]},"placement":{"type":"string","enum":["reel"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/InstagramReelSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["instagram"]},"placement":{"type":"string","enum":["carousel"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/InstagramCarouselSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["instagram"]},"placement":{"type":"string","enum":["story"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/InstagramStorySettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["linkedin"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/LinkedInFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["threads"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/ThreadsFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["x"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/XFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["youtube"]},"placement":{"type":"string","enum":["video"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/YouTubeVideoSettings"}},"required":["accountId","provider","placement","settings"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["pinterest"]},"placement":{"type":"string","enum":["pin"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/PinterestPinSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["reddit"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/RedditFeedSettings"}},"required":["accountId","provider","placement","settings"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["tiktok"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/TikTokFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false},{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["google_business"]},"placement":{"type":"string","enum":["feed"]},"text":{"type":"string","maxLength":128000},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"$ref":"#/components/schemas/GoogleBusinessFeedSettings"}},"required":["accountId","provider","placement"],"additionalProperties":false}]},"GoogleBusinessFeedSettings":{"not":{"type":"null"}},"MediaInput":{"anyOf":[{"type":"object","properties":{"mediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["mediaId"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","maxLength":2048}},"required":["url"],"additionalProperties":false}]},"TikTokFeedSettings":{"anyOf":[{"$ref":"#/components/schemas/TikTokVideoSettings"},{"$ref":"#/components/schemas/TikTokPhotoSettings"}]},"TikTokPhotoSettings":{"type":"object","properties":{"privacy":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"commercialDisclosure":{"type":"string","enum":["none","own_brand","paid_partnership"]},"isAiGenerated":{"type":"boolean"},"disableComment":{"type":"boolean"},"nativeDraft":{"type":"boolean"},"format":{"type":"string","enum":["photo"]},"title":{"type":"string","maxLength":90},"coverIndex":{"type":"integer","minimum":0,"maximum":34},"autoAddMusic":{"type":"boolean"}},"required":["privacy","format"],"additionalProperties":false},"TikTokVideoSettings":{"type":"object","properties":{"privacy":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"commercialDisclosure":{"type":"string","enum":["none","own_brand","paid_partnership"]},"isAiGenerated":{"type":"boolean"},"disableComment":{"type":"boolean"},"nativeDraft":{"type":"boolean"},"format":{"type":"string","enum":["video"]},"disableDuet":{"type":"boolean"},"disableStitch":{"type":"boolean"}},"required":["privacy"],"additionalProperties":false},"RedditFeedSettings":{"type":"object","properties":{"subreddit":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":300},"link":{"type":"string","maxLength":2048},"flairId":{"type":"string","minLength":1,"maxLength":100},"flairText":{"type":"string","minLength":1,"maxLength":64},"nsfw":{"type":"boolean"},"spoiler":{"type":"boolean"},"sendReplies":{"type":"boolean"},"thumbnailMediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"firstComment":{"type":"string","maxLength":128000}},"required":["subreddit","title"],"additionalProperties":false},"PinterestPinSettings":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","minLength":1,"maxLength":800},"link":{"type":"string","maxLength":2048},"altText":{"type":"string","maxLength":500}},"additionalProperties":false},"YouTubeVideoSettings":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":5000},"privacyStatus":{"type":"string","enum":["public","unlisted","private"]},"tags":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":30},"categoryId":{"type":"string"},"madeForKids":{"type":"boolean"},"containsSyntheticMedia":{"type":"boolean"},"thumbnailMediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"notifySubscribers":{"type":"boolean"},"license":{"type":"string","enum":["youtube","creativeCommon"]},"embeddable":{"type":"boolean"},"publicStatsViewable":{"type":"boolean"}},"required":["title","privacyStatus"],"additionalProperties":false},"XFeedSettings":{"type":"object","properties":{"firstComment":{"type":"string","maxLength":128000},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":280},"maxItems":24},"article":{"$ref":"#/components/schemas/XArticleDraftSettings"}},"additionalProperties":false},"XArticleDraftSettings":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"content":{"type":"string","minLength":1,"maxLength":100000}},"required":["title","content"],"additionalProperties":false},"ThreadsFeedSettings":{"type":"object","properties":{"firstComment":{"type":"string","minLength":1,"maxLength":500},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":500},"maxItems":24}},"additionalProperties":false},"LinkedInFeedSettings":{"type":"object","properties":{"firstComment":{"type":"string","maxLength":128000},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1250},"maxItems":24},"visibility":{"type":"string","enum":["PUBLIC","CONNECTIONS"]},"altText":{"type":"string","maxLength":4086},"documentTitle":{"type":"string"}},"additionalProperties":false},"InstagramStorySettings":{"type":"object","properties":{"isAiGenerated":{"type":"boolean"},"muteAudio":{"type":"boolean"},"userTags":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["username"],"additionalProperties":false},"maxItems":20}},"additionalProperties":false},"InstagramCarouselSettings":{"type":"object","properties":{"isAiGenerated":{"type":"boolean"},"firstComment":{"type":"string","maxLength":128000},"commentsEnabled":{"type":"boolean"},"collaborators":{"type":"array","items":{"type":"string"},"maxItems":3},"locationId":{"type":"string"},"isPaidPartnership":{"type":"boolean"},"brandedContentSponsors":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"string"}]},"minItems":1,"maxItems":2},"muteAudio":{"type":"boolean"},"slides":{"type":"array","items":{"type":"object","properties":{"altText":{"type":"string","maxLength":1000},"userTags":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["username"],"additionalProperties":false},"maxItems":20}},"additionalProperties":false},"maxItems":20}},"additionalProperties":false},"InstagramReelSettings":{"type":"object","properties":{"isAiGenerated":{"type":"boolean"},"firstComment":{"type":"string","maxLength":128000},"commentsEnabled":{"type":"boolean"},"collaborators":{"type":"array","items":{"type":"string"},"maxItems":3},"locationId":{"type":"string"},"isPaidPartnership":{"type":"boolean"},"brandedContentSponsors":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"string"}]},"minItems":1,"maxItems":2},"shareToFeed":{"type":"boolean"},"muteAudio":{"type":"boolean"},"audioConfiguration":{"type":"object","properties":{"audioId":{"type":"string"},"audioVolume":{"type":"integer","minimum":1,"maximum":100},"videoVolume":{"type":"integer","minimum":0,"maximum":100}},"required":["audioId"],"additionalProperties":false},"coverUrl":{"type":"string","maxLength":2048},"thumbOffset":{"type":"integer","minimum":0,"maximum":9007199254740991},"audioName":{"type":"string","maxLength":255},"trial":{"type":"object","properties":{"graduationStrategy":{"type":"string","enum":["MANUAL","SS_PERFORMANCE"]}},"required":["graduationStrategy"],"additionalProperties":false},"userTags":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["username"],"additionalProperties":false},"maxItems":20}},"additionalProperties":false},"InstagramFeedSettings":{"type":"object","properties":{"isAiGenerated":{"type":"boolean"},"firstComment":{"type":"string","maxLength":128000},"commentsEnabled":{"type":"boolean"},"collaborators":{"type":"array","items":{"type":"string"},"maxItems":3},"locationId":{"type":"string"},"isPaidPartnership":{"type":"boolean"},"brandedContentSponsors":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"string"}]},"minItems":1,"maxItems":2},"altText":{"type":"string","maxLength":1000},"userTags":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"x":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"y":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}},"required":["username"],"additionalProperties":false},"maxItems":20}},"additionalProperties":false},"FacebookStorySettings":{"type":"object","properties":{"isAiGenerated":{"type":"boolean"}},"additionalProperties":false},"FacebookReelSettings":{"type":"object","properties":{"firstComment":{"type":"string","maxLength":128000},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1250},"maxItems":24},"nativeDraft":{"type":"boolean"},"countries":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":25},"title":{"type":"string","maxLength":128000},"isAiGenerated":{"type":"boolean"},"collaboratorPageIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10}},"additionalProperties":false},"FacebookFeedSettings":{"type":"object","properties":{"firstComment":{"type":"string","maxLength":128000},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1250},"maxItems":24},"nativeDraft":{"type":"boolean"},"countries":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":25},"link":{"type":"string","maxLength":2048},"textFormatPresetId":{"type":"string"},"albumId":{"type":"string"}},"additionalProperties":false},"BlueskyFeedSettings":{"type":"object","properties":{"firstComment":{"type":"string","minLength":1,"maxLength":300},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":300},"maxItems":24},"altText":{"type":"string","maxLength":1000}},"additionalProperties":false},"UpdatePost":{"type":"object","properties":{"text":{"type":"string","description":"At most 128000 characters after trimming."},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PublishTarget"},"maxItems":50},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false},"CreatePost":{"type":"object","properties":{"text":{"type":"string","description":"At most 128000 characters after trimming."},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"minItems":1,"maxItems":50},"accounts":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"minItems":1,"maxItems":50},"targets":{"type":"array","items":{"$ref":"#/components/schemas/CreatePostTarget"},"minItems":1,"maxItems":50},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"type":"string"},"publishNow":{"type":"boolean"},"isDraft":{"type":"boolean","description":"Save the post as a draft without submitting it. Defaults to false."}},"additionalProperties":false,"description":"Send exactly one selector for a direct post: platforms resolves the single ready account per provider, accounts selects exact account IDs, and targets selects exact destinations. Provider and placement are derived when omitted. publishNow defaults to true when scheduledAt is absent. Set isDraft to true to save a draft without submitting; drafts accept text, media, and targets."},"CreatePostTarget":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"text":{"type":"string","maxLength":128000},"thread":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1250},"minItems":1,"maxItems":24},"media":{"type":"array","items":{"$ref":"#/components/schemas/MediaInput"},"maxItems":35},"scheduledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Assign this destination to its connected account's schedule queue."},"settings":{"anyOf":[{"$ref":"#/components/schemas/BlueskyFeedSettings"},{"$ref":"#/components/schemas/FacebookFeedSettings"},{"$ref":"#/components/schemas/FacebookReelSettings"},{"$ref":"#/components/schemas/FacebookStorySettings"},{"$ref":"#/components/schemas/InstagramFeedSettings"},{"$ref":"#/components/schemas/InstagramReelSettings"},{"$ref":"#/components/schemas/InstagramCarouselSettings"},{"$ref":"#/components/schemas/InstagramStorySettings"},{"$ref":"#/components/schemas/LinkedInFeedSettings"},{"$ref":"#/components/schemas/RedditFeedSettings"},{"$ref":"#/components/schemas/ThreadsFeedSettings"},{"$ref":"#/components/schemas/XFeedSettings"},{"$ref":"#/components/schemas/YouTubeVideoSettings"},{"$ref":"#/components/schemas/PinterestPinSettings"},{"$ref":"#/components/schemas/TikTokFeedSettings"},{"$ref":"#/components/schemas/GoogleBusinessFeedSettings"}]}},"required":["accountId"],"additionalProperties":false},"PostList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PostSummary"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"PostSummary":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"isDraft":{"type":"boolean"},"status":{"$ref":"#/components/schemas/PostState"},"textPreview":{"type":"string"},"targetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"mediaCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["postId","isDraft","status","textPreview","targetCount","mediaCount","revision","createdAt","updatedAt"],"additionalProperties":false},"CommentRejectedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["comment_rejected"]},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"targetKind":{"type":"string","enum":["post","comment"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:comment-rejected"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Comment rejected"]}},"required":["code","provider","targetKind","nextAction","type"],"additionalProperties":false},"CommentTargetInvalidEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["comment_target_invalid"]},"reason":{"type":"string"},"targetKind":{"type":"string","enum":["post","comment"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:comment-target-invalid"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Comment target invalid"]}},"required":["code","reason","nextAction","type"],"additionalProperties":false},"CommentUnresolvedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["comment_unresolved"]},"actionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:comment-unresolved"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Comment outcome unresolved"]}},"required":["code","actionId","nextAction","type"],"additionalProperties":false},"CommentCreated":{"type":"object","properties":{"actionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"idempotencyKey":{"type":"string"},"commentId":{"type":"string","minLength":1},"target":{"type":"string"},"targetId":{"type":"string","minLength":1},"targetKind":{"type":"string","enum":["post","comment"]},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"status":{"type":"string","enum":["posted"]},"permalink":{"type":"string"},"replayed":{"type":"boolean"}},"required":["actionId","idempotencyKey","commentId","target","targetId","targetKind","accountId","provider","status","replayed"],"additionalProperties":false},"CreateComment":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Account that comments; derived when unambiguous."},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"target":{"type":"string","minLength":1,"maxLength":2048,"description":"Provider ID or permalink."},"targetKind":{"type":"string","enum":["post","comment"]},"text":{"type":"string"}},"required":["target","text"],"additionalProperties":false},"InboxUnsupportedContentEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"kind":{"type":"string","enum":["image","video","audio","file","text","unknown"]},"capability":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]},"type":{"type":"string","enum":["urn:pubnio:problem:inbox-unsupported-content"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Inbox content unsupported"]}},"required":["kind","capability","type"],"additionalProperties":false},"InboxSyncInProgressEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"syncRunId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:inbox-sync-in-progress"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Inbox sync already running"]}},"required":["syncRunId","retryAfterSeconds","type"],"additionalProperties":false},"InboxTargetChangedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"targetId":{"type":"string"},"state":{"type":"string","enum":["deleted","changed","unsupported"]},"type":{"type":"string","enum":["urn:pubnio:problem:inbox-target-changed"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Inbox target changed"]}},"required":["targetId","state","type"],"additionalProperties":false},"InboxReplyWindowClosedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"policy":{"type":"string","enum":["none","24_hours","x_dm_30_days"]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string","enum":["urn:pubnio:problem:inbox-reply-window-closed"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Inbox reply window closed"]}},"required":["provider","policy","endsAt","type"],"additionalProperties":false},"InboxSyncStatus":{"type":"object","properties":{"syncRun":{"$ref":"#/components/schemas/SyncRun"},"counts":{"type":"object","properties":{"conversations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"messages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"commentThreads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mentions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["conversations","messages","commentThreads","comments","mentions"],"additionalProperties":false}},"required":["syncRun","counts"],"additionalProperties":false},"SyncRun":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"cursorId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"domain":{"type":"string"},"provider":{"type":"string"},"subjectKind":{"type":"string"},"subjectId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"scope":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"startedAt":{"type":"string"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"requestCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pageCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errorKind":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"retryAfterSeconds":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"detail":{"anyOf":[{"type":"object"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","workspaceId","cursorId","domain","provider","subjectKind","subjectId","scope","status","startedAt","finishedAt","requestCount","pageCount","errorKind","providerStatus","retryAfterSeconds","detail","createdAt"],"additionalProperties":false},"InboxSyncAccepted":{"type":"object","properties":{"syncRunId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]}},"required":["syncRunId","status"],"additionalProperties":false},"InboxCapabilities":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/InboxAccountCapabilities"}}},"required":["accounts"],"additionalProperties":false},"InboxAccountCapabilities":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"enabled":{"type":"boolean"},"publishingReadiness":{"$ref":"#/components/schemas/AccountReadiness"},"accountCapabilities":{"type":"array","items":{"$ref":"#/components/schemas/AccountCapability"}},"messaging":{"$ref":"#/components/schemas/InboxChannelCapability"},"comments":{"$ref":"#/components/schemas/InboxChannelCapability"},"mentions":{"$ref":"#/components/schemas/InboxChannelCapability"},"replyWindow":{"$ref":"#/components/schemas/InboxReplyWindow"},"lastSyncError":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkedAt":{"type":"string"}},"required":["accountId","profileId","provider","accountKind","enabled","publishingReadiness","accountCapabilities","messaging","comments","mentions","replyWindow","lastSyncError","checkedAt"],"additionalProperties":false},"InboxReplyWindow":{"type":"object","properties":{"open":{"type":"boolean"},"policy":{"type":"string","enum":["none","24_hours","x_dm_30_days"]},"endsAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["open","policy","endsAt"],"additionalProperties":false},"InboxChannelCapability":{"type":"object","properties":{"resource":{"type":"string","enum":["conversation","message","comment_thread","comment","mention"]},"supported":{"type":"boolean"},"operations":{"type":"array","items":{"type":"string","enum":["list","read","send","reply","edit","delete","hide","unhide","like","unlike"]}},"attachments":{"type":"boolean"},"quickReplies":{"type":"boolean"},"buttons":{"type":"boolean"},"readReceipts":{"type":"boolean"},"moderation":{"type":"boolean"},"syncMode":{"type":"string","enum":["webhook","polling","webhook_with_reconciliation"]},"backfillDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missingScopes":{"type":"array","items":{"type":"string"}},"missingTasks":{"type":"array","items":{"type":"string"}}},"required":["resource","supported","operations","attachments","quickReplies","buttons","readReceipts","moderation","syncMode","backfillDays","missingScopes","missingTasks"],"additionalProperties":false},"InboxUnreadCount":{"type":"object","properties":{"unreadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unreadCount"],"additionalProperties":false},"InboxMentionReply":{"type":"object","properties":{"mentionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"actionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"status":{"type":"string","enum":["pending","succeeded","failed","unresolved"]},"providerResultId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["mentionId","actionId","status","providerResultId"],"additionalProperties":false},"ReplyInboxComment":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":false},"InboxMentionList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxMention"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"InboxMention":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"kind":{"type":"string","enum":["post","comment","story","other"]},"author":{"$ref":"#/components/schemas/InboxParticipant"},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"parentExternalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"canReply":{"type":"boolean"},"freshness":{"$ref":"#/components/schemas/InboxFreshness"},"providerCreatedAt":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","workspaceId","accountId","provider","kind","author","text","permalink","parentExternalId","canReply","freshness","providerCreatedAt","deletedAt","createdAt"],"additionalProperties":false},"InboxFreshness":{"type":"object","properties":{"status":{"type":"string","enum":["fresh","stale","pending","failed"]},"observedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextDueAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncRunId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","observedAt","nextDueAt","syncRunId"],"additionalProperties":false},"InboxParticipant":{"type":"object","properties":{"externalId":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"handle":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["externalId","name","handle"],"additionalProperties":false},"InboxDeleted":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]},"actionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["deleted","actionId"],"additionalProperties":false},"InboxComment":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"threadId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"parentCommentId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"author":{"$ref":"#/components/schemas/InboxParticipant"},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"likedByAccount":{"type":"boolean"},"hidden":{"type":"boolean"},"canReply":{"type":"boolean"},"canHide":{"type":"boolean"},"canLike":{"type":"boolean"},"canDelete":{"type":"boolean"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"actionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"providerCreatedAt":{"type":"string"},"providerUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","threadId","accountId","provider","parentCommentId","author","text","likeCount","replyCount","likedByAccount","hidden","canReply","canHide","canLike","canDelete","permalink","actionId","providerCreatedAt","providerUpdatedAt","deletedAt","createdAt"],"additionalProperties":false},"InboxCommentThreadDetail":{"type":"object","properties":{"thread":{"$ref":"#/components/schemas/InboxCommentThread"},"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxComment"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["thread","data","hasMore"],"additionalProperties":false},"InboxCommentThread":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"providerPostId":{"type":"string"},"postId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}]},"caption":{"anyOf":[{"type":"string"},{"type":"null"}]},"commentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unreadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastCommentAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastReadAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"freshness":{"$ref":"#/components/schemas/InboxFreshness"},"createdAt":{"type":"string"}},"required":["id","workspaceId","accountId","provider","providerPostId","postId","permalink","caption","commentCount","unreadCount","lastCommentAt","lastReadAt","freshness","createdAt"],"additionalProperties":false},"InboxCommentThreadList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxCommentThread"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"InboxMessage":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"conversationId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["received","pending","sending","sent","delivered","failed","unresolved","deleted"]},"kind":{"type":"string","enum":["text","media","template","interactive","system","unknown"]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"sender":{"$ref":"#/components/schemas/InboxParticipant"},"replyToMessageId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/InboxAttachment"}},"actionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"providerCreatedAt":{"type":"string"},"providerUpdatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","conversationId","accountId","provider","direction","state","kind","text","sender","replyToMessageId","attachments","actionId","providerCreatedAt","providerUpdatedAt","deletedAt","createdAt"],"additionalProperties":false},"InboxAttachment":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"messageId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"kind":{"type":"string","enum":["image","video","audio","file","unknown"]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"sizeBytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"durationSeconds":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"url":{"type":"string","description":"Workspace-scoped PubNio attachment URL. It never contains a provider URL or token."},"createdAt":{"type":"string"}},"required":["id","messageId","kind","mimeType","sizeBytes","width","height","durationSeconds","url","createdAt"],"additionalProperties":false},"SendInboxMessage":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":false},"InboxMessageList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxMessage"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"InboxConversation":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"participant":{"$ref":"#/components/schemas/InboxParticipant"},"folder":{"type":"string","enum":["inbox","message_request","spam","other"]},"status":{"type":"string","enum":["active","archived"]},"unreadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastMessageAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastInboundAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastMessagePreview":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastReadAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"replyWindow":{"$ref":"#/components/schemas/InboxReplyWindow"},"freshness":{"$ref":"#/components/schemas/InboxFreshness"},"createdAt":{"type":"string"}},"required":["id","workspaceId","accountId","provider","participant","folder","status","unreadCount","lastMessageAt","lastInboundAt","lastOutboundAt","lastMessagePreview","providerUrl","lastReadAt","archivedAt","replyWindow","freshness","createdAt"],"additionalProperties":false},"InboxConversationList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InboxConversation"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"AnalyticsMetricUnsupportedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"metrics":{"type":"array","items":{"type":"string"}},"maxMetrics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["urn:pubnio:problem:analytics-metric-unsupported"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Analytics metric unsupported"]}},"required":["metrics","type"],"additionalProperties":false},"AnalyticsRangeInvalidEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["invalid_timezone","invalid_range","range_too_wide"]},"type":{"type":"string","enum":["urn:pubnio:problem:analytics-range-invalid"]},"status":{"type":"number","enum":[400]},"title":{"type":"string","enum":["Analytics range invalid"]}},"required":["reason","type"],"additionalProperties":false},"AnalyticsRefreshConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["not_published","deleted","account_analytics_pending"]},"type":{"type":"string","enum":["urn:pubnio:problem:analytics-refresh-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Analytics refresh conflict"]}},"required":["reason","type"],"additionalProperties":false},"AnalyticsRefresh":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"subjectKind":{"type":"string"},"subjectId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"status":{"type":"string","enum":["queued","running","succeeded","failed","paused","deleted","inaccessible"]},"nextDueAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastSuccessAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorKind":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","workspaceId","subjectKind","subjectId","status","nextDueAt","lastSuccessAt","errorKind","createdAt"],"additionalProperties":false},"AnalyticsCapabilities":{"type":"object","properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricDefinition"}},"providers":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCapabilities"}},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsAccountCapability"}},"checkedAt":{"type":"string"}},"required":["metrics","providers","accounts","checkedAt"],"additionalProperties":false},"AnalyticsAccountCapability":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"readiness":{"type":"string","enum":["ready","permission_required","access_pending","reconnect_required","disabled"]},"capability":{"$ref":"#/components/schemas/AccountCapability"},"missingScopes":{"type":"array","items":{"type":"string"}},"reconnectRequired":{"type":"boolean"},"accessPending":{"type":"boolean"}},"required":["accountId","provider","accountKind","readiness","capability","missingScopes","reconnectRequired","accessPending"],"additionalProperties":false},"ProviderCapabilities":{"type":"object","properties":{"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKinds":{"type":"array","items":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]}},"placements":{"type":"array","items":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]}},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricCapability"}},"historyDays":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0},"latencySeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"firstAvailableAfterSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"requiredScopes":{"type":"array","items":{"type":"string"}},"comments":{"type":"boolean"}},"required":["provider","accountKinds","placements","metrics","historyDays","latencySeconds","firstAvailableAfterSeconds","requiredScopes","comments"],"additionalProperties":false},"MetricCapability":{"type":"object","properties":{"key":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"scope":{"type":"string","enum":["post","account"]},"granularity":{"type":"string","enum":["total","day"]},"unit":{"type":"string","enum":["count","milliseconds","ratio"]},"aggregation":{"type":"string","enum":["sum","unique","latest","weighted","ratio"]},"availability":{"type":"string","enum":["available","pending","unsupported","deprecated","renamed","permission_missing","access_pending","stale","deleted","private","not_applicable"]},"supported":{"type":"boolean"},"reason":{"type":"string"},"renamedFrom":{"type":"string"},"replacedBy":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]}},"required":["key","scope","granularity","unit","aggregation","availability","supported"],"additionalProperties":false},"MetricDefinition":{"type":"object","properties":{"key":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"scopes":{"type":"array","items":{"type":"string","enum":["post","account"]}},"unit":{"type":"string","enum":["count","milliseconds","ratio"]},"aggregation":{"type":"string","enum":["sum","unique","latest","weighted","ratio"]},"definition":{"type":"string"}},"required":["key","scopes","unit","aggregation","definition"],"additionalProperties":false},"AccountAnalytics":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"range":{"$ref":"#/components/schemas/AnalyticsDateRange"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricReading"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsPoint"}},"freshness":{"$ref":"#/components/schemas/AnalyticsFreshness"}},"required":["accountId","workspaceId","provider","accountKind","profileId","name","range","metrics","freshness"],"additionalProperties":false},"AnalyticsFreshness":{"type":"object","properties":{"status":{"type":"string","enum":["fresh","stale","pending","partial","unavailable"]},"observedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"retryAfter":{"type":"string"}},"required":["status","observedAt"],"additionalProperties":false},"AnalyticsPoint":{"type":"object","properties":{"date":{"type":"string"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricReading"}}},"required":["date","metrics"],"additionalProperties":false},"MetricReading":{"type":"object","properties":{"key":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"value":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"availability":{"type":"string","enum":["available","pending","unsupported","deprecated","renamed","permission_missing","access_pending","stale","deleted","private","not_applicable"]},"reason":{"type":"string"},"replacedBy":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"renamedTo":{"type":"string","enum":["impressions","reach","views","likes","comments","shares","saves","clicks","link_clicks","profile_visits","page_views","follows","followers","follower_gained","follower_lost","watch_time_ms","avg_watch_time_ms","completion_rate","engagement","engagement_rate"]},"missingScopes":{"type":"array","items":{"type":"string"}},"reconnectRequired":{"type":"boolean"},"retryAfter":{"type":"string"},"observedAt":{"type":"string"},"total":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]},{"type":"null"}]},"breakdown":{"type":"object","additionalProperties":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]}}},"required":["key","value","availability"],"additionalProperties":false},"AnalyticsDateRange":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"timezone":{"type":"string","enum":["UTC"]},"dayBasis":{"type":"string","enum":["provider_utc"]}},"required":["from","to","timezone","dayBasis"],"additionalProperties":false},"AccountAnalyticsList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsAccountSummary"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"AnalyticsAccountSummary":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricReading"}},"freshness":{"$ref":"#/components/schemas/AnalyticsFreshness"}},"required":["accountId","provider","accountKind","profileId","name","metrics","freshness"],"additionalProperties":false},"PostAnalytics":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"range":{"$ref":"#/components/schemas/AnalyticsDateRange"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PostAnalyticsTarget"}},"freshness":{"$ref":"#/components/schemas/AnalyticsFreshness"}},"required":["postId","workspaceId","range","targets","freshness"],"additionalProperties":false},"PostAnalyticsTarget":{"type":"object","properties":{"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"providerPostId":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"type":"string","enum":["available","pending","unavailable"]},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricReading"}},"series":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsPoint"}},"freshness":{"$ref":"#/components/schemas/AnalyticsFreshness"}},"required":["targetId","attemptId","accountId","provider","placement","providerPostId","publishedAt","state","metrics","freshness"],"additionalProperties":false},"DeliveryScheduleLockedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:delivery-schedule-locked"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Delivery schedule cannot change"]}},"required":["type"],"additionalProperties":false},"ScheduleChange":{"anyOf":[{"type":"object","properties":{"expectedAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"action":{"type":"string","enum":["reschedule"]},"scheduledAt":{"type":"string"}},"required":["expectedAttemptId","action","scheduledAt"],"additionalProperties":false},{"type":"object","properties":{"expectedAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"action":{"type":"string","enum":["reschedule"]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"pinned":{"type":"object","properties":{"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"}},"required":["slotId","occurrenceDate"],"additionalProperties":false}},"required":["expectedAttemptId","action","queueId"],"additionalProperties":false},{"type":"object","properties":{"expectedAttemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"action":{"type":"string","enum":["publish_now","cancel"]}},"required":["expectedAttemptId","action"],"additionalProperties":false}]},"ScheduleList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleEntry"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"ScheduleEntry":{"type":"object","properties":{"postId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"targetId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"assignmentId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"queueName":{"type":"string"},"scheduledFor":{"type":"string","description":"The queued attempt's UTC instant."},"occurrenceDate":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":100},"localDate":{"type":"string"},"localTime":{"type":"string"},"status":{"type":"string","enum":["scheduled","queued"],"description":"scheduled when scheduledFor is in the future; queued otherwise."},"textPreview":{"type":"string","maxLength":160,"description":"Short single-line preview of the post text."}},"required":["postId","targetId","attemptId","accountId","provider","placement","scheduledFor","status","textPreview"],"additionalProperties":false},"QueueDeleted":{"type":"object","properties":{"deleted":{"type":"boolean","enum":[true]}},"required":["deleted"],"additionalProperties":false},"QueueBlackout":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"startsOn":{"type":"string"},"endsOn":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"}},"required":["id","queueId","startsOn","endsOn","reason","createdAt"],"additionalProperties":false},"CreateQueueBlackout":{"type":"object","properties":{"startsOn":{"type":"string"},"endsOn":{"type":"string"},"reason":{"type":"string"}},"required":["startsOn","endsOn"],"additionalProperties":false},"QueueBlackoutList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QueueBlackout"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"QueueSkip":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","queueId","slotId","occurrenceDate","createdAt"],"additionalProperties":false},"SkipQueueSlot":{"type":"object","properties":{"slotId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrenceDate":{"type":"string"}},"required":["slotId","occurrenceDate"],"additionalProperties":false},"QueueSkipList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QueueSkip"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"QueueSlotPreview":{"type":"object","properties":{"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"timezone":{"type":"string","minLength":1,"maxLength":100},"horizonEndsAt":{"type":"string"},"occurrences":{"type":"array","items":{"$ref":"#/components/schemas/QueueOccurrence"}}},"required":["queueId","timezone","horizonEndsAt","occurrences"],"additionalProperties":false},"QueueOccurrence":{"type":"object","properties":{"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"slotId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"scheduledFor":{"type":"string","description":"The resolved UTC instant."},"occurrenceDate":{"type":"string","description":"The local date the assignment counts toward."},"localDate":{"type":"string"},"localTime":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":100},"available":{"type":"boolean"},"unavailableReason":{"type":"string","enum":["occupied","capacity","skipped","blacked_out"]}},"required":["queueId","slotId","scheduledFor","occurrenceDate","localDate","localTime","timezone","available"],"additionalProperties":false},"QueueNextSlot":{"type":"object","properties":{"queueId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"occurrence":{"anyOf":[{"$ref":"#/components/schemas/QueueOccurrence"},{"type":"null"}]},"horizonEndsAt":{"type":"string"}},"required":["queueId","occurrence","horizonEndsAt"],"additionalProperties":false},"Queue":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":100},"status":{"type":"string","enum":["active","paused","archived"]},"isDefault":{"type":"boolean","description":"The queue nextSlot assignment uses for this account when none is given."},"limits":{"$ref":"#/components/schemas/QueueLimits"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/QueueSlot"}},"version":{"type":"integer","minimum":1,"maximum":9007199254740991},"pausedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","workspaceId","accountId","name","timezone","status","isDefault","limits","slots","version","pausedAt","archivedAt","createdAt","updatedAt"],"additionalProperties":false},"QueueSlot":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"dayOfWeek":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string"}},"required":["id","dayOfWeek","time"],"additionalProperties":false},"QueueLimits":{"type":"object","properties":{"maxPerDay":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}],"description":"Null uses the provider limit."},"maxPending":{"type":"integer","minimum":1,"maximum":9007199254740991},"minGapSeconds":{"type":"integer","minimum":1,"maximum":9007199254740991},"horizonDays":{"type":"integer","minimum":1,"maximum":90},"providerMaxPerDay":{"type":"integer","minimum":1,"maximum":9007199254740991},"providerMinGapSeconds":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["maxPerDay","maxPending","minGapSeconds","horizonDays","providerMaxPerDay","providerMinGapSeconds"],"additionalProperties":false},"ReplaceQueueSlots":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"slots":{"type":"array","items":{"$ref":"#/components/schemas/QueueSlotInput"},"maxItems":50}},"required":["expectedVersion","slots"],"additionalProperties":false},"QueueSlotInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Round-trip an existing slot ID. Omit to create a new slot; a removed slot reports no ID."},"dayOfWeek":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string"}},"required":["dayOfWeek","time"],"additionalProperties":false},"QueueArchived":{"type":"object","properties":{"archived":{"type":"boolean","enum":[true]},"version":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["archived","version"],"additionalProperties":false},"UpdateQueue":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"name":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":100},"paused":{"type":"boolean"},"isDefault":{"type":"boolean","description":"Promote or demote the account default. Demoting the current default requires promoting another queue first."},"maxPerDay":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"maxPending":{"type":"integer","minimum":1,"maximum":1000},"minGapSeconds":{"type":"integer","minimum":60,"maximum":604800},"horizonDays":{"type":"integer","minimum":1,"maximum":90}},"required":["expectedVersion"],"additionalProperties":false},"CreateQueue":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":100,"description":"An IANA time zone such as America/New_York. Defaults to the workspace default time zone."},"slots":{"type":"array","items":{"$ref":"#/components/schemas/QueueSlotInput"},"maxItems":50},"isDefault":{"type":"boolean","description":"Promote this queue to the account default. The first active queue is always the default."},"maxPerDay":{"type":"integer","minimum":1,"maximum":1000,"description":"Defaults to the provider limit."},"maxPending":{"type":"integer","minimum":1,"maximum":1000},"minGapSeconds":{"type":"integer","minimum":60,"maximum":604800},"horizonDays":{"type":"integer","minimum":1,"maximum":90}},"required":["accountId","name","slots"],"additionalProperties":false},"QueueList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Queue"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"MediaIntake":{"type":"object","properties":{"mediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"status":{"type":"string","enum":["awaiting_upload","processing","ready","failed"]},"asset":{"$ref":"#/components/schemas/MediaAsset"},"issue":{"$ref":"#/components/schemas/MediaIntakeIssue"},"upload":{"$ref":"#/components/schemas/MediaUploadProgress"},"idempotencyKey":{"type":"string"},"retryAfterSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["mediaId","status"],"additionalProperties":false},"MediaUploadProgress":{"type":"object","properties":{"receivedPartCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"partDigests":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"}},"required":["receivedPartCount","partDigests","expiresAt"],"additionalProperties":false},"MediaIntakeIssue":{"type":"object","properties":{"code":{"type":"string","enum":["media_source_unavailable","media_storage_unavailable","media_too_large","unsupported_media","upload_expired"]},"maxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["code"],"additionalProperties":false},"MediaAsset":{"type":"object","properties":{"mediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"type":{"type":"string","enum":["image","video","document"]},"mimeType":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp","video/mp4","video/quicktime","video/webm","application/pdf"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":268435456},"createdAt":{"type":"string"}},"required":["mediaId","type","mimeType","sizeBytes","createdAt"],"additionalProperties":false},"MediaUploadConflictEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"reason":{"type":"string","enum":["part_conflict","part_out_of_order","parts_missing","upload_closed","upload_expired"]},"type":{"type":"string","enum":["urn:pubnio:problem:media-upload-conflict"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Media upload conflict"]}},"required":["reason","type"],"additionalProperties":false},"UploadTooLargeEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["about:blank"]},"status":{"type":"number","enum":[413]},"title":{"type":"string","enum":["Content Too Large"]}},"required":["type"],"additionalProperties":false},"MediaPartReceipt":{"type":"object","properties":{"partNumber":{"type":"integer","minimum":1,"maximum":16}},"required":["partNumber"],"additionalProperties":false},"MediaUploadSession":{"type":"object","properties":{"mediaId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"partSizeBytes":{"type":"number","enum":[16777216]},"expiresAt":{"type":"string"}},"required":["mediaId","partSizeBytes","expiresAt"],"additionalProperties":false},"MediaUploadStart":{"type":"object","properties":{"sizeBytes":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["sizeBytes"],"additionalProperties":false},"MediaImport":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":8192}},"required":["url"],"additionalProperties":false},"MediaInlineUpload":{"type":"object","properties":{"data":{"type":"string","minLength":1,"maxLength":11184816,"description":"Base64-encoded file bytes. Maximum 8 MiB after decoding."},"mimeType":{"type":"string","enum":["image/jpeg","image/png","image/gif","image/webp","video/mp4","video/quicktime","video/webm","application/pdf"]},"filename":{"type":"string","minLength":1,"maxLength":255}},"required":["data","mimeType"],"additionalProperties":false},"MediaList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MediaAsset"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"ApiLimits":{"type":"object","properties":{"targetsPerRequest":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftTextCharacters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"idempotencyTtlSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"wait":{"type":"object","properties":{"defaultSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["defaultSeconds","maxSeconds"],"additionalProperties":false},"media":{"$ref":"#/components/schemas/MediaLimits"},"rateLimits":{"$ref":"#/components/schemas/RateLimits"}},"required":["targetsPerRequest","draftTextCharacters","idempotencyTtlSeconds","wait","media","rateLimits"],"additionalProperties":false},"RateLimits":{"type":"object","properties":{"requestsPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishesPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mediaUploadsPerMinute":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["requestsPerMinute","publishesPerMinute","mediaUploadsPerMinute","windowSeconds"],"additionalProperties":false},"MediaLimits":{"type":"object","properties":{"uploadMaxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"assetMaxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partMaxBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"types":{"type":"array","items":{"type":"string","enum":["image","video","document"]}}},"required":["uploadMaxBytes","assetMaxBytes","partMaxBytes","types"],"additionalProperties":false},"CapabilityCatalog":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/CapabilityCatalogEntry"}}},"required":["entries"],"additionalProperties":false},"CapabilityCatalogEntry":{"type":"object","properties":{"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"availability":{"type":"string","enum":["live","beta","upcoming"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"capabilities":{"type":"array","items":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]}},"approvalRequired":{"type":"array","items":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]}},"limited":{"type":"array","items":{"type":"string","enum":["publish","read_insights","manage_comments","send_messages","ads_read","ads_write","ads_spend"]}}},"required":["provider","availability","accountKind","capabilities","approvalRequired","limited"],"additionalProperties":false},"AccountCapabilities":{"type":"object","properties":{"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"enabled":{"type":"boolean"},"publishingReadiness":{"$ref":"#/components/schemas/AccountReadiness"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/AccountCapability"}},"checkedAt":{"type":"string"}},"required":["accountId","profileId","provider","accountKind","enabled","publishingReadiness","capabilities","checkedAt"],"additionalProperties":false},"PublishCapabilities":{"type":"object","properties":{"providers":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCapability"}},"accountKinds":{"type":"array","items":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]}},"media":{"$ref":"#/components/schemas/MediaLimits"},"limits":{"$ref":"#/components/schemas/ApiLimits"}},"required":["providers","accountKinds","media","limits"],"additionalProperties":false},"ProviderCapability":{"type":"object","properties":{"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business"]},"label":{"type":"string"},"availability":{"type":"string","enum":["live","beta","upcoming"]},"accountKinds":{"type":"array","items":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]}},"placements":{"type":"array","items":{"$ref":"#/components/schemas/PlacementCapability"}},"requiredScopes":{"type":"array","items":{"type":"string"}}},"required":["provider","label","availability","accountKinds","placements","requiredScopes"],"additionalProperties":false},"PlacementCapability":{"type":"object","properties":{"placement":{"type":"string","enum":["feed","reel","story","carousel","video","pin"]},"default":{"type":"boolean"},"mediaTypes":{"type":"array","items":{"type":"string","enum":["image","video","document"]}},"maxMedia":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"captionCharacters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["placement","default","mediaTypes","maxMedia","captionCharacters"],"additionalProperties":false},"WorkspaceProfile":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]},"isDefault":{"type":"boolean"},"archived":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","workspaceId","name","externalId","isDefault","archived","createdAt","updatedAt"],"additionalProperties":false},"ProfileList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceProfile"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"InstagramAudio":{"type":"object","properties":{"audioId":{"type":"string"},"audioType":{"type":"string","enum":["music","original_sound"]},"title":{"type":"string"},"durationMs":{"type":"integer","minimum":0,"maximum":9007199254740991},"artist":{"type":"string"},"creator":{"type":"string"},"previewUrl":{"type":"string"},"coverUrl":{"type":"string"},"instagramPreviewUrl":{"type":"string"}},"required":["audioId","audioType","title"],"additionalProperties":false},"InstagramPublishingLimit":{"type":"object","properties":{"used":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0},"windowSeconds":{"type":"integer","maximum":9007199254740991,"exclusiveMinimum":0}},"required":["used","limit","windowSeconds"],"additionalProperties":false},"ProviderAccount":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"connectionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"accountKind":{"type":"string","enum":["social_page","social_account","social_board","social_channel","ad_account"]},"parentAccountId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"name":{"type":"string"},"enabled":{"type":"boolean"},"available":{"type":"boolean"},"details":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","enum":["bluesky"]},"kind":{"type":"string","enum":["account"]},"handle":{"type":"string"},"did":{"type":"string"},"service":{"type":"string"}},"required":["provider","kind","handle","did","service"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["facebook"]},"kind":{"type":"string","enum":["page"]},"tasks":{"type":"array","items":{"type":"string"}}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["instagram"]},"kind":{"type":"string","enum":["professional_account"]},"username":{"type":"string"},"loginMethod":{"type":"string","enum":["instagram_login","facebook_login","unified_login"]},"accountType":{"type":"string","enum":["business","creator"]},"pageId":{"type":"string"},"clientBusinessId":{"type":"string"},"configId":{"type":"string"}},"required":["provider","kind","username"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["linkedin"]},"kind":{"type":"string","enum":["member"]}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["linkedin"]},"kind":{"type":"string","enum":["organization"]}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["pinterest"]},"kind":{"type":"string","enum":["board"]},"username":{"type":"string"}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["reddit"]},"kind":{"type":"string","enum":["account"]},"username":{"type":"string"}},"required":["provider","kind","username"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["tiktok"]},"kind":{"type":"string","enum":["account"]},"username":{"type":"string"},"isBusiness":{"type":"boolean"}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["threads"]},"kind":{"type":"string","enum":["account"]},"username":{"type":"string"}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["x"]},"kind":{"type":"string","enum":["account"]},"username":{"type":"string"}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["youtube"]},"kind":{"type":"string","enum":["channel"]}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["google_business"]},"kind":{"type":"string","enum":["location"]}},"required":["provider","kind"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["meta_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["google_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"managerId":{"type":"string"},"loginCustomerId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["reddit_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["pinterest_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"},"managerId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["tiktok_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["linkedin_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"},"managerId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["snapchat_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"businessId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","enum":["amazon_ads"]},"kind":{"type":"string","enum":["ad_account"]},"externalId":{"type":"string"},"currency":{"type":"string"},"timezone":{"type":"string"},"status":{"type":"string","enum":["active","disabled","pending","closed","unknown"]},"region":{"type":"string","enum":["na","eu","fe"]},"businessId":{"type":"string"},"managerId":{"type":"string"}},"required":["provider","kind","externalId","currency","timezone","status","region"],"additionalProperties":false}]},"readiness":{"$ref":"#/components/schemas/AccountReadiness"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/AccountCapability"}}},"required":["id","profileId","connectionId","provider","accountKind","parentAccountId","name","enabled","available","details","readiness","capabilities"],"additionalProperties":false},"ConnectionStatus":{"anyOf":[{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"status":{"type":"string","enum":["pending","denied","expired"]}},"required":["attemptId","provider","status"],"additionalProperties":false},{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"status":{"type":"string","enum":["connected"]},"accountIds":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}}},"required":["attemptId","provider","status","accountIds"],"additionalProperties":false},{"type":"object","properties":{"attemptId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"provider":{"type":"string","enum":["bluesky","facebook","instagram","linkedin","pinterest","reddit","tiktok","threads","x","youtube","google_business","meta_ads","google_ads","reddit_ads","pinterest_ads","tiktok_ads","linkedin_ads","snapchat_ads","amazon_ads"]},"status":{"type":"string","enum":["failed"]},"reason":{"type":"string","enum":["provider_error","invalid_callback","account_mismatch","connection_changed","connection_failed"]}},"required":["attemptId","provider","status","reason"],"additionalProperties":false}]},"BlueskySessionConnect":{"type":"object","properties":{"handle":{"type":"string"},"appPassword":{"type":"string"},"service":{"type":"string","maxLength":2048},"accountId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"profileId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["handle","appPassword"],"additionalProperties":false},"WebhookEventTypes":{"type":"object","properties":{"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed","webhook.test"]}}},"required":["eventTypes"],"additionalProperties":false},"WebhookDeliveryNotReplayableEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["webhook_delivery_not_replayable"]},"deliveryStatus":{"type":"string","enum":["pending","sending","delivered","failed","cancelled"]},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:webhook-delivery-not-replayable"]},"status":{"type":"number","enum":[409]},"title":{"type":"string","enum":["Webhook delivery not replayable"]}},"required":["code","deliveryStatus","nextAction","type"],"additionalProperties":false},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"endpointId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"eventId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"eventType":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed","webhook.test"]},"status":{"type":"string","enum":["pending","sending","delivered","failed","cancelled"]},"attemptCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"nextAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastAttemptAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastHttpStatus":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastError":{"anyOf":[{"type":"string","enum":["timeout","network","http_status","redirect","destination_rejected","configuration_unavailable","expired","attempts_exhausted"]},{"type":"null"}]},"completedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","workspaceId","endpointId","eventId","eventType","status","attemptCount","createdAt","nextAttemptAt","lastAttemptAt","lastHttpStatus","lastError","completedAt"],"additionalProperties":false},"WebhookDeliveryList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"WebhookTestRateLimitedEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:webhook-test-rate-limited"]},"status":{"type":"number","enum":[429]},"title":{"type":"string","enum":["Webhook test rate limited"]}},"required":["type"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string","enum":["post.delivery.published","post.delivery.provider_draft","post.delivery.failed","post.delivery.unresolved","post.delivery.cancelled","inbox.message.received","inbox.comment.received","inbox.review.received","inbox.mention.received","inbox.message.sent","analytics.post.synced","analytics.account.synced","ads.operation.succeeded","ads.operation.failed","ads.campaign.activated","ads.campaign.paused","ads.budget.changed","ads.kill_switch.activated","schedule.assignment.changed"]},"minItems":1,"maxItems":19},"enabled":{"type":"boolean"},"profileId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"apiVersion":{"anyOf":[{"type":"string","enum":["2026-12-02"]}]},"destinationOrigin":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"deletedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","workspaceId","name","eventTypes","enabled","profileId","apiVersion","destinationOrigin","createdAt","updatedAt","deletedAt"],"additionalProperties":false},"WebhookEndpointList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"ApiKey":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"workspaceId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["read","publish","engage","ads_read","ads_manage"]},"minItems":1,"maxItems":5},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","workspaceId","name","prefix","scopes","createdAt","updatedAt","expiresAt","revokedAt"],"additionalProperties":false},"ApiKeyList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"hasMore":{"type":"boolean"},"nextCursor":{"type":"string","minLength":1,"maxLength":2048,"description":"Opaque cursor from a previous list response. Pass nextCursor verbatim."}},"required":["data","hasMore"],"additionalProperties":false},"InvalidTimezoneEncoded":{"type":"object","properties":{"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","enum":["invalid_timezone"]},"timezone":{"type":"string"},"nextAction":{"type":"string"},"type":{"type":"string","enum":["urn:pubnio:problem:invalid-timezone"]},"status":{"type":"number","enum":[422]},"title":{"type":"string","enum":["Invalid time zone"]}},"required":["code","timezone","nextAction","type"],"additionalProperties":false}},"securitySchemes":{"pubnioBearer":{"description":"Use a WorkOS AuthKit user access token or a workspace API key. Key management requires a signed-in workspace owner.","type":"http","scheme":"Bearer"}}},"security":[],"tags":[{"name":"profile"},{"name":"workspaces"},{"name":"apiKeys","description":"Manage workspace API keys as a signed-in workspace owner. API keys cannot manage keys."},{"name":"webhooks","description":"Manage outbound publishing webhooks as a signed-in workspace owner."},{"name":"integrations"},{"name":"profiles","description":"Group provider accounts into brands or customers. Owners manage profiles; workspace members can read them."},{"name":"capabilities"},{"name":"limits"},{"name":"media"},{"name":"queues","description":"Manage one weekly publishing queue per connected account. Read with any workspace actor; configure with an owner or a publish key."},{"name":"schedule","description":"Read the workspace publishing calendar and change one destination's queue assignment or explicit time."},{"name":"analytics","description":"Organic post analytics are attempt-scoped snapshots of what PubNio published. Unsupported or missing metrics are null with an availability state, never zero. Reads return stored observations and never call a provider."},{"name":"inbox","description":"Read stored inbox conversations, messages, comment threads, comments, and mentions. Reads never call a provider. Replies require an Idempotency-Key and are recorded as one provider call."},{"name":"comments","description":"Write one outbound comment or reply on an existing provider post or comment. This path never needs a stored inbound comment."},{"name":"posts"},{"name":"ads","description":"Ad accounts, provider-native campaigns, ad groups, creatives, daily insights, spend policy, operations, Meta Facebook Page boosts, and the kill switch. Reads return stored rows and never call a provider. Boost creation always writes every level PAUSED; activation is a separate owner-only operation that requires a monthly cap and the activate_spend confirmation."},{"name":"audit","description":"Read workspace security and administration audit logs. Requires a signed-in workspace owner."},{"name":"notifications","description":"Manage personal email notification preferences for a workspace. Requires a signed-in workspace member or owner."},{"name":"workspaces","description":"Manage workspace members, roles, and pending email invitations. Requires a signed-in human actor."},{"name":"me","description":"List, accept, or decline pending workspace invitations addressed to the signed-in user's verified email."},{"name":"audit","description":"Public static catalog of audit actions, target kinds, and retention windows."}],"servers":[{"url":"/"}]}