{"openapi":"3.1.0","info":{"title":"SocialQueue Studio API","version":"1"},"servers":[{"url":"https://api.socialqueue.ai"}],"paths":{"/studio/v1/accounts":{"get":{"operationId":"listAccounts","summary":"List accounts in Studio","description":"Page through the connected accounts that currently have a Studio seat.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/accounts\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Accounts"],"security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 100. Defaults to 100.","default":"100","type":"string","pattern":"^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Connection"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}":{"get":{"operationId":"getAccount","summary":"Read a Studio account","description":"Read the stored profile and authorization status of an account currently in Studio.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/accounts/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Accounts"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}/check":{"post":{"operationId":"checkAccount","summary":"Refresh a Studio account profile","description":"Ask the platform for a fresh profile and update the stored connection.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/accounts/$ID/check\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Accounts"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"needs_reauth","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}/avatar":{"get":{"operationId":"getAvatar","summary":"Read a signed Studio account picture","description":"Use the signed avatarUrl within one hour while the account remains in Studio.","x-curl":"curl -fsS -X GET \"$AVATAR_URL\"","tags":["Accounts"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"exp","in":"query","required":true,"schema":{"type":"string"}},{"name":"sig","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"image/gif":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}/tiktok-creator":{"get":{"operationId":"getTikTokCreator","summary":"Read current TikTok creator options","description":"Read audience options, interaction restrictions and the video duration limit for the selected creator.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/accounts/$ID/tiktok-creator\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Accounts"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","const":"cant_post"},"message":{"type":"string"}},"required":["status","message"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"ok"},"creator":{"type":"object","properties":{"nickname":{"type":["string","null"]},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"privacyLevelOptions":{"type":"array","items":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]}},"commentDisabled":{"type":"boolean"},"duetDisabled":{"type":"boolean"},"stitchDisabled":{"type":"boolean"},"maxVideoPostDurationSec":{"type":["number","null"]}},"required":["nickname","username","avatarUrl","privacyLevelOptions","commentDisabled","duetDisabled","stitchDisabled","maxVideoPostDurationSec"],"additionalProperties":false}},"required":["status","creator"],"additionalProperties":false}]}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}/analytics":{"get":{"operationId":"getAnalytics","summary":"Read Studio account metrics","description":"Read stored or fresh profile metrics. Set refresh=true to request a fresh result.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/accounts/$ID/analytics\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Analytics"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"refresh","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"followers":{"type":["number","null"]},"following":{"type":["number","null"]},"likes":{"type":["number","null"]},"postsCount":{"type":["number","null"]},"fetchedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["followers","following","likes","postsCount","fetchedAt"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"needs_reauth","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/accounts/{id}/analytics/posts":{"get":{"operationId":"listAnalyticsPosts","summary":"List platform posts and metrics","description":"Read platform posts with their metrics. Pass nextCursor as cursor to continue.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/accounts/$ID/analytics/posts\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Analytics"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"refresh","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 20. Defaults to 20.","default":"20","type":"string","pattern":"^(?:0?[1-9]|1[0-9]|20)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"caption":{"type":["string","null"]},"permalink":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"views":{"type":["number","null"]},"likes":{"type":["number","null"]},"comments":{"type":["number","null"]},"shares":{"type":["number","null"]},"saves":{"type":["number","null"]},"reach":{"type":["number","null"]}},"required":["id","caption","permalink","thumbnailUrl","publishedAt","views","likes","comments","shares","saves","reach"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]},"fetchedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["data","nextCursor","fetchedAt"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"needs_reauth","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/media/imports":{"post":{"operationId":"importMedia","summary":"Import media from a URL","description":"Start a workspace import from a public HTTPS URL. Poll the returned media ID for its result.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/media/imports\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"url\":\"https://files.example/photo.jpg\"}'","tags":["Media"],"security":[{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000}},"required":["url"],"additionalProperties":false},"example":{"url":"https://files.example/photo.jpg"}}}},"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/media/uploads":{"post":{"operationId":"startUpload","summary":"Start a multipart upload","description":"Reserve a workspace file and get a signed PUT URL for each part in order.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/media/uploads\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"fileName\":\"photo.jpg\",\"contentType\":\"image/jpeg\",\"sizeBytes\":12000}'","tags":["Media"],"security":[{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1,"maxLength":200},"contentType":{"type":"string","maxLength":100},"sizeBytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["fileName","contentType","sizeBytes"],"additionalProperties":false},"example":{"fileName":"photo.jpg","contentType":"image/jpeg","sizeBytes":12000}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"mediaId":{"type":"string"},"partBytes":{"type":"number"},"partCount":{"type":"number"},"partUrls":{"type":"array","items":{"type":"string","format":"uri"}}},"required":["mediaId","partBytes","partCount","partUrls"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/media/{id}/complete":{"post":{"operationId":"completeUpload","summary":"Complete a multipart upload","description":"Send all part receipts to assemble the file and read its measured facts.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/media/$ID/complete\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"parts\":[{\"partNumber\":1,\"etag\":\"PART_ETAG\"}]}'","tags":["Media"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"minItems":1,"type":"array","items":{"type":"object","properties":{"partNumber":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"etag":{"type":"string","minLength":1}},"required":["partNumber","etag"],"additionalProperties":false}}},"required":["parts"],"additionalProperties":false},"example":{"parts":[{"partNumber":1,"etag":"PART_ETAG"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/media/{id}/abort":{"post":{"operationId":"abortUpload","summary":"Abort a multipart upload","description":"Stop a pending workspace upload and release its parts.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/media/$ID/abort\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Media"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/media/{id}":{"get":{"operationId":"getMedia","summary":"Read workspace media facts","description":"Read the file status, measured facts and any import error for a workspace file.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/media/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Media"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/uploads/{mediaId}/parts/{n}":{"put":{"operationId":"uploadPart","summary":"Send one signed Studio upload part","description":"PUT exactly one part to its signed URL and keep the JSON receipt for completion.","x-curl":"curl -fsS -X PUT \"$PART_URL\" \\\n  --data-binary @part.bin","tags":["Media"],"security":[],"parameters":[{"name":"mediaId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"exp","in":"query","required":true,"schema":{"type":"string"}},{"name":"sig","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"partNumber":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"etag":{"type":"string","minLength":1}},"required":["partNumber","etag"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/posts":{"post":{"operationId":"createPost","summary":"Publish or schedule a Studio post","description":"Submit ordered workspace media and target accounts. Reuse the same idempotency key and body for retries.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/posts\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  -H \"Idempotency-Key: $POST_KEY\" \\\n  --json '{\"caption\":\"First photo\",\"mediaIds\":[\"MEDIA_ID\"],\"targets\":[{\"connectionId\":\"CONNECTION_ID\"}]}'","tags":["Posts"],"security":[{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"caption":{"type":"string","maxLength":2200},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"mediaIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"targets":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","minLength":1},"settings":{"anyOf":[{"type":"object","properties":{"privacyLevel":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"disableComment":{"default":true,"type":"boolean"},"disableDuet":{"default":true,"type":"boolean"},"disableStitch":{"default":true,"type":"boolean"},"brandContentToggle":{"default":false,"type":"boolean"},"brandOrganicToggle":{"default":false,"type":"boolean"},"title":{"type":"string","maxLength":90}},"required":["privacyLevel"],"additionalProperties":false,"description":"TikTok target settings. Choose a privacy level offered by the creator."},{"type":"object","properties":{},"additionalProperties":false,"description":"Instagram and Facebook Page targets take no settings fields."}]}},"required":["connectionId"],"additionalProperties":false}}},"required":["caption","mediaIds","targets"],"additionalProperties":false},"example":{"caption":"First photo","mediaIds":["MEDIA_ID"],"targets":[{"connectionId":"CONNECTION_ID"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"operationId":"listPosts","summary":"List Studio posts","description":"Page through posts created in Studio. Filter by job status or connection ID.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/posts\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Posts"],"security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 100. Defaults to 100.","default":"100","type":"string","pattern":"^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","pending","submitting","processing","published","failed","uncertain","cancelled"]}},{"name":"connectionId","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Post"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/posts/validate":{"post":{"operationId":"validatePost","summary":"Validate a Studio post","description":"Check the proposed media, schedule and account settings before you submit a post.","x-key-access":"read or full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/posts/validate\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"caption\":\"First photo\",\"mediaIds\":[\"MEDIA_ID\"],\"targets\":[{\"connectionId\":\"CONNECTION_ID\"}]}'","tags":["Posts"],"security":[{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"caption":{"type":"string","maxLength":2200},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"mediaIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1}},"targets":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","minLength":1},"settings":{"anyOf":[{"type":"object","properties":{"privacyLevel":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},"disableComment":{"default":true,"type":"boolean"},"disableDuet":{"default":true,"type":"boolean"},"disableStitch":{"default":true,"type":"boolean"},"brandContentToggle":{"default":false,"type":"boolean"},"brandOrganicToggle":{"default":false,"type":"boolean"},"title":{"type":"string","maxLength":90}},"required":["privacyLevel"],"additionalProperties":false,"description":"TikTok target settings. Choose a privacy level offered by the creator."},{"type":"object","properties":{},"additionalProperties":false,"description":"Instagram and Facebook Page targets take no settings fields."}]}},"required":["connectionId"],"additionalProperties":false}}},"required":["caption","mediaIds","targets"],"additionalProperties":false},"example":{"caption":"First photo","mediaIds":["MEDIA_ID"],"targets":[{"connectionId":"CONNECTION_ID"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"valid":{"type":"boolean","const":true}},"required":["valid"],"additionalProperties":false},{"type":"object","properties":{"valid":{"type":"boolean","const":false},"problems":{"type":"array","items":{"type":"string"}}},"required":["valid","problems"],"additionalProperties":false}]}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/posts/{id}":{"get":{"operationId":"getPost","summary":"Read a Studio post and its jobs","description":"Check each target job for its status, platform result or error.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/posts/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Posts"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/posts/{id}/cancel":{"post":{"operationId":"cancelPost","summary":"Cancel a scheduled Studio post","description":"Cancel the scheduled jobs that have yet to start publishing.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/posts/$ID/cancel\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Posts"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/events":{"get":{"operationId":"listEvents","summary":"List Studio workspace events","description":"Read recent Studio changes. Save nextCursor after processing a page and pass it to your next request.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/events\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Events"],"security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 100. Defaults to 100.","default":"100","type":"string","pattern":"^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,18})$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"media.ready"},"data":{"type":"object","properties":{"mediaId":{"type":"string"},"status":{"type":"string","const":"ready"}},"required":["mediaId","status"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"media.failed"},"data":{"type":"object","properties":{"mediaId":{"type":"string"},"status":{"type":"string","const":"failed"},"errorCode":{"type":"string"}},"required":["mediaId","status","errorCode"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"post.published"},"data":{"type":"object","properties":{"postId":{"type":"string"},"jobId":{"type":"string"},"connectionId":{"type":"string"},"status":{"type":"string","const":"published"},"errorCode":{"type":["string","null"]}},"required":["postId","jobId","connectionId","status","errorCode"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"post.failed"},"data":{"type":"object","properties":{"postId":{"type":"string"},"jobId":{"type":"string"},"connectionId":{"type":"string"},"status":{"type":"string","const":"failed"},"errorCode":{"type":["string","null"]}},"required":["postId","jobId","connectionId","status","errorCode"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"post.uncertain"},"data":{"type":"object","properties":{"postId":{"type":"string"},"jobId":{"type":"string"},"connectionId":{"type":"string"},"status":{"type":"string","const":"uncertain"},"errorCode":{"type":["string","null"]}},"required":["postId","jobId","connectionId","status","errorCode"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"post.cancelled"},"data":{"type":"object","properties":{"postId":{"type":"string"},"jobId":{"type":"string"},"connectionId":{"type":"string"},"status":{"type":"string","const":"cancelled"},"errorCode":{"type":["string","null"]}},"required":["postId","jobId","connectionId","status","errorCode"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"connection.needs_reauth"},"data":{"type":"object","properties":{"connectionId":{"type":"string"},"status":{"type":"string","const":"needs_reauth"}},"required":["connectionId","status"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"connection.active"},"data":{"type":"object","properties":{"connectionId":{"type":"string"},"status":{"type":"string","const":"active"}},"required":["connectionId","status"],"additionalProperties":false},"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["type","data","id","createdAt"],"additionalProperties":false}]}},"nextCursor":{"type":"string"}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/replies/rules":{"get":{"operationId":"listReplyRules","summary":"List Auto reply rules","description":"List rules for Instagram accounts currently in Studio. Set account to filter by connection ID and pass nextCursor as cursor.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/replies/rules\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 100. Defaults to 100.","default":"100","type":"string","pattern":"^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"account","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string","enum":["all_posts","post"]},"mediaId":{"anyOf":[{"type":"string","pattern":"^\\d{1,40}$"},{"type":"null"}]},"trigger":{"type":"string","enum":["keywords","any_comment"]},"keywords":{"type":"array","items":{"type":"string"}},"publicReplies":{"type":"array","items":{"type":"string"}},"dmText":{"type":["string","null"]},"linkUrl":{"type":["string","null"]},"status":{"type":"string","enum":["active","paused"]},"dmMode":{"type":"string","enum":["text","button"]},"dmButtonLabel":{"type":["string","null"]},"linkDmText":{"type":["string","null"]},"linkButtonLabel":{"type":["string","null"]}},"required":["id","connectionId","target","mediaId","trigger","keywords","publicReplies","dmText","linkUrl","status","dmMode","dmButtonLabel","linkDmText","linkButtonLabel"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"createReplyRule","summary":"Create an Auto reply rule","description":"A full key can activate a rule for an Instagram account in Studio with replies enabled.","x-key-access":"full","x-curl":"curl -fsS -X POST \"https://api.socialqueue.ai/studio/v1/replies/rules\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"trigger\":\"keywords\",\"keywords\":[\"recipe\"],\"publicReplies\":[\"I sent it!\"],\"dmText\":\"Here is the recipe.\",\"linkUrl\":\"https://example.test/recipes\",\"dmMode\":\"text\",\"dmButtonLabel\":null,\"linkDmText\":null,\"linkButtonLabel\":null,\"connectionId\":\"ca9e2159-9f44-4ce3-8b8d-84183507d210\",\"target\":\"all_posts\",\"mediaId\":null}'","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"trigger":{"type":"string","enum":["keywords","any_comment"]},"keywords":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"publicReplies":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"dmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":900},{"type":"null"}]},"linkUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"dmMode":{"default":"text","type":"string","enum":["text","button"]},"dmButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"linkDmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":640},{"type":"null"}]},"linkButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string","const":"all_posts"},"mediaId":{"type":"null"}},"required":["trigger","keywords","publicReplies","connectionId","target","mediaId"],"additionalProperties":false},{"type":"object","properties":{"trigger":{"type":"string","enum":["keywords","any_comment"]},"keywords":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"publicReplies":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"dmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":900},{"type":"null"}]},"linkUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"dmMode":{"default":"text","type":"string","enum":["text","button"]},"dmButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"linkDmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":640},{"type":"null"}]},"linkButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string","const":"post"},"mediaId":{"type":"string","pattern":"^\\d{1,40}$"}},"required":["trigger","keywords","publicReplies","connectionId","target","mediaId"],"additionalProperties":false}]},"example":{"connectionId":"ca9e2159-9f44-4ce3-8b8d-84183507d210","target":"all_posts","mediaId":null,"trigger":"keywords","keywords":["recipe"],"publicReplies":["I sent it!"],"dmText":"Here is the recipe.","linkUrl":"https://example.test/recipes"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/replies/rules/{id}":{"get":{"operationId":"getReplyRule","summary":"Read an Auto reply rule","description":"Read the configured rule for a current Studio account in this workspace.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/replies/rules/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string","enum":["all_posts","post"]},"mediaId":{"anyOf":[{"type":"string","pattern":"^\\d{1,40}$"},{"type":"null"}]},"trigger":{"type":"string","enum":["keywords","any_comment"]},"keywords":{"type":"array","items":{"type":"string"}},"publicReplies":{"type":"array","items":{"type":"string"}},"dmText":{"type":["string","null"]},"linkUrl":{"type":["string","null"]},"status":{"type":"string","enum":["active","paused"]},"dmMode":{"type":"string","enum":["text","button"]},"dmButtonLabel":{"type":["string","null"]},"linkDmText":{"type":["string","null"]},"linkButtonLabel":{"type":["string","null"]}},"required":["id","connectionId","target","mediaId","trigger","keywords","publicReplies","dmText","linkUrl","status","dmMode","dmButtonLabel","linkDmText","linkButtonLabel"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"patch":{"operationId":"updateReplyRule","summary":"Update an Auto reply rule","description":"A full key can pause or resume with status alone, or replace the rule’s matching and message fields.","x-key-access":"full","x-curl":"curl -fsS -X PATCH \"https://api.socialqueue.ai/studio/v1/replies/rules/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\" \\\n  --json '{\"status\":\"paused\"}'","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["active","paused"]}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"trigger":{"type":"string","enum":["keywords","any_comment"]},"keywords":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"publicReplies":{"maxItems":3,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"dmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":900},{"type":"null"}]},"linkUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"dmMode":{"default":"text","type":"string","enum":["text","button"]},"dmButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]},"linkDmText":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":640},{"type":"null"}]},"linkButtonLabel":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}]}},"required":["trigger","keywords","publicReplies"],"additionalProperties":false}]},"example":{"status":"paused"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"payload_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"deleteReplyRule","summary":"Delete an Auto reply rule","description":"A full key can delete this rule and its Activity.","x-key-access":"full","x-curl":"curl -fsS -X DELETE \"https://api.socialqueue.ai/studio/v1/replies/rules/$ID\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/replies/activity":{"get":{"operationId":"listReplyActivity","summary":"List Auto reply Activity","description":"Read up to 30 days of matched comments and outcomes for accounts currently in Studio. Filter by account, rule or outcome.","x-key-access":"read or full","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/replies/activity\" \\\n  -H \"Authorization: Bearer $STUDIO_API_KEY\"","tags":["Auto replies"],"security":[{"bearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"description":"A decimal integer from 1 to 100. Defaults to 100.","default":"100","type":"string","pattern":"^(?:0{0,2}[1-9]|0?[1-9][0-9]|100)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,15}:[0-9a-f-]{36}$"}},{"name":"account","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"rule","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","enum":["sent","sent_as_text","waiting","failed","uncertain"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"commentText":{"type":"string"},"commenterUsername":{"type":["string","null"]},"receivedAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"replyState":{"type":"string","enum":["none","calling","sent","failed","uncertain"]},"failureCode":{"type":["string","null"]},"dmState":{"anyOf":[{"type":"string","enum":["none","calling","sent","failed","uncertain"]},{"type":"null"}]},"dmFailureCode":{"type":["string","null"]},"waitUntil":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"tappedAt":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"linkState":{"anyOf":[{"type":"string","enum":["none","calling","sent","failed","uncertain"]},{"type":"null"}]},"linkFailureCode":{"type":["string","null"]}},"required":["id","ruleId","connectionId","commentText","commenterUsername","receivedAt","replyState","failureCode","dmState","dmFailureCode","waitUntil","tappedAt","linkState","linkFailureCode"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"unauthorized or wrong_product_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/studio/v1/openapi.json":{"get":{"operationId":"getOpenApi","summary":"Read the Studio API specification","description":"Download the public OpenAPI 3.1 document for the Studio API.","x-curl":"curl -fsS -X GET \"https://api.socialqueue.ai/studio/v1/openapi.json\"","tags":["Reference"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"openapi":{"type":"string","const":"3.1.0"},"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"}},"required":["title","version"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"paths":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"components":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["openapi","info","servers","paths","components"],"additionalProperties":false}}}},"400":{"description":"invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"internal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Connection":{"type":"object","properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["tiktok","instagram","facebook_page"]},"username":{"type":"string"},"displayName":{"type":"string"},"status":{"type":"string","enum":["active","needs_reauth","revoked","disconnected"]},"scopes":{"type":"array","items":{"type":"string"}},"accessExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"refreshExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"connectedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"avatarUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["id","platform","username","displayName","status","scopes","accessExpiresAt","refreshExpiresAt","connectedAt","avatarUrl"],"additionalProperties":false},"ApiError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_input","invalid_code","invalid_verifier","unauthorized","wrong_product_key","payment_required","insufficient_scope","method_not_allowed","payload_too_large","forbidden","not_found","conflict","gone","internal","unavailable","needs_reauth","rate_limited"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Media":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["video","image"]},"contentType":{"type":"string"},"sizeBytes":{"type":"number"},"errorCode":{"type":"string"},"fileName":{"type":"string"},"durationMs":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"width":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"height":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["pending","ready","failed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","kind","contentType","sizeBytes","fileName","durationMs","width","height","status","createdAt"],"additionalProperties":false},"Post":{"type":"object","properties":{"id":{"type":"string","minLength":1},"caption":{"type":"string"},"scheduledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["video","image"]},"fileName":{"type":"string"}},"required":["id","kind","fileName"],"additionalProperties":false}},"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"connectionId":{"type":"string","minLength":1},"platform":{"type":"string","enum":["tiktok","instagram","facebook_page"]},"status":{"type":"string","enum":["scheduled","pending","submitting","processing","published","failed","uncertain","cancelled"]},"platformPostId":{"type":["string","null"]},"permalink":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"errorMessage":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","connectionId","platform","status","platformPostId","permalink","errorCode","errorMessage","createdAt","finishedAt"],"additionalProperties":false}}},"required":["id","caption","scheduledAt","createdAt","media","jobs"],"additionalProperties":false}}}}