Studio API reference

Find the request, permissions, and response for each operation. Expand a method to see its curl example.

Download OpenAPI 3.1

Accounts

List accounts in StudioGET /studio/v1/accounts

Page through the connected accounts that currently have a Studio seat.

Key · read or full

Parameters

limit · query · optional
{"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)$"}
cursor · query · optional
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/accounts" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Connection"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ],
  "additionalProperties": false
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read a Studio accountGET /studio/v1/accounts/{id}

Read the stored profile and authorization status of an account currently in Studio.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/accounts/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Connection"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Refresh a Studio account profilePOST /studio/v1/accounts/{id}/check

Ask the platform for a fresh profile and update the stored connection.

Key · full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/accounts/$ID/check" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Connection"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · needs_reauth
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
503 · unavailable
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read a signed Studio account pictureGET /studio/v1/accounts/{id}/avatar

Use the signed avatarUrl within one hour while the account remains in Studio.

Key · No bearer key

Parameters

id · path · required
{"type":"string","minLength":1}
exp · query · required
{"type":"string"}
sig · query · required
{"type":"string"}

Example request

curl -fsS -X GET "$AVATAR_URL"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read current TikTok creator optionsGET /studio/v1/accounts/{id}/tiktok-creator

Read audience options, interaction restrictions and the video duration limit for the selected creator.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/accounts/$ID/tiktok-creator" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
503 · unavailable
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Analytics

Read Studio account metricsGET /studio/v1/accounts/{id}/analytics

Read stored or fresh profile metrics. Set refresh=true to request a fresh result.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}
refresh · query · optional
{"type":"string","enum":["true","false"]}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/accounts/$ID/analytics" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · needs_reauth
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
503 · unavailable
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
List platform posts and metricsGET /studio/v1/accounts/{id}/analytics/posts

Read platform posts with their metrics. Pass nextCursor as cursor to continue.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}
refresh · query · optional
{"type":"string","enum":["true","false"]}
cursor · query · optional
{"type":"string","minLength":1}
limit · query · optional
{"description":"A decimal integer from 1 to 20. Defaults to 20.","default":"20","type":"string","pattern":"^(?:0?[1-9]|1[0-9]|20)$"}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/accounts/$ID/analytics/posts" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · needs_reauth
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
503 · unavailable
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Auto replies

List Auto reply rulesGET /studio/v1/replies/rules

List rules for Instagram accounts currently in Studio. Set account to filter by connection ID and pass nextCursor as cursor.

Key · read or full

Parameters

limit · query · optional
{"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)$"}
cursor · query · optional
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
account · query · optional
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/replies/rules" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Create an Auto reply rulePOST /studio/v1/replies/rules

A full key can activate a rule for an Instagram account in Studio with replies enabled.

Key · full

Request body

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 request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/replies/rules" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --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}'

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read an Auto reply ruleGET /studio/v1/replies/rules/{id}

Read the configured rule for a current Studio account in this workspace.

Key · read or full

Parameters

id · path · required
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/replies/rules/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Update an Auto reply rulePATCH /studio/v1/replies/rules/{id}

A full key can pause or resume with status alone, or replace the rule’s matching and message fields.

Key · full

Parameters

id · path · required
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}

Request body

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 request

curl -fsS -X PATCH "https://api.socialqueue.ai/studio/v1/replies/rules/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --json '{"status":"paused"}'

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Delete an Auto reply ruleDELETE /studio/v1/replies/rules/{id}

A full key can delete this rule and its Activity.

Key · full

Parameters

id · path · required
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}

Example request

curl -fsS -X DELETE "https://api.socialqueue.ai/studio/v1/replies/rules/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
List Auto reply ActivityGET /studio/v1/replies/activity

Read up to 30 days of matched comments and outcomes for accounts currently in Studio. Filter by account, rule or outcome.

Key · read or full

Parameters

limit · query · optional
{"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)$"}
cursor · query · optional
{"type":"string","pattern":"^\\d{1,15}:[0-9a-f-]{36}$"}
account · query · optional
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
rule · query · optional
{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
outcome · query · optional
{"type":"string","enum":["sent","sent_as_text","waiting","failed","uncertain"]}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/replies/activity" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Events

List Studio workspace eventsGET /studio/v1/events

Read recent Studio changes. Save nextCursor after processing a page and pass it to your next request.

Key · read or full

Parameters

limit · query · optional
{"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)$"}
cursor · query · optional
{"type":"string","pattern":"^(0|[1-9][0-9]{0,18})$"}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/events" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Media

Import media from a URLPOST /studio/v1/media/imports

Start a workspace import from a public HTTPS URL. Poll the returned media ID for its result.

Key · full

Request body

application/json schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Example request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/media/imports" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --json '{"url":"https://files.example/photo.jpg"}'

Responses

202 · Success
application/json schema
{
  "$ref": "#/components/schemas/Media"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
503 · unavailable
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Start a multipart uploadPOST /studio/v1/media/uploads

Reserve a workspace file and get a signed PUT URL for each part in order.

Key · full

Request body

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 request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/media/uploads" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --json '{"fileName":"photo.jpg","contentType":"image/jpeg","sizeBytes":12000}'

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Complete a multipart uploadPOST /studio/v1/media/{id}/complete

Send all part receipts to assemble the file and read its measured facts.

Key · full

Parameters

id · path · required
{"type":"string","minLength":1}

Request body

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 request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/media/$ID/complete" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --json '{"parts":[{"partNumber":1,"etag":"PART_ETAG"}]}'

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Media"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Abort a multipart uploadPOST /studio/v1/media/{id}/abort

Stop a pending workspace upload and release its parts.

Key · full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/media/$ID/abort" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": false
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read workspace media factsGET /studio/v1/media/{id}

Read the file status, measured facts and any import error for a workspace file.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/media/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Media"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Send one signed Studio upload partPUT /studio/v1/uploads/{mediaId}/parts/{n}

PUT exactly one part to its signed URL and keep the JSON receipt for completion.

Key · No bearer key

Parameters

mediaId · path · required
{"type":"string","minLength":1}
n · path · required
{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}
exp · query · required
{"type":"string"}
sig · query · required
{"type":"string"}

Request body

application/octet-stream schema
{
  "type": "string",
  "format": "binary"
}

Example request

curl -fsS -X PUT "$PART_URL" \
  --data-binary @part.bin

Responses

200 · Success
application/json schema
{
  "type": "object",
  "properties": {
    "partNumber": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "etag": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "partNumber",
    "etag"
  ],
  "additionalProperties": false
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Posts

Publish or schedule a Studio postPOST /studio/v1/posts

Submit ordered workspace media and target accounts. Reuse the same idempotency key and body for retries.

Key · full

Parameters

Idempotency-Key · header · required
{"type":"string","minLength":1,"maxLength":255}

Request body

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 request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/posts" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  -H "Idempotency-Key: $POST_KEY" \
  --json '{"caption":"First photo","mediaIds":["MEDIA_ID"],"targets":[{"connectionId":"CONNECTION_ID"}]}'

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Post"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
List Studio postsGET /studio/v1/posts

Page through posts created in Studio. Filter by job status or connection ID.

Key · read or full

Parameters

limit · query · optional
{"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)$"}
cursor · query · optional
{"type":"string","minLength":1}
status · query · optional
{"type":"string","enum":["scheduled","pending","submitting","processing","published","failed","uncertain","cancelled"]}
connectionId · query · optional
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/posts" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Post"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ],
  "additionalProperties": false
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Validate a Studio postPOST /studio/v1/posts/validate

Check the proposed media, schedule and account settings before you submit a post.

Key · read or full

Request body

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 request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/posts/validate" \
  -H "Authorization: Bearer $STUDIO_API_KEY" \
  --json '{"caption":"First photo","mediaIds":["MEDIA_ID"],"targets":[{"connectionId":"CONNECTION_ID"}]}'

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
413 · payload_too_large
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Read a Studio post and its jobsGET /studio/v1/posts/{id}

Check each target job for its status, platform result or error.

Key · read or full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/posts/$ID" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Post"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
Cancel a scheduled Studio postPOST /studio/v1/posts/{id}/cancel

Cancel the scheduled jobs that have yet to start publishing.

Key · full

Parameters

id · path · required
{"type":"string","minLength":1}

Example request

curl -fsS -X POST "https://api.socialqueue.ai/studio/v1/posts/$ID/cancel" \
  -H "Authorization: Bearer $STUDIO_API_KEY"

Responses

200 · Success
application/json schema
{
  "$ref": "#/components/schemas/Post"
}
400 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
401 · unauthorized or wrong_product_key
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
403 · forbidden
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
404 · not_found
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
409 · conflict
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
429 · rate_limited
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Reference

Read the Studio API specificationGET /studio/v1/openapi.json

Download the public OpenAPI 3.1 document for the Studio API.

Key · No bearer key

Example request

curl -fsS -X GET "https://api.socialqueue.ai/studio/v1/openapi.json"

Responses

200 · Success
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 · invalid_input
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}
500 · internal
application/json schema
{
  "$ref": "#/components/schemas/ApiError"
}

Named 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
}