Skip to content
Docs menu

API reference

Browse the REST endpoints, request fields, and response schemas.

On this page

OpenAPI 3.1

Download the spec for your HTTP client or code generator. Workspace operations use a Bearer API key. See authentication for key roles.

Download openapi.json

Inbox

GET /api/v1/inbox/comments

List inbox comments

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
platformqueryNo{"type":"string","enum":["instagram","facebook","youtube","tiktok","fake","bluesky","threads","linkedin","x","pinterest","google_business_profile","mastodon","telegram","discord","slack","tumblr"]}
accountIdqueryNo{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
unreadqueryNo{"type":"boolean"}
needsReplyqueryNo{"type":"boolean"}
donequeryNo{"type":"boolean"}
limitqueryNo{"default":30,"type":"integer","minimum":1,"maximum":100}
cursorqueryNo{"type":"string","maxLength":200}

Responses

200 Inbox comments and pagination cursor.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "targetId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "externalId": {
            "type": "string"
          },
          "externalPostId": {
            "type": "string"
          },
          "parentExternalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "author": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "postedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "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))$"
          },
          "readAt": {
            "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"
              }
            ]
          },
          "doneAt": {
            "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"
              }
            ]
          },
          "repliedAt": {
            "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"
              }
            ]
          },
          "moderation": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "hidden",
                  "deleted"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "assigneeId": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "handle": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "accountId",
          "targetId",
          "externalId",
          "externalPostId",
          "parentExternalId",
          "author",
          "body",
          "postedAt",
          "createdAt",
          "readAt",
          "doneAt",
          "repliedAt",
          "moderation",
          "assigneeId",
          "platform",
          "handle"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "comments",
    "nextCursor"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/inbox/comments/{id}

Read a comment and its conversation

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Inbox comment ID."}

Responses

200 Comment, conversation, and reply capabilities.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "comment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "accountId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "targetId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "externalId": {
          "type": "string"
        },
        "externalPostId": {
          "type": "string"
        },
        "parentExternalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "author": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "postedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "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))$"
        },
        "readAt": {
          "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"
            }
          ]
        },
        "doneAt": {
          "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"
            }
          ]
        },
        "repliedAt": {
          "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"
            }
          ]
        },
        "moderation": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "hidden",
                "deleted"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "assigneeId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "accountId",
        "targetId",
        "externalId",
        "externalPostId",
        "parentExternalId",
        "author",
        "body",
        "postedAt",
        "createdAt",
        "readAt",
        "doneAt",
        "repliedAt",
        "moderation",
        "assigneeId"
      ],
      "additionalProperties": false
    },
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "targetId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "externalId": {
            "type": "string"
          },
          "externalPostId": {
            "type": "string"
          },
          "parentExternalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "author": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "postedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "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))$"
          },
          "readAt": {
            "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"
              }
            ]
          },
          "doneAt": {
            "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"
              }
            ]
          },
          "repliedAt": {
            "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"
              }
            ]
          },
          "moderation": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "hidden",
                  "deleted"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "assigneeId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "workspaceId",
          "accountId",
          "targetId",
          "externalId",
          "externalPostId",
          "parentExternalId",
          "author",
          "body",
          "postedAt",
          "createdAt",
          "readAt",
          "doneAt",
          "repliedAt",
          "moderation",
          "assigneeId"
        ],
        "additionalProperties": false
      }
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "youtube",
        "tiktok",
        "fake",
        "bluesky",
        "threads",
        "linkedin",
        "x",
        "pinterest",
        "google_business_profile",
        "mastodon",
        "telegram",
        "discord",
        "slack",
        "tumblr"
      ]
    },
    "handle": {
      "type": "string"
    },
    "replies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "commentId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "text": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "sending",
              "sent",
              "failed",
              "retryable",
              "unknown"
            ]
          },
          "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": [
          "commentId",
          "text",
          "status",
          "createdAt"
        ],
        "additionalProperties": false
      }
    },
    "postUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "canReply": {
      "type": "boolean"
    },
    "canHide": {
      "type": "boolean"
    },
    "canDelete": {
      "type": "boolean"
    }
  },
  "required": [
    "comment",
    "comments",
    "platform",
    "handle",
    "replies",
    "postUrl",
    "canReply",
    "canHide",
    "canDelete"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/inbox/comments/{id}

Mark a comment read or done, or assign it

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Inbox comment ID."}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "read": {
      "type": "boolean"
    },
    "done": {
      "type": "boolean"
    },
    "assigneeId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Responses

200 Updated comment.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "comment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "accountId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "targetId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "externalId": {
          "type": "string"
        },
        "externalPostId": {
          "type": "string"
        },
        "parentExternalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "author": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "postedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "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))$"
        },
        "readAt": {
          "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"
            }
          ]
        },
        "doneAt": {
          "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"
            }
          ]
        },
        "repliedAt": {
          "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"
            }
          ]
        },
        "moderation": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "hidden",
                "deleted"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "assigneeId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "accountId",
        "targetId",
        "externalId",
        "externalPostId",
        "parentExternalId",
        "author",
        "body",
        "postedAt",
        "createdAt",
        "readAt",
        "doneAt",
        "repliedAt",
        "moderation",
        "assigneeId"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "comment"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/inbox/comments/{id}/reply

Send a public reply

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Inbox comment ID."}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000
    },
    "idempotencyKey": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-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": [
    "text",
    "idempotencyKey"
  ]
}

Responses

200 Reply sent.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "reply": {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "commentId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "idempotencyKey": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "body": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "sending",
            "sent",
            "failed",
            "retryable",
            "unknown"
          ]
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "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))$"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "workspaceId",
        "commentId",
        "idempotencyKey",
        "body",
        "status",
        "externalId",
        "error",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "reply"
  ],
  "additionalProperties": false
}
202 The reply is being sent.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "reply": {
      "type": "object",
      "properties": {
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "commentId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "idempotencyKey": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "body": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "sending",
            "sent",
            "failed",
            "retryable",
            "unknown"
          ]
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "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))$"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "workspaceId",
        "commentId",
        "idempotencyKey",
        "body",
        "status",
        "externalId",
        "error",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "reply"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The reply conflicts with current state. Check the provider if the result is unknown.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "reply": {
              "type": "object",
              "properties": {
                "workspaceId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "commentId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "idempotencyKey": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "body": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "sending",
                    "sent",
                    "failed",
                    "retryable",
                    "unknown"
                  ]
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "error": {
                  "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))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                }
              },
              "required": [
                "workspaceId",
                "commentId",
                "idempotencyKey",
                "body",
                "status",
                "externalId",
                "error",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "reply"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 The provider did not accept the reply. Retry with the same idempotency key.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "reply": {
              "type": "object",
              "properties": {
                "workspaceId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "commentId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "idempotencyKey": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "body": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "sending",
                    "sent",
                    "failed",
                    "retryable",
                    "unknown"
                  ]
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "error": {
                  "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))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                }
              },
              "required": [
                "workspaceId",
                "commentId",
                "idempotencyKey",
                "body",
                "status",
                "externalId",
                "error",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "reply"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Sync

GET /api/v1/sync-flows

List sync flows and origin status

Allowed API key roles are viewer, editor, admin.

Responses

200 Sync flows.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "flows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "originAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "destinations": {
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "captionTemplate": {
                  "default": "{caption}",
                  "type": "string",
                  "maxLength": 2000
                },
                "hashtags": {
                  "default": "keep",
                  "type": "string",
                  "enum": [
                    "keep",
                    "strip"
                  ]
                },
                "overrides": {
                  "default": {},
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "accountId",
                "captionTemplate",
                "hashtags",
                "overrides"
              ],
              "additionalProperties": false
            }
          },
          "delayMinutes": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 43200
          },
          "holdForApproval": {
            "default": false,
            "type": "boolean"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "activeSince": {
            "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))$"
          },
          "paused": {
            "type": "boolean"
          },
          "watermark": {
            "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"
              }
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "originStatus": {
            "type": "string",
            "enum": [
              "active",
              "needs_reauth",
              "revoked"
            ]
          }
        },
        "required": [
          "name",
          "originAccountId",
          "destinations",
          "delayMinutes",
          "holdForApproval",
          "id",
          "workspaceId",
          "activeSince",
          "createdAt",
          "paused",
          "watermark",
          "lastError",
          "originStatus"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "flows"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/sync-flows

Create a sync flow

Allowed API key roles are admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "originAccountId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "destinations": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "captionTemplate": {
            "default": "{caption}",
            "type": "string",
            "maxLength": 2000
          },
          "hashtags": {
            "default": "keep",
            "type": "string",
            "enum": [
              "keep",
              "strip"
            ]
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      }
    },
    "delayMinutes": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 43200
    },
    "holdForApproval": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "originAccountId",
    "destinations"
  ],
  "additionalProperties": false
}

Responses

201 Sync flow created.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "originAccountId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "destinations": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "captionTemplate": {
            "default": "{caption}",
            "type": "string",
            "maxLength": 2000
          },
          "hashtags": {
            "default": "keep",
            "type": "string",
            "enum": [
              "keep",
              "strip"
            ]
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId",
          "captionTemplate",
          "hashtags",
          "overrides"
        ],
        "additionalProperties": false
      }
    },
    "delayMinutes": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 43200
    },
    "holdForApproval": {
      "default": false,
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "activeSince": {
      "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))$"
    },
    "paused": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "originAccountId",
    "destinations",
    "delayMinutes",
    "holdForApproval",
    "id",
    "workspaceId",
    "activeSince",
    "createdAt",
    "paused"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 The source could not be downloaded or processed. Error code `unprocessable_entity`.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/sync-flows/{id}

Pause or resume a sync flow

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Sync flow ID."}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "paused": {
      "type": "boolean"
    }
  },
  "required": [
    "paused"
  ],
  "additionalProperties": false
}

Responses

200 Updated sync flow.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "originAccountId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "destinations": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "captionTemplate": {
            "default": "{caption}",
            "type": "string",
            "maxLength": 2000
          },
          "hashtags": {
            "default": "keep",
            "type": "string",
            "enum": [
              "keep",
              "strip"
            ]
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId",
          "captionTemplate",
          "hashtags",
          "overrides"
        ],
        "additionalProperties": false
      }
    },
    "delayMinutes": {
      "default": 0,
      "type": "integer",
      "minimum": 0,
      "maximum": 43200
    },
    "holdForApproval": {
      "default": false,
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "activeSince": {
      "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))$"
    },
    "paused": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "originAccountId",
    "destinations",
    "delayMinutes",
    "holdForApproval",
    "id",
    "workspaceId",
    "activeSince",
    "createdAt",
    "paused"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/backfill/origin-posts

Read videos from an origin account

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
originAccountIdqueryYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
cursorqueryNo{"type":"string","minLength":1,"maxLength":2048}

Responses

200 A page of recent videos and an optional continuation cursor.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "canImport": {
      "type": "boolean"
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "link": {
            "type": [
              "string",
              "null"
            ]
          },
          "publishedAt": {
            "type": "string"
          },
          "unavailable": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "caption",
          "link",
          "publishedAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "nextCursor",
    "canImport",
    "videos"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 The source could not be downloaded or processed. Error code `unprocessable_entity`.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/backfill

Preview or schedule historical videos

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "originAccountId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "destinations": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "captionTemplate": {
            "default": "{caption}",
            "type": "string",
            "maxLength": 2000
          },
          "hashtags": {
            "default": "keep",
            "type": "string",
            "enum": [
              "keep",
              "strip"
            ]
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      }
    },
    "postIds": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 512
      }
    },
    "since": {
      "anyOf": [
        {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        }
      ]
    },
    "spacing": {
      "type": "object",
      "properties": {
        "startAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "intervalMinutes": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 43200
        }
      },
      "required": [
        "startAt",
        "intervalMinutes"
      ],
      "additionalProperties": false
    },
    "dryRun": {
      "type": "boolean"
    },
    "dry_run": {
      "type": "boolean"
    }
  },
  "required": [
    "originAccountId",
    "destinations"
  ],
  "additionalProperties": false
}

Responses

200 Dry-run preview.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "dryRun": {
      "type": "boolean"
    },
    "valid": {
      "type": "boolean"
    },
    "error": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "originPostId": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "scheduledAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "overrides": {
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "accountId",
                "overrides"
              ],
              "additionalProperties": false
            }
          },
          "mediaVerified": {
            "type": "boolean"
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "accountId",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "eligible": {
            "type": "boolean"
          }
        },
        "required": [
          "originPostId",
          "caption",
          "scheduledAt",
          "targets",
          "mediaVerified",
          "skipped",
          "eligible"
        ],
        "additionalProperties": false
      }
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "originAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "originPostId": {
            "type": "string"
          },
          "postId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "accountId",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "originPostId",
          "postId",
          "skipped"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "dryRun",
    "valid",
    "previews",
    "results"
  ],
  "additionalProperties": false
}
201 Backfill results.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "dryRun": {
      "type": "boolean"
    },
    "valid": {
      "type": "boolean"
    },
    "error": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "originPostId": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "scheduledAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "overrides": {
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "accountId",
                "overrides"
              ],
              "additionalProperties": false
            }
          },
          "mediaVerified": {
            "type": "boolean"
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "accountId",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "eligible": {
            "type": "boolean"
          }
        },
        "required": [
          "originPostId",
          "caption",
          "scheduledAt",
          "targets",
          "mediaVerified",
          "skipped",
          "eligible"
        ],
        "additionalProperties": false
      }
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "originAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "originPostId": {
            "type": "string"
          },
          "postId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "accountId",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "originPostId",
          "postId",
          "skipped"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "dryRun",
    "valid",
    "previews",
    "results"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 Backfill could not fully complete. Error details can contain results for posts already queued.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "dryRun": {
              "type": "boolean"
            },
            "valid": {
              "type": "boolean"
            },
            "error": {
              "type": "string"
            },
            "previews": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "originPostId": {
                    "type": "string"
                  },
                  "caption": {
                    "type": "string"
                  },
                  "scheduledAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "overrides": {
                          "type": "object",
                          "properties": {
                            "privacy": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            "tiktokMode": {
                              "type": "string",
                              "enum": [
                                "direct",
                                "inbox"
                              ]
                            },
                            "boardId": {
                              "type": "string",
                              "pattern": "^\\d{1,64}$"
                            },
                            "madeForKids": {
                              "type": "boolean"
                            },
                            "allowComments": {
                              "type": "boolean"
                            },
                            "allowDuet": {
                              "type": "boolean"
                            },
                            "allowStitch": {
                              "type": "boolean"
                            },
                            "brandContent": {
                              "type": "boolean"
                            },
                            "ownBrand": {
                              "type": "boolean"
                            },
                            "instagramFormat": {
                              "type": "string",
                              "enum": [
                                "auto",
                                "story"
                              ]
                            },
                            "trialGraduation": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "SS_PERFORMANCE"
                              ]
                            },
                            "collaborators": {
                              "maxItems": 3,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[a-z0-9._]{1,30}$"
                              }
                            },
                            "userTags": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "username": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9._]{1,30}$"
                                  },
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "mediaIndex": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 19
                                  }
                                },
                                "required": [
                                  "username"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "locationId": {
                              "type": "string",
                              "pattern": "^\\d{1,64}$"
                            },
                            "aiGenerated": {
                              "type": "boolean"
                            },
                            "altText": {
                              "type": "string",
                              "maxLength": 1000
                            },
                            "imageAltTexts": {
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 1000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "youtubeFormat": {
                              "type": "string",
                              "enum": [
                                "short",
                                "video"
                              ]
                            },
                            "youtubeCaptions": {
                              "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                              "type": "string",
                              "enum": [
                                "srt",
                                "vtt"
                              ]
                            },
                            "thumbnailMediaId": {
                              "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "publishAt": {
                              "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            },
                            "categoryId": {
                              "type": "string",
                              "pattern": "^\\d{1,64}$"
                            },
                            "defaultLanguage": {
                              "type": "string",
                              "maxLength": 35
                            },
                            "playlistIds": {
                              "maxItems": 25,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[a-z0-9_-]{1,128}$"
                              }
                            },
                            "paidPromotion": {
                              "type": "boolean"
                            },
                            "notifySubscribers": {
                              "type": "boolean"
                            },
                            "autoAddMusic": {
                              "type": "boolean"
                            },
                            "coverFrameSeconds": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "link": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            },
                            "facebookFormat": {
                              "type": "string",
                              "enum": [
                                "auto",
                                "story"
                              ]
                            },
                            "documentTitle": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "linkedinVisibility": {
                              "type": "string",
                              "enum": [
                                "PUBLIC",
                                "CONNECTIONS",
                                "LOGGED_IN"
                              ]
                            },
                            "threadsReplyControl": {
                              "type": "string",
                              "enum": [
                                "everyone",
                                "accounts_you_follow",
                                "mentioned_only",
                                "followers_only"
                              ]
                            },
                            "threadsReplyApprovals": {
                              "type": "boolean"
                            },
                            "xReplySettings": {
                              "type": "string",
                              "enum": [
                                "following",
                                "mentionedUsers",
                                "subscribers",
                                "verified"
                              ]
                            },
                            "subscribersOnly": {
                              "type": "boolean"
                            },
                            "caption": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "title": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "cover": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2048
                            },
                            "photoCoverIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 34
                            },
                            "thumbOffset": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "shareToFeed": {
                              "type": "boolean"
                            },
                            "hashtags": {
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                              }
                            },
                            "tags": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 500
                              }
                            },
                            "businessProfile": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "languageCode": {
                                      "type": "string",
                                      "maxLength": 32,
                                      "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                                    },
                                    "callToAction": {
                                      "type": "object",
                                      "properties": {
                                        "actionType": {
                                          "type": "string",
                                          "enum": [
                                            "BOOK",
                                            "ORDER",
                                            "SHOP",
                                            "LEARN_MORE",
                                            "SIGN_UP",
                                            "CALL"
                                          ]
                                        },
                                        "url": {
                                          "type": "string",
                                          "maxLength": 2048,
                                          "format": "uri"
                                        }
                                      },
                                      "required": [
                                        "actionType"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "topicType": {
                                      "type": "string",
                                      "const": "STANDARD"
                                    }
                                  },
                                  "required": [
                                    "topicType"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "languageCode": {
                                      "type": "string",
                                      "maxLength": 32,
                                      "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                                    },
                                    "callToAction": {
                                      "type": "object",
                                      "properties": {
                                        "actionType": {
                                          "type": "string",
                                          "enum": [
                                            "BOOK",
                                            "ORDER",
                                            "SHOP",
                                            "LEARN_MORE",
                                            "SIGN_UP",
                                            "CALL"
                                          ]
                                        },
                                        "url": {
                                          "type": "string",
                                          "maxLength": 2048,
                                          "format": "uri"
                                        }
                                      },
                                      "required": [
                                        "actionType"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "topicType": {
                                      "type": "string",
                                      "const": "EVENT"
                                    },
                                    "event": {
                                      "type": "object",
                                      "properties": {
                                        "title": {
                                          "type": "string",
                                          "maxLength": 58
                                        },
                                        "startDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "date",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                            },
                                            {
                                              "type": "string",
                                              "const": ""
                                            }
                                          ]
                                        },
                                        "endDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "date",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                            },
                                            {
                                              "type": "string",
                                              "const": ""
                                            }
                                          ]
                                        },
                                        "startTime": {
                                          "type": "string",
                                          "pattern": "^\\d{2}:\\d{2}$"
                                        },
                                        "endTime": {
                                          "type": "string",
                                          "pattern": "^\\d{2}:\\d{2}$"
                                        }
                                      },
                                      "required": [
                                        "title",
                                        "startDate",
                                        "endDate"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "topicType",
                                    "event"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "languageCode": {
                                      "type": "string",
                                      "maxLength": 32,
                                      "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                                    },
                                    "callToAction": {
                                      "type": "object",
                                      "properties": {
                                        "actionType": {
                                          "type": "string",
                                          "enum": [
                                            "BOOK",
                                            "ORDER",
                                            "SHOP",
                                            "LEARN_MORE",
                                            "SIGN_UP",
                                            "CALL"
                                          ]
                                        },
                                        "url": {
                                          "type": "string",
                                          "maxLength": 2048,
                                          "format": "uri"
                                        }
                                      },
                                      "required": [
                                        "actionType"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "topicType": {
                                      "type": "string",
                                      "const": "OFFER"
                                    },
                                    "event": {
                                      "type": "object",
                                      "properties": {
                                        "title": {
                                          "type": "string",
                                          "maxLength": 58
                                        },
                                        "startDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "date",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                            },
                                            {
                                              "type": "string",
                                              "const": ""
                                            }
                                          ]
                                        },
                                        "endDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "date",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                            },
                                            {
                                              "type": "string",
                                              "const": ""
                                            }
                                          ]
                                        },
                                        "startTime": {
                                          "type": "string",
                                          "pattern": "^\\d{2}:\\d{2}$"
                                        },
                                        "endTime": {
                                          "type": "string",
                                          "pattern": "^\\d{2}:\\d{2}$"
                                        }
                                      },
                                      "required": [
                                        "title",
                                        "startDate",
                                        "endDate"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "offer": {
                                      "type": "object",
                                      "properties": {
                                        "couponCode": {
                                          "type": "string",
                                          "maxLength": 58
                                        },
                                        "redeemOnlineUrl": {
                                          "type": "string",
                                          "maxLength": 2048,
                                          "format": "uri"
                                        },
                                        "termsConditions": {
                                          "type": "string",
                                          "maxLength": 5000
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "topicType",
                                    "event"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "threadItems": {
                              "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                              "minItems": 1,
                              "maxItems": 25,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "caption": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "mediaIds": {
                                    "maxItems": 35,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "replyTo": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 512
                                  },
                                  "quotePost": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 512
                                  }
                                },
                                "required": [
                                  "caption"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "firstComment": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10000
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "accountId",
                        "overrides"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "mediaVerified": {
                    "type": "boolean"
                  },
                  "skipped": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "accountId",
                        "reason"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "eligible": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "originPostId",
                  "caption",
                  "scheduledAt",
                  "targets",
                  "mediaVerified",
                  "skipped",
                  "eligible"
                ],
                "additionalProperties": false
              }
            },
            "results": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "originAccountId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "originPostId": {
                    "type": "string"
                  },
                  "postId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "skipped": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "accountId",
                        "reason"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "error": {
                    "type": "string"
                  }
                },
                "required": [
                  "originPostId",
                  "postId",
                  "skipped"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "dryRun",
            "valid",
            "previews",
            "results"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Accounts

GET /api/v1/accounts

List social accounts

Allowed API key roles are viewer, editor, admin.

Responses

200 Accounts in the workspace, including disconnected accounts.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "accounts": {
      "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)$"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "handle": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "needs_reauth",
              "revoked"
            ]
          },
          "publishingPausedReason": {
            "type": "string"
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean"
              },
              "formats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "mediaTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "limits": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": [
                    "number",
                    "string"
                  ]
                }
              },
              "features": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "boolean"
                }
              },
              "privacyOptions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "creatorControls": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "boolean"
                }
              }
            },
            "required": [
              "available",
              "formats",
              "mediaTypes",
              "limits",
              "features"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "platform",
          "handle",
          "status",
          "displayName",
          "avatarUrl",
          "expiresAt",
          "lastError",
          "capabilities"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "accounts"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/accounts/{id}

Read account health and capabilities

Allowed API key roles are viewer, editor, admin.

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

Responses

200 Social account details.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "account": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "platform": {
          "type": "string",
          "enum": [
            "instagram",
            "facebook",
            "youtube",
            "tiktok",
            "fake",
            "bluesky",
            "threads",
            "linkedin",
            "x",
            "pinterest",
            "google_business_profile",
            "mastodon",
            "telegram",
            "discord",
            "slack",
            "tumblr"
          ]
        },
        "handle": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "needs_reauth",
            "revoked"
          ]
        },
        "publishingPausedReason": {
          "type": "string"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiresAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastError": {
          "type": [
            "string",
            "null"
          ]
        },
        "capabilities": {
          "type": "object",
          "properties": {
            "available": {
              "type": "boolean"
            },
            "formats": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "mediaTypes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "limits": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": [
                  "number",
                  "string"
                ]
              }
            },
            "features": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "boolean"
              }
            },
            "privacyOptions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "creatorControls": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "boolean"
              }
            }
          },
          "required": [
            "available",
            "formats",
            "mediaTypes",
            "limits",
            "features"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "platform",
        "handle",
        "status",
        "displayName",
        "avatarUrl",
        "expiresAt",
        "lastError",
        "capabilities"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "account"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
DELETE /api/v1/accounts/{id}

Disconnect a social account

Allowed API key roles are admin.

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

Responses

200 Account ID and provider revocation outcome.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "providerRevocation": {
      "type": "string",
      "enum": [
        "already_disconnected",
        "unavailable",
        "revoked",
        "failed"
      ]
    }
  },
  "required": [
    "id",
    "providerRevocation"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/accounts/{id}/reconnect

Get the dashboard reconnection URL

Allowed API key roles are admin.

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

Responses

200 URL for a workspace admin to open in their browser.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

AI

POST /api/v1/ai/adapt-caption

Suggest a caption adapted to one platform

Available only when the writing assistant is enabled. Each call uses one AI request from the workspace's monthly allowance.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "youtube",
        "tiktok",
        "bluesky",
        "threads",
        "linkedin",
        "x",
        "pinterest",
        "google_business_profile",
        "mastodon",
        "telegram",
        "discord",
        "slack",
        "tumblr",
        "fake"
      ],
      "description": "The destination platform."
    },
    "caption": {
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "description": "The caption to adapt."
    },
    "photo": {
      "description": "Use TikTok photo caption limits.",
      "type": "boolean"
    }
  },
  "required": [
    "platform",
    "caption"
  ],
  "additionalProperties": false
}

Responses

200 Suggestions to review. Nothing is applied to a post.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "youtube",
        "tiktok",
        "bluesky",
        "threads",
        "linkedin",
        "x",
        "pinterest",
        "google_business_profile",
        "mastodon",
        "telegram",
        "discord",
        "slack",
        "tumblr",
        "fake"
      ],
      "description": "The destination platform."
    },
    "suggestions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "caption": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "firstComment": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "required": [
    "platform",
    "suggestions"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
502 An upstream provider did not return a usable result. Error code `upstream_error`.
Response schema (502, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Analytics

GET /api/v1/analytics

Read or export an analytics report

Filter by platform, UTC date range, and optionally one post or account. Use format=csv to download daily changes.

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
postIdqueryNo{"description":"Read all targets for this post.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
accountIdqueryNo{"description":"Read account and post metrics for this social account.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
platformqueryNo{"type":"string","enum":["instagram","facebook","youtube","tiktok","fake","bluesky","threads","linkedin","x","pinterest","google_business_profile","mastodon","telegram","discord","slack","tumblr"]}
fromqueryNo{"description":"First UTC calendar date, inclusive.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}
toqueryNo{"description":"Last UTC calendar date, inclusive.","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}
limitqueryNo{"default":25,"type":"integer","minimum":1,"maximum":100}
dailyLimitqueryNo{"default":100,"type":"integer","minimum":1,"maximum":1000}
dailyOffsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}
formatqueryNo{"default":"json","type":"string","enum":["json","csv"]}

Responses

200 Workspace metrics, daily changes, and best posting hours.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "range": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "snapshots": {
      "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)$"
          },
          "takenAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "metrics": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "postId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "postTargetId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          },
          "handle": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          }
        },
        "required": [
          "id",
          "takenAt",
          "metrics",
          "postId",
          "postTargetId",
          "accountId",
          "caption",
          "handle",
          "platform"
        ],
        "additionalProperties": false
      }
    },
    "daily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "metrics": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "handle": {
            "type": "string"
          },
          "postId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "targetId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "day",
          "metrics",
          "accountId",
          "platform",
          "handle",
          "postId",
          "targetId",
          "caption"
        ],
        "additionalProperties": false
      }
    },
    "dailyCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "accountDaily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "metrics": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "handle": {
            "type": "string"
          }
        },
        "required": [
          "day",
          "metrics",
          "accountId",
          "platform",
          "handle"
        ],
        "additionalProperties": false
      }
    },
    "accountDailyCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "postDaily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "postId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "caption": {
            "type": "string"
          },
          "metrics": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          }
        },
        "required": [
          "postId",
          "caption",
          "metrics",
          "day"
        ],
        "additionalProperties": false
      }
    },
    "postDailyCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "trend": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "metrics": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "required": [
          "day",
          "metrics"
        ],
        "additionalProperties": false
      }
    },
    "overview": {
      "type": "object",
      "properties": {
        "totals": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "number"
          }
        },
        "platforms": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "platform": {
                "type": "string",
                "enum": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "fake",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "google_business_profile",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ]
              },
              "metrics": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "number"
                }
              }
            },
            "required": [
              "platform",
              "metrics"
            ],
            "additionalProperties": false
          }
        },
        "topPosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "postId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "caption": {
                "type": "string"
              },
              "metrics": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "number"
                }
              }
            },
            "required": [
              "postId",
              "caption",
              "metrics"
            ],
            "additionalProperties": false
          }
        },
        "bestHours": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "hour": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "posts": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "score": {
                "type": "number"
              }
            },
            "required": [
              "hour",
              "posts",
              "score"
            ],
            "additionalProperties": false
          }
        },
        "timeZone": {
          "type": "string"
        }
      },
      "required": [
        "totals",
        "platforms",
        "topPosts",
        "bestHours",
        "timeZone"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "range",
    "snapshots",
    "daily",
    "dailyCount",
    "accountDaily",
    "accountDailyCount",
    "postDaily",
    "postDailyCount",
    "trend",
    "overview"
  ],
  "additionalProperties": false
}
Response schema (200, text/csv)
{
  "type": "string"
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/analytics/sync

Request a metrics refresh

Allowed API key roles are admin.

Responses

202 Refresh queued.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "requestedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    }
  },
  "required": [
    "requestedAt"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Bio

GET /api/v1/bio

Read the workspace bio page

Allowed API key roles are viewer, editor, admin.

Responses

200 The page, or null if the workspace has not made one yet.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "page": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "handle": {
              "type": "string",
              "pattern": "^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": {
              "type": "string",
              "maxLength": 350
            },
            "theme": {
              "type": "string",
              "enum": [
                "studio",
                "nocturne",
                "coast"
              ]
            },
            "accent": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "seoTitle": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 70
                },
                {
                  "type": "null"
                }
              ]
            },
            "seoDescription": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                {
                  "type": "null"
                }
              ]
            },
            "blocks": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "link"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "latest"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12
                      },
                      "accountIds": {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "social"
                      },
                      "profiles": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "accountId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "required": [
                            "accountId",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "video"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "email"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "published": {
              "type": "boolean"
            },
            "showClicks": {
              "default": false,
              "type": "boolean"
            },
            "workspaceId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "revision": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "handle",
            "title",
            "description",
            "theme",
            "accent",
            "seoTitle",
            "seoDescription",
            "blocks",
            "published",
            "showClicks",
            "workspaceId",
            "revision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "page"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PUT /api/v1/bio

Create or replace the workspace bio page

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "handle": {
      "type": "string",
      "pattern": "^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "description": {
      "type": "string",
      "maxLength": 350
    },
    "theme": {
      "type": "string",
      "enum": [
        "studio",
        "nocturne",
        "coast"
      ]
    },
    "accent": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^#[0-9a-f]{6}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "seoTitle": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 70
        },
        {
          "type": "null"
        }
      ]
    },
    "seoDescription": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        {
          "type": "null"
        }
      ]
    },
    "blocks": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "link"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "url": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "required": [
              "id",
              "type",
              "title",
              "url"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "latest"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 12
              },
              "accountIds": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              }
            },
            "required": [
              "id",
              "type",
              "title",
              "limit"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "social"
              },
              "profiles": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "url": {
                      "type": "string",
                      "maxLength": 4096
                    }
                  },
                  "required": [
                    "accountId",
                    "url"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "video"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "url": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "required": [
              "id",
              "type",
              "title",
              "url"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "email"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "required": [
              "id",
              "type",
              "title"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "published": {
      "type": "boolean"
    },
    "showClicks": {
      "default": false,
      "type": "boolean"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647
    }
  },
  "required": [
    "handle",
    "title",
    "description",
    "theme",
    "accent",
    "seoTitle",
    "seoDescription",
    "blocks",
    "published"
  ],
  "additionalProperties": false
}

Responses

200 Saved page and revision.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "page": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "handle": {
              "type": "string",
              "pattern": "^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "description": {
              "type": "string",
              "maxLength": 350
            },
            "theme": {
              "type": "string",
              "enum": [
                "studio",
                "nocturne",
                "coast"
              ]
            },
            "accent": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^#[0-9a-f]{6}$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "seoTitle": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 70
                },
                {
                  "type": "null"
                }
              ]
            },
            "seoDescription": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                {
                  "type": "null"
                }
              ]
            },
            "blocks": {
              "maxItems": 20,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "link"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "latest"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "limit": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12
                      },
                      "accountIds": {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "limit"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "social"
                      },
                      "profiles": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "accountId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "required": [
                            "accountId",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "video"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title",
                      "url"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "type": {
                        "type": "string",
                        "const": "email"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "title"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "published": {
              "type": "boolean"
            },
            "showClicks": {
              "default": false,
              "type": "boolean"
            },
            "workspaceId": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "revision": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "handle",
            "title",
            "description",
            "theme",
            "accent",
            "seoTitle",
            "seoDescription",
            "blocks",
            "published",
            "showClicks",
            "workspaceId",
            "revision"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "page"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/bio/subscribers

List email signups from the workspace bio page

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
limitqueryNo{"default":50,"type":"integer","minimum":1,"maximum":100}
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}

Responses

200 Most recent signups first.
HeaderMeaning
Cache-Controlprivate, no-store
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "subscribers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "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": [
          "email",
          "createdAt"
        ],
        "additionalProperties": false
      }
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "subscribers",
    "nextOffset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/links

Read tracked clicks and daily visitors per short link

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
codequeryNo{"type":"string","pattern":"^[A-Za-z0-9_-]{8}$"}
postIdqueryNo{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
accountIdqueryNo{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}
sourcequeryNo{"type":"string","enum":["bio","caption","manual"]}
platformqueryNo{"type":"string","enum":["instagram","facebook","youtube","tiktok","fake","bluesky","threads","linkedin","x","pinterest","google_business_profile","mastodon","telegram","discord","slack","tumblr"]}
limitqueryNo{"default":50,"type":"integer","minimum":1,"maximum":100}
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}

Responses

200 Most recently created links first.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "totalClicks": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "destination": {
            "type": "string",
            "format": "uri"
          },
          "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))$"
          },
          "url": {
            "type": "string"
          },
          "clicks": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "dailyVisitors": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "bioBlockId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "postId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "accountId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "fake",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "google_business_profile",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "destination",
          "createdAt",
          "url",
          "clicks",
          "dailyVisitors",
          "bioBlockId",
          "postId",
          "accountId",
          "platform",
          "caption"
        ],
        "additionalProperties": false
      }
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "totalClicks",
    "links",
    "nextOffset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/links/utm

Read workspace UTM templates

Allowed API key roles are viewer, editor, admin.

Responses

200 Current templates.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "utm": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "maxLength": 150
        },
        "medium": {
          "type": "string",
          "maxLength": 150
        },
        "campaign": {
          "type": "string",
          "maxLength": 150
        }
      },
      "required": [
        "source",
        "medium",
        "campaign"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "utm"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PUT /api/v1/links/utm

Set UTM templates for new caption links

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "maxLength": 150
    },
    "medium": {
      "type": "string",
      "maxLength": 150
    },
    "campaign": {
      "type": "string",
      "maxLength": 150
    }
  },
  "required": [
    "source",
    "medium",
    "campaign"
  ],
  "additionalProperties": false
}

Responses

200 Saved templates.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "utm": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "maxLength": 150
        },
        "medium": {
          "type": "string",
          "maxLength": 150
        },
        "campaign": {
          "type": "string",
          "maxLength": 150
        }
      },
      "required": [
        "source",
        "medium",
        "campaign"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "utm"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

AI clips

GET /api/v1/clip-jobs

List recent clip jobs

Allowed API key roles are editor, admin.

Responses

200 Up to 40 jobs, most recent first.
HeaderMeaning
Cache-Controlprivate, no-store
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "jobs": {
      "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)$"
          },
          "sourceName": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "transcribing",
              "selecting",
              "review",
              "rendering",
              "rendered",
              "scheduled",
              "failed",
              "render_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",
          "sourceName",
          "status",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "jobs"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/clip-jobs

Find clips in a library video

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "sourceMediaId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "A ready MP4, MOV, or WebM video in this workspace's media library."
    },
    "count": {
      "default": 5,
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": [
    "sourceMediaId"
  ],
  "additionalProperties": false
}

Responses

202 Analysis queued.
HeaderMeaning
LocationThe job detail path.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "sourceName": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "transcribing",
            "selecting",
            "review",
            "rendering",
            "rendered",
            "scheduled",
            "failed",
            "render_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))$"
        },
        "sourceMediaId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "count": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "durationMs": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "postIds": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "sourceName",
        "status",
        "createdAt",
        "sourceMediaId",
        "count",
        "revision",
        "durationMs",
        "postIds",
        "error",
        "updatedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
415 The source returned an unsupported media type or encoding. Error code `unsupported_media_type`.
Response schema (415, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 A service is temporarily unavailable. Error code `service_unavailable`.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/clip-jobs/{id}

Read clip job status and output

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Clip job ID"}

Responses

200 Clip job, including proposals and ready media IDs.
HeaderMeaning
Cache-Controlprivate, no-store
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "sourceName": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "transcribing",
            "selecting",
            "review",
            "rendering",
            "rendered",
            "scheduled",
            "failed",
            "render_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))$"
        },
        "sourceMediaId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "count": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "durationMs": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "postIds": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "clips": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^<>\\r\\n]+$"
              },
              "hook": {
                "type": "string",
                "minLength": 1,
                "maxLength": 90,
                "pattern": "^[^\\r\\n]+$"
              },
              "rationale": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "captions": {
                "type": "object",
                "properties": {
                  "instagram": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "facebook": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "youtube": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "tiktok": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "bluesky": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "threads": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "linkedin": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "x": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "pinterest": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "mastodon": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "telegram": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "discord": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "slack": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "tumblr": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ],
                "additionalProperties": false
              },
              "edit": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "clips": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "mediaId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "fit": {
                              "default": "crop",
                              "type": "string",
                              "enum": [
                                "crop",
                                "contain"
                              ]
                            },
                            "focusX": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "focusY": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "transition": {
                              "default": "cut",
                              "type": "string",
                              "enum": [
                                "cut",
                                "fade-black",
                                "fade-white"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "video"
                            },
                            "start": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 7200
                            },
                            "end": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 7200
                            },
                            "speed": {
                              "default": 1,
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 2
                            },
                            "muted": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mediaId",
                            "fit",
                            "focusX",
                            "focusY",
                            "transition",
                            "kind",
                            "start",
                            "end",
                            "speed",
                            "muted"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mediaId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "fit": {
                              "default": "crop",
                              "type": "string",
                              "enum": [
                                "crop",
                                "contain"
                              ]
                            },
                            "focusX": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "focusY": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "transition": {
                              "default": "cut",
                              "type": "string",
                              "enum": [
                                "cut",
                                "fade-black",
                                "fade-white"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "image"
                            },
                            "duration": {
                              "type": "number",
                              "minimum": 0.2,
                              "maximum": 30
                            }
                          },
                          "required": [
                            "mediaId",
                            "fit",
                            "focusX",
                            "focusY",
                            "transition",
                            "kind",
                            "duration"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "style": {
                    "type": "object",
                    "properties": {
                      "ratio": {
                        "default": "9:16",
                        "type": "string",
                        "enum": [
                          "9:16",
                          "1:1",
                          "4:5"
                        ]
                      },
                      "resolution": {
                        "type": "string",
                        "const": "1080p"
                      },
                      "background": {
                        "default": "color",
                        "type": "string",
                        "enum": [
                          "color",
                          "blur"
                        ]
                      },
                      "color": {
                        "default": "#17130f",
                        "type": "string",
                        "pattern": "^#[a-f\\d]{6}$"
                      },
                      "hookPreset": {
                        "default": "stacked",
                        "type": "string",
                        "enum": [
                          "stacked",
                          "headline",
                          "label"
                        ]
                      },
                      "captionPreset": {
                        "default": "pop",
                        "type": "string",
                        "enum": [
                          "pop",
                          "clean",
                          "off"
                        ]
                      }
                    },
                    "required": [
                      "ratio",
                      "background",
                      "color",
                      "hookPreset",
                      "captionPreset"
                    ],
                    "additionalProperties": false
                  },
                  "overlays": {
                    "default": [],
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "start": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        },
                        "end": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        },
                        "position": {
                          "default": "top",
                          "type": "string",
                          "enum": [
                            "top",
                            "center"
                          ]
                        }
                      },
                      "required": [
                        "text",
                        "start",
                        "end",
                        "position"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "audio": {
                    "default": {
                      "mode": "original"
                    },
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "original"
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "mute"
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "replace"
                          },
                          "mediaId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "volume": {
                            "default": 1,
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          }
                        },
                        "required": [
                          "mode",
                          "mediaId",
                          "volume"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "captions": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string",
                            "maxLength": 35
                          },
                          "words": {
                            "maxItems": 1800,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "start": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 3600
                                },
                                "end": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 3600
                                }
                              },
                              "required": [
                                "text",
                                "start",
                                "end"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "language",
                          "words"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "version",
                  "clips",
                  "style",
                  "overlays",
                  "audio",
                  "captions"
                ],
                "additionalProperties": false
              },
              "outputMediaId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "title",
              "hook",
              "rationale",
              "captions",
              "edit",
              "outputMediaId"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "id",
        "sourceName",
        "status",
        "createdAt",
        "sourceMediaId",
        "count",
        "revision",
        "durationMs",
        "postIds",
        "error",
        "updatedAt",
        "clips"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/clip-jobs/{id}/render

Render clips into the media library

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Clip job ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "trims": {
      "default": [],
      "maxItems": 10,
      "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)$"
          },
          "inMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 7200000
          },
          "outMs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 7200000
          },
          "cropX": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "id",
          "inMs",
          "outMs"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "revision"
  ],
  "additionalProperties": false
}

Responses

202 Render accepted. Read the job to see progress and output media IDs.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "sourceName": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "transcribing",
            "selecting",
            "review",
            "rendering",
            "rendered",
            "scheduled",
            "failed",
            "render_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))$"
        },
        "sourceMediaId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "count": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "durationMs": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ]
        },
        "postIds": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "clips": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^<>\\r\\n]+$"
              },
              "hook": {
                "type": "string",
                "minLength": 1,
                "maxLength": 90,
                "pattern": "^[^\\r\\n]+$"
              },
              "rationale": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "captions": {
                "type": "object",
                "properties": {
                  "instagram": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "facebook": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "youtube": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "tiktok": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "bluesky": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "threads": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "linkedin": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "x": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "pinterest": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "mastodon": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "telegram": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "discord": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "slack": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "tumblr": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ],
                "additionalProperties": false
              },
              "edit": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "clips": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "mediaId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "fit": {
                              "default": "crop",
                              "type": "string",
                              "enum": [
                                "crop",
                                "contain"
                              ]
                            },
                            "focusX": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "focusY": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "transition": {
                              "default": "cut",
                              "type": "string",
                              "enum": [
                                "cut",
                                "fade-black",
                                "fade-white"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "video"
                            },
                            "start": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 7200
                            },
                            "end": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 7200
                            },
                            "speed": {
                              "default": 1,
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 2
                            },
                            "muted": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mediaId",
                            "fit",
                            "focusX",
                            "focusY",
                            "transition",
                            "kind",
                            "start",
                            "end",
                            "speed",
                            "muted"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mediaId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "fit": {
                              "default": "crop",
                              "type": "string",
                              "enum": [
                                "crop",
                                "contain"
                              ]
                            },
                            "focusX": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "focusY": {
                              "default": 0.5,
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "transition": {
                              "default": "cut",
                              "type": "string",
                              "enum": [
                                "cut",
                                "fade-black",
                                "fade-white"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "image"
                            },
                            "duration": {
                              "type": "number",
                              "minimum": 0.2,
                              "maximum": 30
                            }
                          },
                          "required": [
                            "mediaId",
                            "fit",
                            "focusX",
                            "focusY",
                            "transition",
                            "kind",
                            "duration"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "style": {
                    "type": "object",
                    "properties": {
                      "ratio": {
                        "default": "9:16",
                        "type": "string",
                        "enum": [
                          "9:16",
                          "1:1",
                          "4:5"
                        ]
                      },
                      "resolution": {
                        "type": "string",
                        "const": "1080p"
                      },
                      "background": {
                        "default": "color",
                        "type": "string",
                        "enum": [
                          "color",
                          "blur"
                        ]
                      },
                      "color": {
                        "default": "#17130f",
                        "type": "string",
                        "pattern": "^#[a-f\\d]{6}$"
                      },
                      "hookPreset": {
                        "default": "stacked",
                        "type": "string",
                        "enum": [
                          "stacked",
                          "headline",
                          "label"
                        ]
                      },
                      "captionPreset": {
                        "default": "pop",
                        "type": "string",
                        "enum": [
                          "pop",
                          "clean",
                          "off"
                        ]
                      }
                    },
                    "required": [
                      "ratio",
                      "background",
                      "color",
                      "hookPreset",
                      "captionPreset"
                    ],
                    "additionalProperties": false
                  },
                  "overlays": {
                    "default": [],
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        },
                        "start": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        },
                        "end": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        },
                        "position": {
                          "default": "top",
                          "type": "string",
                          "enum": [
                            "top",
                            "center"
                          ]
                        }
                      },
                      "required": [
                        "text",
                        "start",
                        "end",
                        "position"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "audio": {
                    "default": {
                      "mode": "original"
                    },
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "original"
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "mute"
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "replace"
                          },
                          "mediaId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "volume": {
                            "default": 1,
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          }
                        },
                        "required": [
                          "mode",
                          "mediaId",
                          "volume"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "captions": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string",
                            "maxLength": 35
                          },
                          "words": {
                            "maxItems": 1800,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "start": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 3600
                                },
                                "end": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 3600
                                }
                              },
                              "required": [
                                "text",
                                "start",
                                "end"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "language",
                          "words"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "version",
                  "clips",
                  "style",
                  "overlays",
                  "audio",
                  "captions"
                ],
                "additionalProperties": false
              },
              "outputMediaId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "title",
              "hook",
              "rationale",
              "captions",
              "edit",
              "outputMediaId"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "id",
        "sourceName",
        "status",
        "createdAt",
        "sourceMediaId",
        "count",
        "revision",
        "durationMs",
        "postIds",
        "error",
        "updatedAt",
        "clips"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
415 The source returned an unsupported media type or encoding. Error code `unsupported_media_type`.
Response schema (415, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/clip-jobs/{id}/schedule

Add all rendered clips to the posting queue

Uses the next slots in the workspace posting schedule and respects its approval policy. Retrying an already scheduled job returns the original post IDs.

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Clip job ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "targets": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "revision",
    "targets"
  ],
  "additionalProperties": false
}

Responses

200 Post IDs in clip order.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "postIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    }
  },
  "required": [
    "postIds"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Media

GET /api/v1/media

List ready media

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
qqueryNo{"default":"","type":"string","maxLength":255}
limitqueryNo{"default":24,"type":"integer","minimum":1,"maximum":100}
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}

Responses

200 Media page and total workspace library usage.
HeaderMeaning
Cache-Controlprivate, no-store
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "mimeType": {
            "type": "string"
          },
          "sizeBytes": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fileName": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationSeconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "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))$"
          },
          "thumbnailUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "captionLanguage": {
            "type": "string",
            "maxLength": 35
          }
        },
        "required": [
          "id",
          "mimeType",
          "sizeBytes",
          "fileName",
          "durationSeconds",
          "width",
          "height",
          "createdAt",
          "thumbnailUrl"
        ],
        "additionalProperties": false
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "items": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "bytes": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "items",
        "bytes"
      ],
      "additionalProperties": false
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "usage",
    "nextOffset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/media/uploads

Create presigned uploads

PUT the exact file bytes to each uploadUrl before expiry and send the returned headers. Storage also checks Content-Length against sizeBytes.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "mimeType": {
          "type": "string",
          "enum": [
            "video/mp4",
            "video/quicktime",
            "video/webm",
            "image/jpeg",
            "image/png",
            "image/webp",
            "application/pdf"
          ]
        },
        "fileName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        "sizeBytes": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 1073741824
        },
        "durationSeconds": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 2147483647
        },
        "width": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 2147483647
        },
        "height": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 2147483647
        }
      },
      "required": [
        "mimeType",
        "sizeBytes"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "fileName": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        "mimeType": {
          "type": "string",
          "enum": [
            "audio/mpeg",
            "audio/wav",
            "audio/mp4"
          ]
        },
        "sizeBytes": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 104857600
        }
      },
      "required": [
        "mimeType",
        "sizeBytes"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "files": {
          "minItems": 1,
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mimeType": {
                "type": "string",
                "enum": [
                  "video/mp4",
                  "video/quicktime",
                  "video/webm",
                  "image/jpeg",
                  "image/png",
                  "image/webp",
                  "application/pdf"
                ]
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "sizeBytes": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1073741824
              },
              "durationSeconds": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              "width": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              "height": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              }
            },
            "required": [
              "mimeType",
              "sizeBytes"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "files"
      ],
      "additionalProperties": false
    }
  ]
}

Responses

201 One upload or an array of upload descriptors in input order.
Response schema (201, application/json)
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "uploadUrl": {
          "type": "string",
          "format": "uri"
        },
        "expiresIn": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "headers": {
          "type": "object",
          "properties": {
            "Content-Type": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "video/mp4",
                    "video/quicktime",
                    "video/webm",
                    "image/jpeg",
                    "image/png",
                    "image/webp",
                    "application/pdf"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "audio/mpeg",
                    "audio/wav",
                    "audio/mp4"
                  ]
                }
              ]
            },
            "If-None-Match": {
              "type": "string",
              "const": "*"
            }
          },
          "required": [
            "Content-Type",
            "If-None-Match"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "uploadUrl",
        "expiresIn",
        "headers"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "uploads": {
          "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)$"
              },
              "uploadUrl": {
                "type": "string",
                "format": "uri"
              },
              "expiresIn": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "headers": {
                "type": "object",
                "properties": {
                  "Content-Type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "video/mp4",
                          "video/quicktime",
                          "video/webm",
                          "image/jpeg",
                          "image/png",
                          "image/webp",
                          "application/pdf"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "audio/mpeg",
                          "audio/wav",
                          "audio/mp4"
                        ]
                      }
                    ]
                  },
                  "If-None-Match": {
                    "type": "string",
                    "const": "*"
                  }
                },
                "required": [
                  "Content-Type",
                  "If-None-Match"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "uploadUrl",
              "expiresIn",
              "headers"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "uploads"
      ],
      "additionalProperties": false
    }
  ]
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/media/import

Import media from a URL

Import up to 100 MiB from a public HTTP or HTTPS URL on the standard port. The source must serve uncompressed media. Posthoop follows up to three redirects.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "durationSeconds": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "width": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "height": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "url": {
      "type": "string",
      "maxLength": 4096,
      "format": "uri",
      "description": "Public HTTP or HTTPS URL that directly serves the media file."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

Responses

201 Imported media is ready to attach.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mimeType": {
      "type": "string"
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "durationSeconds": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "width": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "height": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    }
  },
  "required": [
    "id",
    "mimeType",
    "sizeBytes"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
413 The source file exceeds the import limit. Error code `payload_too_large`.
Response schema (413, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
415 The source returned an unsupported media type or encoding. Error code `unsupported_media_type`.
Response schema (415, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 The source could not be downloaded or processed. Error code `unprocessable_entity`.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/media/import/cloud

Import selected cloud media

Choose a file in Posthoop's Import from menu and copy its import token. The token expires in ten minutes and works only in the originating workspace.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "selectionToken": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096,
      "description": "The short-lived import token copied from Posthoop after selecting a cloud file."
    }
  },
  "required": [
    "selectionToken"
  ],
  "additionalProperties": false
}

Responses

201 Imported media is ready to attach.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mimeType": {
      "type": "string"
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "durationSeconds": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "width": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "height": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 2147483647
    },
    "fileName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "mimeType",
    "sizeBytes",
    "fileName"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
413 The source file exceeds the import limit. Error code `payload_too_large`.
Response schema (413, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
415 The source returned an unsupported media type or encoding. Error code `unsupported_media_type`.
Response schema (415, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 The source could not be downloaded or processed. Error code `unprocessable_entity`.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
502 An upstream provider did not return a usable result. Error code `upstream_error`.
Response schema (502, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 A service is temporarily unavailable. Error code `service_unavailable`.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
504 The cloud provider did not finish the export in time. Error code `upstream_timeout`.
Response schema (504, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/media/{id}/complete

Complete a media upload

Allowed API key roles are editor, admin.

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

Responses

200 Verified media.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "mimeType": {
      "type": "string"
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "id",
    "mimeType",
    "sizeBytes"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
DELETE /api/v1/media/{id}

Remove media

Allowed API key roles are admin.

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

Responses

204 Media removed.
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Studio

GET /api/v1/studio/projects

List Studio projects

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}

Responses

200 Recently edited projects first.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "name",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "projects",
    "nextOffset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/studio/projects

Create a Studio project from library media

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "mediaIds": {
      "minItems": 1,
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "templateId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "name",
    "mediaIds"
  ],
  "additionalProperties": false
}

Responses

201 Created project.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "edl": {
          "type": "object",
          "properties": {
            "version": {
              "type": "number",
              "const": 1
            },
            "clips": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "video"
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "speed": {
                        "default": 1,
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "muted": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "start",
                      "end",
                      "speed",
                      "muted"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "image"
                      },
                      "duration": {
                        "type": "number",
                        "minimum": 0.2,
                        "maximum": 30
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "duration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "style": {
              "type": "object",
              "properties": {
                "ratio": {
                  "default": "9:16",
                  "type": "string",
                  "enum": [
                    "9:16",
                    "1:1",
                    "4:5"
                  ]
                },
                "resolution": {
                  "type": "string",
                  "const": "1080p"
                },
                "background": {
                  "default": "color",
                  "type": "string",
                  "enum": [
                    "color",
                    "blur"
                  ]
                },
                "color": {
                  "default": "#17130f",
                  "type": "string",
                  "pattern": "^#[a-f\\d]{6}$"
                },
                "hookPreset": {
                  "default": "stacked",
                  "type": "string",
                  "enum": [
                    "stacked",
                    "headline",
                    "label"
                  ]
                },
                "captionPreset": {
                  "default": "pop",
                  "type": "string",
                  "enum": [
                    "pop",
                    "clean",
                    "off"
                  ]
                }
              },
              "required": [
                "ratio",
                "background",
                "color",
                "hookPreset",
                "captionPreset"
              ],
              "additionalProperties": false
            },
            "overlays": {
              "default": [],
              "maxItems": 12,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "position": {
                    "default": "top",
                    "type": "string",
                    "enum": [
                      "top",
                      "center"
                    ]
                  }
                },
                "required": [
                  "text",
                  "start",
                  "end",
                  "position"
                ],
                "additionalProperties": false
              }
            },
            "audio": {
              "default": {
                "mode": "original"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "original"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "mute"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "replace"
                    },
                    "mediaId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "volume": {
                      "default": 1,
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "required": [
                    "mode",
                    "mediaId",
                    "volume"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "captions": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "words": {
                      "maxItems": 1800,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "start": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          },
                          "end": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          }
                        },
                        "required": [
                          "text",
                          "start",
                          "end"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "language",
                    "words"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "version",
            "clips",
            "style",
            "overlays",
            "audio",
            "captions"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "name",
        "updatedAt",
        "workspaceId",
        "edl",
        "revision",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "project"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/studio/projects/{id}

Read the project edit and recent jobs

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}

Responses

200 Saved project and recent jobs.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "edl": {
          "type": "object",
          "properties": {
            "version": {
              "type": "number",
              "const": 1
            },
            "clips": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "video"
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "speed": {
                        "default": 1,
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "muted": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "start",
                      "end",
                      "speed",
                      "muted"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "image"
                      },
                      "duration": {
                        "type": "number",
                        "minimum": 0.2,
                        "maximum": 30
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "duration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "style": {
              "type": "object",
              "properties": {
                "ratio": {
                  "default": "9:16",
                  "type": "string",
                  "enum": [
                    "9:16",
                    "1:1",
                    "4:5"
                  ]
                },
                "resolution": {
                  "type": "string",
                  "const": "1080p"
                },
                "background": {
                  "default": "color",
                  "type": "string",
                  "enum": [
                    "color",
                    "blur"
                  ]
                },
                "color": {
                  "default": "#17130f",
                  "type": "string",
                  "pattern": "^#[a-f\\d]{6}$"
                },
                "hookPreset": {
                  "default": "stacked",
                  "type": "string",
                  "enum": [
                    "stacked",
                    "headline",
                    "label"
                  ]
                },
                "captionPreset": {
                  "default": "pop",
                  "type": "string",
                  "enum": [
                    "pop",
                    "clean",
                    "off"
                  ]
                }
              },
              "required": [
                "ratio",
                "background",
                "color",
                "hookPreset",
                "captionPreset"
              ],
              "additionalProperties": false
            },
            "overlays": {
              "default": [],
              "maxItems": 12,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "position": {
                    "default": "top",
                    "type": "string",
                    "enum": [
                      "top",
                      "center"
                    ]
                  }
                },
                "required": [
                  "text",
                  "start",
                  "end",
                  "position"
                ],
                "additionalProperties": false
              }
            },
            "audio": {
              "default": {
                "mode": "original"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "original"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "mute"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "replace"
                    },
                    "mediaId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "volume": {
                      "default": 1,
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "required": [
                    "mode",
                    "mediaId",
                    "volume"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "captions": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "words": {
                      "maxItems": 1800,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "start": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          },
                          "end": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          }
                        },
                        "required": [
                          "text",
                          "start",
                          "end"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "language",
                    "words"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "version",
            "clips",
            "style",
            "overlays",
            "audio",
            "captions"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "name",
        "updatedAt",
        "workspaceId",
        "edl",
        "revision",
        "createdAt"
      ],
      "additionalProperties": false
    },
    "jobs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "render",
              "transcribe"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "waiting",
              "succeeded",
              "failed"
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "progress": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "outputMediaId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "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))$"
          },
          "captions": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "maxLength": 35
                  },
                  "words": {
                    "maxItems": 1800,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "start": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        },
                        "end": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 3600
                        }
                      },
                      "required": [
                        "text",
                        "start",
                        "end"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "language",
                  "words"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "state",
          "revision",
          "progress",
          "outputMediaId",
          "error",
          "createdAt",
          "captions"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "project",
    "jobs"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/studio/projects/{id}

Save the complete Studio edit

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "edl": {
      "type": "object",
      "properties": {
        "version": {
          "type": "number",
          "const": 1
        },
        "clips": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mediaId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "fit": {
                    "default": "crop",
                    "type": "string",
                    "enum": [
                      "crop",
                      "contain"
                    ]
                  },
                  "focusX": {
                    "default": 0.5,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "focusY": {
                    "default": 0.5,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "transition": {
                    "default": "cut",
                    "type": "string",
                    "enum": [
                      "cut",
                      "fade-black",
                      "fade-white"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "const": "video"
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 7200
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 7200
                  },
                  "speed": {
                    "default": 1,
                    "type": "number",
                    "minimum": 0.5,
                    "maximum": 2
                  },
                  "muted": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "mediaId",
                  "kind",
                  "start",
                  "end"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mediaId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "fit": {
                    "default": "crop",
                    "type": "string",
                    "enum": [
                      "crop",
                      "contain"
                    ]
                  },
                  "focusX": {
                    "default": 0.5,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "focusY": {
                    "default": 0.5,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "transition": {
                    "default": "cut",
                    "type": "string",
                    "enum": [
                      "cut",
                      "fade-black",
                      "fade-white"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "const": "image"
                  },
                  "duration": {
                    "type": "number",
                    "minimum": 0.2,
                    "maximum": 30
                  }
                },
                "required": [
                  "mediaId",
                  "kind",
                  "duration"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "style": {
          "type": "object",
          "properties": {
            "ratio": {
              "default": "9:16",
              "type": "string",
              "enum": [
                "9:16",
                "1:1",
                "4:5"
              ]
            },
            "resolution": {
              "type": "string",
              "const": "1080p"
            },
            "background": {
              "default": "color",
              "type": "string",
              "enum": [
                "color",
                "blur"
              ]
            },
            "color": {
              "default": "#17130f",
              "type": "string",
              "pattern": "^#[a-f\\d]{6}$"
            },
            "hookPreset": {
              "default": "stacked",
              "type": "string",
              "enum": [
                "stacked",
                "headline",
                "label"
              ]
            },
            "captionPreset": {
              "default": "pop",
              "type": "string",
              "enum": [
                "pop",
                "clean",
                "off"
              ]
            }
          },
          "additionalProperties": false
        },
        "overlays": {
          "default": [],
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "start": {
                "type": "number",
                "minimum": 0,
                "maximum": 3600
              },
              "end": {
                "type": "number",
                "minimum": 0,
                "maximum": 3600
              },
              "position": {
                "default": "top",
                "type": "string",
                "enum": [
                  "top",
                  "center"
                ]
              }
            },
            "required": [
              "text",
              "start",
              "end"
            ],
            "additionalProperties": false
          }
        },
        "audio": {
          "default": {
            "mode": "original"
          },
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "original"
                }
              },
              "required": [
                "mode"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "mute"
                }
              },
              "required": [
                "mode"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "replace"
                },
                "mediaId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "volume": {
                  "default": 1,
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              },
              "required": [
                "mode",
                "mediaId"
              ],
              "additionalProperties": false
            }
          ]
        },
        "captions": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "maxLength": 35
                },
                "words": {
                  "maxItems": 1800,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      }
                    },
                    "required": [
                      "text",
                      "start",
                      "end"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "language",
                "words"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "version",
        "clips",
        "style"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "name",
    "revision",
    "edl"
  ],
  "additionalProperties": false
}

Responses

200 Updated project and revision.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "edl": {
          "type": "object",
          "properties": {
            "version": {
              "type": "number",
              "const": 1
            },
            "clips": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "video"
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "speed": {
                        "default": 1,
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "muted": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "start",
                      "end",
                      "speed",
                      "muted"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "image"
                      },
                      "duration": {
                        "type": "number",
                        "minimum": 0.2,
                        "maximum": 30
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "duration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "style": {
              "type": "object",
              "properties": {
                "ratio": {
                  "default": "9:16",
                  "type": "string",
                  "enum": [
                    "9:16",
                    "1:1",
                    "4:5"
                  ]
                },
                "resolution": {
                  "type": "string",
                  "const": "1080p"
                },
                "background": {
                  "default": "color",
                  "type": "string",
                  "enum": [
                    "color",
                    "blur"
                  ]
                },
                "color": {
                  "default": "#17130f",
                  "type": "string",
                  "pattern": "^#[a-f\\d]{6}$"
                },
                "hookPreset": {
                  "default": "stacked",
                  "type": "string",
                  "enum": [
                    "stacked",
                    "headline",
                    "label"
                  ]
                },
                "captionPreset": {
                  "default": "pop",
                  "type": "string",
                  "enum": [
                    "pop",
                    "clean",
                    "off"
                  ]
                }
              },
              "required": [
                "ratio",
                "background",
                "color",
                "hookPreset",
                "captionPreset"
              ],
              "additionalProperties": false
            },
            "overlays": {
              "default": [],
              "maxItems": 12,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "position": {
                    "default": "top",
                    "type": "string",
                    "enum": [
                      "top",
                      "center"
                    ]
                  }
                },
                "required": [
                  "text",
                  "start",
                  "end",
                  "position"
                ],
                "additionalProperties": false
              }
            },
            "audio": {
              "default": {
                "mode": "original"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "original"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "mute"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "replace"
                    },
                    "mediaId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "volume": {
                      "default": 1,
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "required": [
                    "mode",
                    "mediaId",
                    "volume"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "captions": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "words": {
                      "maxItems": 1800,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "start": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          },
                          "end": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          }
                        },
                        "required": [
                          "text",
                          "start",
                          "end"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "language",
                    "words"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "version",
            "clips",
            "style",
            "overlays",
            "audio",
            "captions"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "name",
        "updatedAt",
        "workspaceId",
        "edl",
        "revision",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "project"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/studio/projects/{id}/template

Apply a reusable style to a Studio project

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "templateId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "templateId",
    "revision"
  ],
  "additionalProperties": false
}

Responses

200 Updated project and revision.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "edl": {
          "type": "object",
          "properties": {
            "version": {
              "type": "number",
              "const": 1
            },
            "clips": {
              "minItems": 1,
              "maxItems": 30,
              "type": "array",
              "items": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "video"
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 7200
                      },
                      "speed": {
                        "default": 1,
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "muted": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "start",
                      "end",
                      "speed",
                      "muted"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mediaId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fit": {
                        "default": "crop",
                        "type": "string",
                        "enum": [
                          "crop",
                          "contain"
                        ]
                      },
                      "focusX": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "focusY": {
                        "default": 0.5,
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "transition": {
                        "default": "cut",
                        "type": "string",
                        "enum": [
                          "cut",
                          "fade-black",
                          "fade-white"
                        ]
                      },
                      "kind": {
                        "type": "string",
                        "const": "image"
                      },
                      "duration": {
                        "type": "number",
                        "minimum": 0.2,
                        "maximum": 30
                      }
                    },
                    "required": [
                      "mediaId",
                      "fit",
                      "focusX",
                      "focusY",
                      "transition",
                      "kind",
                      "duration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "style": {
              "type": "object",
              "properties": {
                "ratio": {
                  "default": "9:16",
                  "type": "string",
                  "enum": [
                    "9:16",
                    "1:1",
                    "4:5"
                  ]
                },
                "resolution": {
                  "type": "string",
                  "const": "1080p"
                },
                "background": {
                  "default": "color",
                  "type": "string",
                  "enum": [
                    "color",
                    "blur"
                  ]
                },
                "color": {
                  "default": "#17130f",
                  "type": "string",
                  "pattern": "^#[a-f\\d]{6}$"
                },
                "hookPreset": {
                  "default": "stacked",
                  "type": "string",
                  "enum": [
                    "stacked",
                    "headline",
                    "label"
                  ]
                },
                "captionPreset": {
                  "default": "pop",
                  "type": "string",
                  "enum": [
                    "pop",
                    "clean",
                    "off"
                  ]
                }
              },
              "required": [
                "ratio",
                "background",
                "color",
                "hookPreset",
                "captionPreset"
              ],
              "additionalProperties": false
            },
            "overlays": {
              "default": [],
              "maxItems": 12,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "start": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "end": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3600
                  },
                  "position": {
                    "default": "top",
                    "type": "string",
                    "enum": [
                      "top",
                      "center"
                    ]
                  }
                },
                "required": [
                  "text",
                  "start",
                  "end",
                  "position"
                ],
                "additionalProperties": false
              }
            },
            "audio": {
              "default": {
                "mode": "original"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "original"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "mute"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "const": "replace"
                    },
                    "mediaId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "volume": {
                      "default": 1,
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "required": [
                    "mode",
                    "mediaId",
                    "volume"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "captions": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "language": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "words": {
                      "maxItems": 1800,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "start": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          },
                          "end": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3600
                          }
                        },
                        "required": [
                          "text",
                          "start",
                          "end"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "language",
                    "words"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "version",
            "clips",
            "style",
            "overlays",
            "audio",
            "captions"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "name",
        "updatedAt",
        "workspaceId",
        "edl",
        "revision",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "project"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/studio/projects/{id}/jobs

Queue a render or automatic captions

Uses the requested saved revision. A successful render returns a media-library ID ready to attach to a post.

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "kind": {
      "type": "string",
      "enum": [
        "render",
        "transcribe"
      ]
    }
  },
  "required": [
    "revision",
    "kind"
  ],
  "additionalProperties": false
}

Responses

202 Queued or active job. Poll its status for progress and results.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "kind": {
          "type": "string",
          "enum": [
            "render",
            "transcribe"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "waiting",
            "succeeded",
            "failed"
          ]
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "progress": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "outputMediaId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "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))$"
        },
        "captions": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "maxLength": 35
                },
                "words": {
                  "maxItems": 1800,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      }
                    },
                    "required": [
                      "text",
                      "start",
                      "end"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "language",
                "words"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "state",
        "revision",
        "progress",
        "outputMediaId",
        "error",
        "createdAt",
        "captions"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 A service is temporarily unavailable. Error code `service_unavailable`.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/studio/projects/{id}/jobs/{jobId}

Read Studio job status

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}
jobIdpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio job ID"}

Responses

200 Progress, error or result for a render or transcription.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "kind": {
          "type": "string",
          "enum": [
            "render",
            "transcribe"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "waiting",
            "succeeded",
            "failed"
          ]
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "progress": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "outputMediaId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "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))$"
        },
        "captions": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "maxLength": 35
                },
                "words": {
                  "maxItems": 1800,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80
                      },
                      "start": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      },
                      "end": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 3600
                      }
                    },
                    "required": [
                      "text",
                      "start",
                      "end"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "language",
                "words"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "kind",
        "state",
        "revision",
        "progress",
        "outputMediaId",
        "error",
        "createdAt",
        "captions"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/studio/projects/{id}/captions

Download saved Studio captions

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Studio project ID"}
formatqueryNo{"default":"srt","type":"string","enum":["srt","vtt"]}

Responses

200 Subtitle file in the selected format.
Response schema (200, application/x-subrip)
{
  "type": "string"
}
Response schema (200, text/vtt)
{
  "type": "string"
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/studio/templates

List reusable Studio templates

Allowed API key roles are editor, admin.

Responses

200 Available workspace templates.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "templates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "templates"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/studio/templates

Save a project's styling as a template

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "projectId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "name",
    "projectId",
    "revision"
  ],
  "additionalProperties": false
}

Responses

201 Created template.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "template": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "name": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "style": {
          "type": "object",
          "properties": {
            "ratio": {
              "default": "9:16",
              "type": "string",
              "enum": [
                "9:16",
                "1:1",
                "4:5"
              ]
            },
            "resolution": {
              "type": "string",
              "const": "1080p"
            },
            "background": {
              "default": "color",
              "type": "string",
              "enum": [
                "color",
                "blur"
              ]
            },
            "color": {
              "default": "#17130f",
              "type": "string",
              "pattern": "^#[a-f\\d]{6}$"
            },
            "hookPreset": {
              "default": "stacked",
              "type": "string",
              "enum": [
                "stacked",
                "headline",
                "label"
              ]
            },
            "captionPreset": {
              "default": "pop",
              "type": "string",
              "enum": [
                "pop",
                "clean",
                "off"
              ]
            }
          },
          "required": [
            "ratio",
            "background",
            "color",
            "hookPreset",
            "captionPreset"
          ],
          "additionalProperties": false
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "id",
        "name",
        "workspaceId",
        "style",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "template"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Posts

GET /api/v1/account-groups

List account groups

Allowed API key roles are editor, admin.

Responses

200 Workspace account groups.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "accountIds": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "name",
          "accountIds",
          "id",
          "workspaceId",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "groups"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/account-groups

Create an account group

Allowed API key roles are admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "accountIds": {
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    }
  },
  "required": [
    "name",
    "accountIds"
  ],
  "additionalProperties": false
}

Responses

201 Created account group.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "group": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "accountIds": {
          "maxItems": 25,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "name",
        "accountIds",
        "id",
        "workspaceId",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "group"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PUT /api/v1/account-groups/{id}

Replace a account group

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Account group ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "accountIds": {
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    }
  },
  "required": [
    "name",
    "accountIds"
  ],
  "additionalProperties": false
}

Responses

200 Updated account group.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "group": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "accountIds": {
          "maxItems": 25,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "name",
        "accountIds",
        "id",
        "workspaceId",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "group"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
DELETE /api/v1/account-groups/{id}

Delete a account group

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Account group ID"}

Responses

204 Deleted account group.
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/posting-presets

List posting presets

Allowed API key roles are editor, admin.

Responses

200 Workspace posting presets.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "presets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "groupId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "accountIds": {
            "default": [],
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          "overrides": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string",
              "enum": [
                "instagram",
                "facebook",
                "youtube",
                "tiktok",
                "fake",
                "bluesky",
                "threads",
                "linkedin",
                "x",
                "pinterest",
                "google_business_profile",
                "mastodon",
                "telegram",
                "discord",
                "slack",
                "tumblr"
              ]
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "privacy": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "tiktokMode": {
                  "type": "string",
                  "enum": [
                    "direct",
                    "inbox"
                  ]
                },
                "boardId": {
                  "type": "string",
                  "pattern": "^\\d{1,64}$"
                },
                "madeForKids": {
                  "type": "boolean"
                },
                "allowComments": {
                  "type": "boolean"
                },
                "allowDuet": {
                  "type": "boolean"
                },
                "allowStitch": {
                  "type": "boolean"
                },
                "brandContent": {
                  "type": "boolean"
                },
                "ownBrand": {
                  "type": "boolean"
                },
                "instagramFormat": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "story"
                  ]
                },
                "trialGraduation": {
                  "type": "string",
                  "enum": [
                    "MANUAL",
                    "SS_PERFORMANCE"
                  ]
                },
                "collaborators": {
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z0-9._]{1,30}$"
                  }
                },
                "userTags": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "username": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      },
                      "x": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "y": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "mediaIndex": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 19
                      }
                    },
                    "required": [
                      "username"
                    ],
                    "additionalProperties": false
                  }
                },
                "locationId": {
                  "type": "string",
                  "pattern": "^\\d{1,64}$"
                },
                "aiGenerated": {
                  "type": "boolean"
                },
                "altText": {
                  "type": "string",
                  "maxLength": 1000
                },
                "imageAltTexts": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "youtubeFormat": {
                  "type": "string",
                  "enum": [
                    "short",
                    "video"
                  ]
                },
                "youtubeCaptions": {
                  "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                  "type": "string",
                  "enum": [
                    "srt",
                    "vtt"
                  ]
                },
                "thumbnailMediaId": {
                  "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "publishAt": {
                  "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "categoryId": {
                  "type": "string",
                  "pattern": "^\\d{1,64}$"
                },
                "defaultLanguage": {
                  "type": "string",
                  "maxLength": 35
                },
                "playlistIds": {
                  "maxItems": 25,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[a-z0-9_-]{1,128}$"
                  }
                },
                "paidPromotion": {
                  "type": "boolean"
                },
                "notifySubscribers": {
                  "type": "boolean"
                },
                "autoAddMusic": {
                  "type": "boolean"
                },
                "coverFrameSeconds": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "link": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "facebookFormat": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "story"
                  ]
                },
                "documentTitle": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "linkedinVisibility": {
                  "type": "string",
                  "enum": [
                    "PUBLIC",
                    "CONNECTIONS",
                    "LOGGED_IN"
                  ]
                },
                "threadsReplyControl": {
                  "type": "string",
                  "enum": [
                    "everyone",
                    "accounts_you_follow",
                    "mentioned_only",
                    "followers_only"
                  ]
                },
                "threadsReplyApprovals": {
                  "type": "boolean"
                },
                "xReplySettings": {
                  "type": "string",
                  "enum": [
                    "following",
                    "mentionedUsers",
                    "subscribers",
                    "verified"
                  ]
                },
                "subscribersOnly": {
                  "type": "boolean"
                },
                "caption": {
                  "type": "string",
                  "maxLength": 10000
                },
                "title": {
                  "type": "string",
                  "maxLength": 500
                },
                "description": {
                  "type": "string",
                  "maxLength": 10000
                },
                "cover": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "photoCoverIndex": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 34
                },
                "thumbOffset": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "shareToFeed": {
                  "type": "boolean"
                },
                "hashtags": {
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                  }
                },
                "tags": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "businessProfile": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "languageCode": {
                          "type": "string",
                          "maxLength": 32,
                          "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                        },
                        "callToAction": {
                          "type": "object",
                          "properties": {
                            "actionType": {
                              "type": "string",
                              "enum": [
                                "BOOK",
                                "ORDER",
                                "SHOP",
                                "LEARN_MORE",
                                "SIGN_UP",
                                "CALL"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "actionType"
                          ],
                          "additionalProperties": false
                        },
                        "topicType": {
                          "type": "string",
                          "const": "STANDARD"
                        }
                      },
                      "required": [
                        "topicType"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "languageCode": {
                          "type": "string",
                          "maxLength": 32,
                          "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                        },
                        "callToAction": {
                          "type": "object",
                          "properties": {
                            "actionType": {
                              "type": "string",
                              "enum": [
                                "BOOK",
                                "ORDER",
                                "SHOP",
                                "LEARN_MORE",
                                "SIGN_UP",
                                "CALL"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "actionType"
                          ],
                          "additionalProperties": false
                        },
                        "topicType": {
                          "type": "string",
                          "const": "EVENT"
                        },
                        "event": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "maxLength": 58
                            },
                            "startDate": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "endDate": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "startTime": {
                              "type": "string",
                              "pattern": "^\\d{2}:\\d{2}$"
                            },
                            "endTime": {
                              "type": "string",
                              "pattern": "^\\d{2}:\\d{2}$"
                            }
                          },
                          "required": [
                            "title",
                            "startDate",
                            "endDate"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "topicType",
                        "event"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "languageCode": {
                          "type": "string",
                          "maxLength": 32,
                          "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                        },
                        "callToAction": {
                          "type": "object",
                          "properties": {
                            "actionType": {
                              "type": "string",
                              "enum": [
                                "BOOK",
                                "ORDER",
                                "SHOP",
                                "LEARN_MORE",
                                "SIGN_UP",
                                "CALL"
                              ]
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "actionType"
                          ],
                          "additionalProperties": false
                        },
                        "topicType": {
                          "type": "string",
                          "const": "OFFER"
                        },
                        "event": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "maxLength": 58
                            },
                            "startDate": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "endDate": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "startTime": {
                              "type": "string",
                              "pattern": "^\\d{2}:\\d{2}$"
                            },
                            "endTime": {
                              "type": "string",
                              "pattern": "^\\d{2}:\\d{2}$"
                            }
                          },
                          "required": [
                            "title",
                            "startDate",
                            "endDate"
                          ],
                          "additionalProperties": false
                        },
                        "offer": {
                          "type": "object",
                          "properties": {
                            "couponCode": {
                              "type": "string",
                              "maxLength": 58
                            },
                            "redeemOnlineUrl": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            },
                            "termsConditions": {
                              "type": "string",
                              "maxLength": 5000
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "topicType",
                        "event"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "threadItems": {
                  "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                  "minItems": 1,
                  "maxItems": 25,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "caption": {
                        "type": "string",
                        "maxLength": 10000
                      },
                      "mediaIds": {
                        "maxItems": 35,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "replyTo": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      },
                      "quotePost": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "caption"
                    ],
                    "additionalProperties": false
                  }
                },
                "firstComment": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000
                }
              },
              "additionalProperties": false
            }
          },
          "mode": {
            "default": "manual",
            "type": "string",
            "enum": [
              "manual",
              "queue",
              "best_hours",
              "delay"
            ]
          },
          "delayMinutes": {
            "default": null,
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 43200
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "name",
          "groupId",
          "accountIds",
          "overrides",
          "mode",
          "delayMinutes",
          "id",
          "workspaceId",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "presets"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/posting-presets

Create an posting preset

Allowed API key roles are admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "groupId": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "accountIds": {
      "default": [],
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "overrides": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string",
        "enum": [
          "instagram",
          "facebook",
          "youtube",
          "tiktok",
          "fake",
          "bluesky",
          "threads",
          "linkedin",
          "x",
          "pinterest",
          "google_business_profile",
          "mastodon",
          "telegram",
          "discord",
          "slack",
          "tumblr"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "privacy": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "tiktokMode": {
            "type": "string",
            "enum": [
              "direct",
              "inbox"
            ]
          },
          "boardId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "madeForKids": {
            "type": "boolean"
          },
          "allowComments": {
            "type": "boolean"
          },
          "allowDuet": {
            "type": "boolean"
          },
          "allowStitch": {
            "type": "boolean"
          },
          "brandContent": {
            "type": "boolean"
          },
          "ownBrand": {
            "type": "boolean"
          },
          "instagramFormat": {
            "type": "string",
            "enum": [
              "auto",
              "story"
            ]
          },
          "trialGraduation": {
            "type": "string",
            "enum": [
              "MANUAL",
              "SS_PERFORMANCE"
            ]
          },
          "collaborators": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9._]{1,30}$"
            }
          },
          "userTags": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "username": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                },
                "x": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "y": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "mediaIndex": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 19
                }
              },
              "required": [
                "username"
              ],
              "additionalProperties": false
            }
          },
          "locationId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "aiGenerated": {
            "type": "boolean"
          },
          "altText": {
            "type": "string",
            "maxLength": 1000
          },
          "imageAltTexts": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "youtubeFormat": {
            "type": "string",
            "enum": [
              "short",
              "video"
            ]
          },
          "youtubeCaptions": {
            "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
            "type": "string",
            "enum": [
              "srt",
              "vtt"
            ]
          },
          "thumbnailMediaId": {
            "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "publishAt": {
            "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "categoryId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "defaultLanguage": {
            "type": "string",
            "maxLength": 35
          },
          "playlistIds": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9_-]{1,128}$"
            }
          },
          "paidPromotion": {
            "type": "boolean"
          },
          "notifySubscribers": {
            "type": "boolean"
          },
          "autoAddMusic": {
            "type": "boolean"
          },
          "coverFrameSeconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "link": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "facebookFormat": {
            "type": "string",
            "enum": [
              "auto",
              "story"
            ]
          },
          "documentTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "linkedinVisibility": {
            "type": "string",
            "enum": [
              "PUBLIC",
              "CONNECTIONS",
              "LOGGED_IN"
            ]
          },
          "threadsReplyControl": {
            "type": "string",
            "enum": [
              "everyone",
              "accounts_you_follow",
              "mentioned_only",
              "followers_only"
            ]
          },
          "threadsReplyApprovals": {
            "type": "boolean"
          },
          "xReplySettings": {
            "type": "string",
            "enum": [
              "following",
              "mentionedUsers",
              "subscribers",
              "verified"
            ]
          },
          "subscribersOnly": {
            "type": "boolean"
          },
          "caption": {
            "type": "string",
            "maxLength": 10000
          },
          "title": {
            "type": "string",
            "maxLength": 500
          },
          "description": {
            "type": "string",
            "maxLength": 10000
          },
          "cover": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "photoCoverIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 34
          },
          "thumbOffset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "shareToFeed": {
            "type": "boolean"
          },
          "hashtags": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
            }
          },
          "tags": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "businessProfile": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "STANDARD"
                  }
                },
                "required": [
                  "topicType"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "EVENT"
                  },
                  "event": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "startDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "endDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "startTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "endTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    },
                    "required": [
                      "title",
                      "startDate",
                      "endDate"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "topicType",
                  "event"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "OFFER"
                  },
                  "event": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "startDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "endDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "startTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "endTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    },
                    "required": [
                      "title",
                      "startDate",
                      "endDate"
                    ],
                    "additionalProperties": false
                  },
                  "offer": {
                    "type": "object",
                    "properties": {
                      "couponCode": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "redeemOnlineUrl": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      },
                      "termsConditions": {
                        "type": "string",
                        "maxLength": 5000
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "topicType",
                  "event"
                ],
                "additionalProperties": false
              }
            ]
          },
          "threadItems": {
            "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "caption": {
                  "type": "string",
                  "maxLength": 10000
                },
                "mediaIds": {
                  "maxItems": 35,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "replyTo": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "quotePost": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                }
              },
              "required": [
                "caption"
              ],
              "additionalProperties": false
            }
          },
          "firstComment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          }
        },
        "additionalProperties": false
      }
    },
    "mode": {
      "default": "manual",
      "type": "string",
      "enum": [
        "manual",
        "queue",
        "best_hours",
        "delay"
      ]
    },
    "delayMinutes": {
      "default": null,
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 43200
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Responses

201 Created posting preset.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "preset": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "groupId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "accountIds": {
          "default": [],
          "maxItems": 25,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "overrides": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "mode": {
          "default": "manual",
          "type": "string",
          "enum": [
            "manual",
            "queue",
            "best_hours",
            "delay"
          ]
        },
        "delayMinutes": {
          "default": null,
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 43200
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "name",
        "groupId",
        "accountIds",
        "overrides",
        "mode",
        "delayMinutes",
        "id",
        "workspaceId",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "preset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PUT /api/v1/posting-presets/{id}

Replace a posting preset

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Posting preset ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "groupId": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "accountIds": {
      "default": [],
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "overrides": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string",
        "enum": [
          "instagram",
          "facebook",
          "youtube",
          "tiktok",
          "fake",
          "bluesky",
          "threads",
          "linkedin",
          "x",
          "pinterest",
          "google_business_profile",
          "mastodon",
          "telegram",
          "discord",
          "slack",
          "tumblr"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "privacy": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "tiktokMode": {
            "type": "string",
            "enum": [
              "direct",
              "inbox"
            ]
          },
          "boardId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "madeForKids": {
            "type": "boolean"
          },
          "allowComments": {
            "type": "boolean"
          },
          "allowDuet": {
            "type": "boolean"
          },
          "allowStitch": {
            "type": "boolean"
          },
          "brandContent": {
            "type": "boolean"
          },
          "ownBrand": {
            "type": "boolean"
          },
          "instagramFormat": {
            "type": "string",
            "enum": [
              "auto",
              "story"
            ]
          },
          "trialGraduation": {
            "type": "string",
            "enum": [
              "MANUAL",
              "SS_PERFORMANCE"
            ]
          },
          "collaborators": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9._]{1,30}$"
            }
          },
          "userTags": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "username": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                },
                "x": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "y": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "mediaIndex": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 19
                }
              },
              "required": [
                "username"
              ],
              "additionalProperties": false
            }
          },
          "locationId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "aiGenerated": {
            "type": "boolean"
          },
          "altText": {
            "type": "string",
            "maxLength": 1000
          },
          "imageAltTexts": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "youtubeFormat": {
            "type": "string",
            "enum": [
              "short",
              "video"
            ]
          },
          "youtubeCaptions": {
            "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
            "type": "string",
            "enum": [
              "srt",
              "vtt"
            ]
          },
          "thumbnailMediaId": {
            "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "publishAt": {
            "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "categoryId": {
            "type": "string",
            "pattern": "^\\d{1,64}$"
          },
          "defaultLanguage": {
            "type": "string",
            "maxLength": 35
          },
          "playlistIds": {
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z0-9_-]{1,128}$"
            }
          },
          "paidPromotion": {
            "type": "boolean"
          },
          "notifySubscribers": {
            "type": "boolean"
          },
          "autoAddMusic": {
            "type": "boolean"
          },
          "coverFrameSeconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "link": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "facebookFormat": {
            "type": "string",
            "enum": [
              "auto",
              "story"
            ]
          },
          "documentTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "linkedinVisibility": {
            "type": "string",
            "enum": [
              "PUBLIC",
              "CONNECTIONS",
              "LOGGED_IN"
            ]
          },
          "threadsReplyControl": {
            "type": "string",
            "enum": [
              "everyone",
              "accounts_you_follow",
              "mentioned_only",
              "followers_only"
            ]
          },
          "threadsReplyApprovals": {
            "type": "boolean"
          },
          "xReplySettings": {
            "type": "string",
            "enum": [
              "following",
              "mentionedUsers",
              "subscribers",
              "verified"
            ]
          },
          "subscribersOnly": {
            "type": "boolean"
          },
          "caption": {
            "type": "string",
            "maxLength": 10000
          },
          "title": {
            "type": "string",
            "maxLength": 500
          },
          "description": {
            "type": "string",
            "maxLength": 10000
          },
          "cover": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "photoCoverIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 34
          },
          "thumbOffset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "shareToFeed": {
            "type": "boolean"
          },
          "hashtags": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
            }
          },
          "tags": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "businessProfile": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "STANDARD"
                  }
                },
                "required": [
                  "topicType"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "EVENT"
                  },
                  "event": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "startDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "endDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "startTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "endTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    },
                    "required": [
                      "title",
                      "startDate",
                      "endDate"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "topicType",
                  "event"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "languageCode": {
                    "type": "string",
                    "maxLength": 32,
                    "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                  },
                  "callToAction": {
                    "type": "object",
                    "properties": {
                      "actionType": {
                        "type": "string",
                        "enum": [
                          "BOOK",
                          "ORDER",
                          "SHOP",
                          "LEARN_MORE",
                          "SIGN_UP",
                          "CALL"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "actionType"
                    ],
                    "additionalProperties": false
                  },
                  "topicType": {
                    "type": "string",
                    "const": "OFFER"
                  },
                  "event": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "startDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "endDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "startTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "endTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    },
                    "required": [
                      "title",
                      "startDate",
                      "endDate"
                    ],
                    "additionalProperties": false
                  },
                  "offer": {
                    "type": "object",
                    "properties": {
                      "couponCode": {
                        "type": "string",
                        "maxLength": 58
                      },
                      "redeemOnlineUrl": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      },
                      "termsConditions": {
                        "type": "string",
                        "maxLength": 5000
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "topicType",
                  "event"
                ],
                "additionalProperties": false
              }
            ]
          },
          "threadItems": {
            "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "caption": {
                  "type": "string",
                  "maxLength": 10000
                },
                "mediaIds": {
                  "maxItems": 35,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "replyTo": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "quotePost": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                }
              },
              "required": [
                "caption"
              ],
              "additionalProperties": false
            }
          },
          "firstComment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          }
        },
        "additionalProperties": false
      }
    },
    "mode": {
      "default": "manual",
      "type": "string",
      "enum": [
        "manual",
        "queue",
        "best_hours",
        "delay"
      ]
    },
    "delayMinutes": {
      "default": null,
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 43200
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Responses

200 Updated posting preset.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "preset": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "groupId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ]
        },
        "accountIds": {
          "default": [],
          "maxItems": 25,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "overrides": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "mode": {
          "default": "manual",
          "type": "string",
          "enum": [
            "manual",
            "queue",
            "best_hours",
            "delay"
          ]
        },
        "delayMinutes": {
          "default": null,
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 43200
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        }
      },
      "required": [
        "name",
        "groupId",
        "accountIds",
        "overrides",
        "mode",
        "delayMinutes",
        "id",
        "workspaceId",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "preset"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
DELETE /api/v1/posting-presets/{id}

Delete a posting preset

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Posting preset ID"}

Responses

204 Deleted posting preset.
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/posts

List posts

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
limitqueryNo{"default":25,"type":"integer","minimum":1,"maximum":100}
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}
statusqueryNo{"type":"string","enum":["scheduled","queued","publishing","processing","published","partially_published","failed","unknown","cancelled","draft","delivered","pending_approval"]}

Responses

200 Newest posts first.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "caption": {
            "type": "string"
          },
          "shortenLinks": {
            "type": "boolean"
          },
          "mediaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          "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"
              }
            ]
          },
          "approvalUseBestHours": {
            "type": "boolean"
          },
          "approvalRequired": {
            "type": "boolean"
          },
          "approvalDecision": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "approved",
                  "rejected"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "approvalComment": {
            "type": [
              "string",
              "null"
            ]
          },
          "approvalDecidedAt": {
            "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"
              }
            ]
          },
          "approvalDecidedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "inQueue": {
            "type": "boolean"
          },
          "revision": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "queued",
              "publishing",
              "processing",
              "published",
              "partially_published",
              "failed",
              "unknown",
              "cancelled",
              "draft",
              "delivered",
              "pending_approval"
            ]
          },
          "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))$"
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "postId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "socialAccountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "handle": {
                  "type": "string"
                },
                "platform": {
                  "type": "string",
                  "enum": [
                    "instagram",
                    "facebook",
                    "youtube",
                    "tiktok",
                    "fake",
                    "bluesky",
                    "threads",
                    "linkedin",
                    "x",
                    "pinterest",
                    "google_business_profile",
                    "mastodon",
                    "telegram",
                    "discord",
                    "slack",
                    "tumblr"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "scheduled",
                    "queued",
                    "publishing",
                    "processing",
                    "published",
                    "failed",
                    "unknown",
                    "cancelled",
                    "draft",
                    "delivered",
                    "pending_approval"
                  ]
                },
                "attempts": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "externalUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lastError": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "retryAt": {
                  "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"
                    }
                  ]
                },
                "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"
                    }
                  ]
                },
                "overrides": {
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                },
                "firstCommentStatus": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "published",
                        "failed",
                        "unknown"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "firstCommentError": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "postId",
                "socialAccountId",
                "handle",
                "platform",
                "status",
                "attempts",
                "externalId",
                "externalUrl",
                "lastError",
                "retryAt",
                "publishedAt",
                "overrides",
                "firstCommentStatus",
                "firstCommentError"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "workspaceId",
          "caption",
          "shortenLinks",
          "mediaIds",
          "scheduledAt",
          "approvalUseBestHours",
          "approvalRequired",
          "approvalDecision",
          "approvalComment",
          "approvalDecidedAt",
          "approvalDecidedBy",
          "inQueue",
          "revision",
          "status",
          "createdAt",
          "targets"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "posts"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/posts

Create or validate a post

Choose at most one of draft, a future scheduledAt, or addToQueue. With all three omitted, publishing starts asynchronously. Use mediaFiles only for a dry run without mediaIds. Select distinct media and destinations. Pinterest can target several boards on one account.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "caption": {
      "default": "",
      "type": "string",
      "maxLength": 10000
    },
    "mediaIds": {
      "default": [],
      "maxItems": 35,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "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"
        }
      ]
    },
    "addToQueue": {
      "type": "boolean"
    },
    "useBestHours": {
      "type": "boolean"
    },
    "draft": {
      "type": "boolean"
    },
    "shortenLinks": {
      "type": "boolean"
    },
    "targets": {
      "default": [],
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      }
    },
    "groupId": {
      "description": "Use the current members of an account group.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "presetId": {
      "description": "Apply a posting preset. Explicit scheduling and target overrides take precedence.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "dryRun": {
      "default": false,
      "type": "boolean"
    },
    "mediaFiles": {
      "minItems": 1,
      "maxItems": 35,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mimeType": {
            "type": "string",
            "enum": [
              "video/mp4",
              "video/quicktime",
              "video/webm",
              "image/jpeg",
              "image/png",
              "image/webp",
              "application/pdf"
            ]
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 1073741824
          },
          "durationSeconds": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "width": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "height": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          }
        },
        "required": [
          "mimeType",
          "sizeBytes"
        ],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}

Responses

200 Dry-run result. Check valid and the top-level and per-target issues, including schedule conflicts.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "field",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "boardId": {
            "type": "string"
          },
          "platform": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "fake",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "google_business_profile",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "handle": {
            "type": [
              "string",
              "null"
            ]
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "field",
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "accountId",
          "platform",
          "handle",
          "issues"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "valid",
    "issues",
    "targets"
  ],
  "additionalProperties": false
}
201 Saved post and targets.
HeaderMeaning
LocationRelative URL of the saved post.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "caption": {
      "type": "string"
    },
    "shortenLinks": {
      "type": "boolean"
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "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"
        }
      ]
    },
    "approvalUseBestHours": {
      "type": "boolean"
    },
    "approvalRequired": {
      "type": "boolean"
    },
    "approvalDecision": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "approved",
            "rejected"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "approvalComment": {
      "type": [
        "string",
        "null"
      ]
    },
    "approvalDecidedAt": {
      "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"
        }
      ]
    },
    "approvalDecidedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "inQueue": {
      "type": "boolean"
    },
    "revision": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "queued",
        "publishing",
        "processing",
        "published",
        "partially_published",
        "failed",
        "unknown",
        "cancelled",
        "draft",
        "delivered",
        "pending_approval"
      ]
    },
    "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))$"
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "socialAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "handle": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "queued",
              "publishing",
              "processing",
              "published",
              "failed",
              "unknown",
              "cancelled",
              "draft",
              "delivered",
              "pending_approval"
            ]
          },
          "attempts": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "externalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "externalUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "retryAt": {
            "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"
              }
            ]
          },
          "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"
              }
            ]
          },
          "overrides": {
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          },
          "firstCommentStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "sending",
                  "published",
                  "failed",
                  "unknown"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "firstCommentError": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "postId",
          "socialAccountId",
          "handle",
          "platform",
          "status",
          "attempts",
          "externalId",
          "externalUrl",
          "lastError",
          "retryAt",
          "publishedAt",
          "overrides",
          "firstCommentStatus",
          "firstCommentError"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "id",
    "workspaceId",
    "caption",
    "shortenLinks",
    "mediaIds",
    "scheduledAt",
    "approvalUseBestHours",
    "approvalRequired",
    "approvalDecision",
    "approvalComment",
    "approvalDecidedAt",
    "approvalDecidedBy",
    "inQueue",
    "revision",
    "status",
    "createdAt",
    "targets"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 A service is temporarily unavailable. Error code `service_unavailable`.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/posts/bulk

Schedule or validate a batch

Send either posts or csv. Each row needs a future publish time, spacing, or a queue preset. Supply groupId or presetId once for the batch or per JSON post. CSV account IDs can be blank when a selection is supplied.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "csv": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256000
    },
    "posts": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "caption": {
            "default": "",
            "type": "string",
            "maxLength": 10000
          },
          "mediaIds": {
            "default": [],
            "maxItems": 35,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          "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"
              }
            ]
          },
          "addToQueue": {
            "type": "boolean"
          },
          "useBestHours": {
            "type": "boolean"
          },
          "draft": {
            "type": "boolean"
          },
          "shortenLinks": {
            "type": "boolean"
          },
          "targets": {
            "default": [],
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "overrides": {
                  "default": {},
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "accountId"
              ],
              "additionalProperties": false
            }
          },
          "groupId": {
            "description": "Use the current members of an account group.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "presetId": {
            "description": "Apply a posting preset. Explicit scheduling and target overrides take precedence.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "additionalProperties": false
      }
    },
    "groupId": {
      "description": "Use the current members of an account group.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "presetId": {
      "description": "Apply a posting preset. Explicit scheduling and target overrides take precedence.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "spacing": {
      "type": "object",
      "properties": {
        "startAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "intervalMinutes": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 43200
        }
      },
      "required": [
        "startAt",
        "intervalMinutes"
      ],
      "additionalProperties": false
    },
    "dryRun": {
      "default": false,
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

Responses

200 Dry-run results, including invalid rows.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "field",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "boardId": {
                  "type": "string"
                },
                "platform": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "instagram",
                        "facebook",
                        "youtube",
                        "tiktok",
                        "fake",
                        "bluesky",
                        "threads",
                        "linkedin",
                        "x",
                        "pinterest",
                        "google_business_profile",
                        "mastodon",
                        "telegram",
                        "discord",
                        "slack",
                        "tumblr"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "handle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "issues": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "accountId",
                "platform",
                "handle",
                "issues"
              ],
              "additionalProperties": false
            }
          },
          "row": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "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"
              }
            ]
          },
          "mediaVerified": {
            "type": "boolean"
          }
        },
        "required": [
          "valid",
          "issues",
          "targets",
          "row",
          "scheduledAt",
          "mediaVerified"
        ],
        "additionalProperties": false
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "row",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "dryRun": {
      "type": "boolean",
      "const": true
    },
    "valid": {
      "type": "boolean"
    }
  },
  "required": [
    "results",
    "errors",
    "dryRun",
    "valid"
  ],
  "additionalProperties": false
}
201 Batch saved.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "field",
                "message"
              ],
              "additionalProperties": false
            }
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "boardId": {
                  "type": "string"
                },
                "platform": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "instagram",
                        "facebook",
                        "youtube",
                        "tiktok",
                        "fake",
                        "bluesky",
                        "threads",
                        "linkedin",
                        "x",
                        "pinterest",
                        "google_business_profile",
                        "mastodon",
                        "telegram",
                        "discord",
                        "slack",
                        "tumblr"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "handle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "issues": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "accountId",
                "platform",
                "handle",
                "issues"
              ],
              "additionalProperties": false
            }
          },
          "row": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "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"
              }
            ]
          },
          "mediaVerified": {
            "type": "boolean"
          }
        },
        "required": [
          "valid",
          "issues",
          "targets",
          "row",
          "scheduledAt",
          "mediaVerified"
        ],
        "additionalProperties": false
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "row",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "dryRun": {
      "type": "boolean",
      "const": false
    },
    "valid": {
      "type": "boolean",
      "const": true
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "caption": {
            "type": "string"
          },
          "shortenLinks": {
            "type": "boolean"
          },
          "mediaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          "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"
              }
            ]
          },
          "approvalUseBestHours": {
            "type": "boolean"
          },
          "approvalRequired": {
            "type": "boolean"
          },
          "approvalDecision": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "approved",
                  "rejected"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "approvalComment": {
            "type": [
              "string",
              "null"
            ]
          },
          "approvalDecidedAt": {
            "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"
              }
            ]
          },
          "approvalDecidedBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "inQueue": {
            "type": "boolean"
          },
          "revision": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "queued",
              "publishing",
              "processing",
              "published",
              "partially_published",
              "failed",
              "unknown",
              "cancelled",
              "draft",
              "delivered",
              "pending_approval"
            ]
          },
          "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))$"
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "postId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "socialAccountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "handle": {
                  "type": "string"
                },
                "platform": {
                  "type": "string",
                  "enum": [
                    "instagram",
                    "facebook",
                    "youtube",
                    "tiktok",
                    "fake",
                    "bluesky",
                    "threads",
                    "linkedin",
                    "x",
                    "pinterest",
                    "google_business_profile",
                    "mastodon",
                    "telegram",
                    "discord",
                    "slack",
                    "tumblr"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "scheduled",
                    "queued",
                    "publishing",
                    "processing",
                    "published",
                    "failed",
                    "unknown",
                    "cancelled",
                    "draft",
                    "delivered",
                    "pending_approval"
                  ]
                },
                "attempts": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "externalUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lastError": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "retryAt": {
                  "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"
                    }
                  ]
                },
                "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"
                    }
                  ]
                },
                "overrides": {
                  "type": "object",
                  "properties": {
                    "privacy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "tiktokMode": {
                      "type": "string",
                      "enum": [
                        "direct",
                        "inbox"
                      ]
                    },
                    "boardId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "madeForKids": {
                      "type": "boolean"
                    },
                    "allowComments": {
                      "type": "boolean"
                    },
                    "allowDuet": {
                      "type": "boolean"
                    },
                    "allowStitch": {
                      "type": "boolean"
                    },
                    "brandContent": {
                      "type": "boolean"
                    },
                    "ownBrand": {
                      "type": "boolean"
                    },
                    "instagramFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "trialGraduation": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "SS_PERFORMANCE"
                      ]
                    },
                    "collaborators": {
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9._]{1,30}$"
                      }
                    },
                    "userTags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "username": {
                            "type": "string",
                            "pattern": "^[a-z0-9._]{1,30}$"
                          },
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "mediaIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 19
                          }
                        },
                        "required": [
                          "username"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "locationId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "aiGenerated": {
                      "type": "boolean"
                    },
                    "altText": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "imageAltTexts": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 1000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "youtubeFormat": {
                      "type": "string",
                      "enum": [
                        "short",
                        "video"
                      ]
                    },
                    "youtubeCaptions": {
                      "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                      "type": "string",
                      "enum": [
                        "srt",
                        "vtt"
                      ]
                    },
                    "thumbnailMediaId": {
                      "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "publishAt": {
                      "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "categoryId": {
                      "type": "string",
                      "pattern": "^\\d{1,64}$"
                    },
                    "defaultLanguage": {
                      "type": "string",
                      "maxLength": 35
                    },
                    "playlistIds": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-z0-9_-]{1,128}$"
                      }
                    },
                    "paidPromotion": {
                      "type": "boolean"
                    },
                    "notifySubscribers": {
                      "type": "boolean"
                    },
                    "autoAddMusic": {
                      "type": "boolean"
                    },
                    "coverFrameSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "facebookFormat": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "story"
                      ]
                    },
                    "documentTitle": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "linkedinVisibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "CONNECTIONS",
                        "LOGGED_IN"
                      ]
                    },
                    "threadsReplyControl": {
                      "type": "string",
                      "enum": [
                        "everyone",
                        "accounts_you_follow",
                        "mentioned_only",
                        "followers_only"
                      ]
                    },
                    "threadsReplyApprovals": {
                      "type": "boolean"
                    },
                    "xReplySettings": {
                      "type": "string",
                      "enum": [
                        "following",
                        "mentionedUsers",
                        "subscribers",
                        "verified"
                      ]
                    },
                    "subscribersOnly": {
                      "type": "boolean"
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "cover": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    },
                    "photoCoverIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 34
                    },
                    "thumbOffset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "shareToFeed": {
                      "type": "boolean"
                    },
                    "hashtags": {
                      "maxItems": 30,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                      }
                    },
                    "tags": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "businessProfile": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "STANDARD"
                            }
                          },
                          "required": [
                            "topicType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "EVENT"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "languageCode": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                            },
                            "callToAction": {
                              "type": "object",
                              "properties": {
                                "actionType": {
                                  "type": "string",
                                  "enum": [
                                    "BOOK",
                                    "ORDER",
                                    "SHOP",
                                    "LEARN_MORE",
                                    "SIGN_UP",
                                    "CALL"
                                  ]
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "actionType"
                              ],
                              "additionalProperties": false
                            },
                            "topicType": {
                              "type": "string",
                              "const": "OFFER"
                            },
                            "event": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "startDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "endDate": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                },
                                "startTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                },
                                "endTime": {
                                  "type": "string",
                                  "pattern": "^\\d{2}:\\d{2}$"
                                }
                              },
                              "required": [
                                "title",
                                "startDate",
                                "endDate"
                              ],
                              "additionalProperties": false
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "couponCode": {
                                  "type": "string",
                                  "maxLength": 58
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "maxLength": 2048,
                                  "format": "uri"
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "maxLength": 5000
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "topicType",
                            "event"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "threadItems": {
                      "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                      "minItems": 1,
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "caption": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "mediaIds": {
                            "maxItems": 35,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "replyTo": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "quotePost": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          }
                        },
                        "required": [
                          "caption"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "firstComment": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000
                    }
                  },
                  "additionalProperties": false
                },
                "firstCommentStatus": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "published",
                        "failed",
                        "unknown"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "firstCommentError": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "postId",
                "socialAccountId",
                "handle",
                "platform",
                "status",
                "attempts",
                "externalId",
                "externalUrl",
                "lastError",
                "retryAt",
                "publishedAt",
                "overrides",
                "firstCommentStatus",
                "firstCommentError"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "workspaceId",
          "caption",
          "shortenLinks",
          "mediaIds",
          "scheduledAt",
          "approvalUseBestHours",
          "approvalRequired",
          "approvalDecision",
          "approvalComment",
          "approvalDecidedAt",
          "approvalDecidedBy",
          "inQueue",
          "revision",
          "status",
          "createdAt",
          "targets"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "results",
    "errors",
    "dryRun",
    "valid",
    "posts"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
422 One or more rows failed validation or import. Error code `bulk_row_errors`.
Response schema (422, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "const": "bulk_row_errors"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "results": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "valid": {
                    "type": "boolean"
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "field",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "boardId": {
                          "type": "string"
                        },
                        "platform": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "instagram",
                                "facebook",
                                "youtube",
                                "tiktok",
                                "fake",
                                "bluesky",
                                "threads",
                                "linkedin",
                                "x",
                                "pinterest",
                                "google_business_profile",
                                "mastodon",
                                "telegram",
                                "discord",
                                "slack",
                                "tumblr"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "handle": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "issues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "message"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "accountId",
                        "platform",
                        "handle",
                        "issues"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "row": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "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"
                      }
                    ]
                  },
                  "mediaVerified": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "valid",
                  "issues",
                  "targets",
                  "row",
                  "scheduledAt",
                  "mediaVerified"
                ],
                "additionalProperties": false
              }
            },
            "errors": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "row": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "row",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "importedMediaIds": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            }
          },
          "required": [
            "results",
            "errors"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message",
        "details"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/posts/{id}

Read a post and its targets

Allowed API key roles are viewer, editor, admin.

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

Responses

200 Post with account details and target outcomes.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "caption": {
      "type": "string"
    },
    "shortenLinks": {
      "type": "boolean"
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "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"
        }
      ]
    },
    "approvalUseBestHours": {
      "type": "boolean"
    },
    "approvalRequired": {
      "type": "boolean"
    },
    "approvalDecision": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "approved",
            "rejected"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "approvalComment": {
      "type": [
        "string",
        "null"
      ]
    },
    "approvalDecidedAt": {
      "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"
        }
      ]
    },
    "approvalDecidedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "inQueue": {
      "type": "boolean"
    },
    "revision": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "queued",
        "publishing",
        "processing",
        "published",
        "partially_published",
        "failed",
        "unknown",
        "cancelled",
        "draft",
        "delivered",
        "pending_approval"
      ]
    },
    "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))$"
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "socialAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "handle": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "queued",
              "publishing",
              "processing",
              "published",
              "failed",
              "unknown",
              "cancelled",
              "draft",
              "delivered",
              "pending_approval"
            ]
          },
          "attempts": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "externalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "externalUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "retryAt": {
            "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"
              }
            ]
          },
          "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"
              }
            ]
          },
          "overrides": {
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          },
          "firstCommentStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "sending",
                  "published",
                  "failed",
                  "unknown"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "firstCommentError": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "postId",
          "socialAccountId",
          "handle",
          "platform",
          "status",
          "attempts",
          "externalId",
          "externalUrl",
          "lastError",
          "retryAt",
          "publishedAt",
          "overrides",
          "firstCommentStatus",
          "firstCommentError"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "id",
    "workspaceId",
    "caption",
    "shortenLinks",
    "mediaIds",
    "scheduledAt",
    "approvalUseBestHours",
    "approvalRequired",
    "approvalDecision",
    "approvalComment",
    "approvalDecidedAt",
    "approvalDecidedBy",
    "inQueue",
    "revision",
    "status",
    "createdAt",
    "targets"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/posts/{id}

Edit a draft or unstarted post

Send at least one field besides expectedRevision. Omitted content fields retain their values. Arrays replace the current arrays.

Allowed API key roles are editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Post ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "caption": {
      "type": "string",
      "maxLength": 10000
    },
    "mediaIds": {
      "maxItems": 35,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "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"
        }
      ]
    },
    "addToQueue": {
      "type": "boolean"
    },
    "useBestHours": {
      "type": "boolean"
    },
    "draft": {
      "type": "boolean"
    },
    "shortenLinks": {
      "type": "boolean"
    },
    "targets": {
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "overrides": {
            "default": {},
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      }
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647
    },
    "groupId": {
      "description": "Use the current members of an account group.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "presetId": {
      "description": "Apply a posting preset. Explicit scheduling and target overrides take precedence.",
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "additionalProperties": false
}

Responses

200 Updated post and replacement targets.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "caption": {
      "type": "string"
    },
    "shortenLinks": {
      "type": "boolean"
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "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"
        }
      ]
    },
    "approvalUseBestHours": {
      "type": "boolean"
    },
    "approvalRequired": {
      "type": "boolean"
    },
    "approvalDecision": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "approved",
            "rejected"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "approvalComment": {
      "type": [
        "string",
        "null"
      ]
    },
    "approvalDecidedAt": {
      "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"
        }
      ]
    },
    "approvalDecidedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "inQueue": {
      "type": "boolean"
    },
    "revision": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "queued",
        "publishing",
        "processing",
        "published",
        "partially_published",
        "failed",
        "unknown",
        "cancelled",
        "draft",
        "delivered",
        "pending_approval"
      ]
    },
    "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))$"
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "postId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "socialAccountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "handle": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "instagram",
              "facebook",
              "youtube",
              "tiktok",
              "fake",
              "bluesky",
              "threads",
              "linkedin",
              "x",
              "pinterest",
              "google_business_profile",
              "mastodon",
              "telegram",
              "discord",
              "slack",
              "tumblr"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "scheduled",
              "queued",
              "publishing",
              "processing",
              "published",
              "failed",
              "unknown",
              "cancelled",
              "draft",
              "delivered",
              "pending_approval"
            ]
          },
          "attempts": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "externalId": {
            "type": [
              "string",
              "null"
            ]
          },
          "externalUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "retryAt": {
            "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"
              }
            ]
          },
          "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"
              }
            ]
          },
          "overrides": {
            "type": "object",
            "properties": {
              "privacy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "tiktokMode": {
                "type": "string",
                "enum": [
                  "direct",
                  "inbox"
                ]
              },
              "boardId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "madeForKids": {
                "type": "boolean"
              },
              "allowComments": {
                "type": "boolean"
              },
              "allowDuet": {
                "type": "boolean"
              },
              "allowStitch": {
                "type": "boolean"
              },
              "brandContent": {
                "type": "boolean"
              },
              "ownBrand": {
                "type": "boolean"
              },
              "instagramFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "trialGraduation": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "SS_PERFORMANCE"
                ]
              },
              "collaborators": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9._]{1,30}$"
                }
              },
              "userTags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    },
                    "x": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "mediaIndex": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 19
                    }
                  },
                  "required": [
                    "username"
                  ],
                  "additionalProperties": false
                }
              },
              "locationId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "aiGenerated": {
                "type": "boolean"
              },
              "altText": {
                "type": "string",
                "maxLength": 1000
              },
              "imageAltTexts": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 1000
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "youtubeFormat": {
                "type": "string",
                "enum": [
                  "short",
                  "video"
                ]
              },
              "youtubeCaptions": {
                "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                "type": "string",
                "enum": [
                  "srt",
                  "vtt"
                ]
              },
              "thumbnailMediaId": {
                "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "publishAt": {
                "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "categoryId": {
                "type": "string",
                "pattern": "^\\d{1,64}$"
              },
              "defaultLanguage": {
                "type": "string",
                "maxLength": 35
              },
              "playlistIds": {
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z0-9_-]{1,128}$"
                }
              },
              "paidPromotion": {
                "type": "boolean"
              },
              "notifySubscribers": {
                "type": "boolean"
              },
              "autoAddMusic": {
                "type": "boolean"
              },
              "coverFrameSeconds": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "link": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "facebookFormat": {
                "type": "string",
                "enum": [
                  "auto",
                  "story"
                ]
              },
              "documentTitle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "linkedinVisibility": {
                "type": "string",
                "enum": [
                  "PUBLIC",
                  "CONNECTIONS",
                  "LOGGED_IN"
                ]
              },
              "threadsReplyControl": {
                "type": "string",
                "enum": [
                  "everyone",
                  "accounts_you_follow",
                  "mentioned_only",
                  "followers_only"
                ]
              },
              "threadsReplyApprovals": {
                "type": "boolean"
              },
              "xReplySettings": {
                "type": "string",
                "enum": [
                  "following",
                  "mentionedUsers",
                  "subscribers",
                  "verified"
                ]
              },
              "subscribersOnly": {
                "type": "boolean"
              },
              "caption": {
                "type": "string",
                "maxLength": 10000
              },
              "title": {
                "type": "string",
                "maxLength": 500
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "cover": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "photoCoverIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 34
              },
              "thumbOffset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "shareToFeed": {
                "type": "boolean"
              },
              "hashtags": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                }
              },
              "tags": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "businessProfile": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "STANDARD"
                      }
                    },
                    "required": [
                      "topicType"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "EVENT"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "languageCode": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                      },
                      "callToAction": {
                        "type": "object",
                        "properties": {
                          "actionType": {
                            "type": "string",
                            "enum": [
                              "BOOK",
                              "ORDER",
                              "SHOP",
                              "LEARN_MORE",
                              "SIGN_UP",
                              "CALL"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          }
                        },
                        "required": [
                          "actionType"
                        ],
                        "additionalProperties": false
                      },
                      "topicType": {
                        "type": "string",
                        "const": "OFFER"
                      },
                      "event": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "startDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "endDate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          },
                          "startTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          },
                          "endTime": {
                            "type": "string",
                            "pattern": "^\\d{2}:\\d{2}$"
                          }
                        },
                        "required": [
                          "title",
                          "startDate",
                          "endDate"
                        ],
                        "additionalProperties": false
                      },
                      "offer": {
                        "type": "object",
                        "properties": {
                          "couponCode": {
                            "type": "string",
                            "maxLength": 58
                          },
                          "redeemOnlineUrl": {
                            "type": "string",
                            "maxLength": 2048,
                            "format": "uri"
                          },
                          "termsConditions": {
                            "type": "string",
                            "maxLength": 5000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "topicType",
                      "event"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "threadItems": {
                "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "caption": {
                      "type": "string",
                      "maxLength": 10000
                    },
                    "mediaIds": {
                      "maxItems": 35,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "replyTo": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "quotePost": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    }
                  },
                  "required": [
                    "caption"
                  ],
                  "additionalProperties": false
                }
              },
              "firstComment": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              }
            },
            "additionalProperties": false
          },
          "firstCommentStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "pending",
                  "sending",
                  "published",
                  "failed",
                  "unknown"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "firstCommentError": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "postId",
          "socialAccountId",
          "handle",
          "platform",
          "status",
          "attempts",
          "externalId",
          "externalUrl",
          "lastError",
          "retryAt",
          "publishedAt",
          "overrides",
          "firstCommentStatus",
          "firstCommentError"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "id",
    "workspaceId",
    "caption",
    "shortenLinks",
    "mediaIds",
    "scheduledAt",
    "approvalUseBestHours",
    "approvalRequired",
    "approvalDecision",
    "approvalComment",
    "approvalDecidedAt",
    "approvalDecidedBy",
    "inQueue",
    "revision",
    "status",
    "createdAt",
    "targets"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
503 A service is temporarily unavailable. Error code `service_unavailable`.
Response schema (503, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/posts/{id}/cancel

Cancel an unstarted post or targets

Allowed API key roles are editor, admin.

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

Responses

200 Cancelled target IDs and current post.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "cancelledTargetIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "post": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "workspaceId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "caption": {
          "type": "string"
        },
        "shortenLinks": {
          "type": "boolean"
        },
        "mediaIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "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"
            }
          ]
        },
        "approvalUseBestHours": {
          "type": "boolean"
        },
        "approvalRequired": {
          "type": "boolean"
        },
        "approvalDecision": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "approved",
                "rejected"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "approvalComment": {
          "type": [
            "string",
            "null"
          ]
        },
        "approvalDecidedAt": {
          "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"
            }
          ]
        },
        "approvalDecidedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "inQueue": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "status": {
          "type": "string",
          "enum": [
            "scheduled",
            "queued",
            "publishing",
            "processing",
            "published",
            "partially_published",
            "failed",
            "unknown",
            "cancelled",
            "draft",
            "delivered",
            "pending_approval"
          ]
        },
        "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))$"
        },
        "targets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "postId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "socialAccountId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "handle": {
                "type": "string"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "instagram",
                  "facebook",
                  "youtube",
                  "tiktok",
                  "fake",
                  "bluesky",
                  "threads",
                  "linkedin",
                  "x",
                  "pinterest",
                  "google_business_profile",
                  "mastodon",
                  "telegram",
                  "discord",
                  "slack",
                  "tumblr"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "scheduled",
                  "queued",
                  "publishing",
                  "processing",
                  "published",
                  "failed",
                  "unknown",
                  "cancelled",
                  "draft",
                  "delivered",
                  "pending_approval"
                ]
              },
              "attempts": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "externalId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "externalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastError": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "retryAt": {
                "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"
                  }
                ]
              },
              "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"
                  }
                ]
              },
              "overrides": {
                "type": "object",
                "properties": {
                  "privacy": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "tiktokMode": {
                    "type": "string",
                    "enum": [
                      "direct",
                      "inbox"
                    ]
                  },
                  "boardId": {
                    "type": "string",
                    "pattern": "^\\d{1,64}$"
                  },
                  "madeForKids": {
                    "type": "boolean"
                  },
                  "allowComments": {
                    "type": "boolean"
                  },
                  "allowDuet": {
                    "type": "boolean"
                  },
                  "allowStitch": {
                    "type": "boolean"
                  },
                  "brandContent": {
                    "type": "boolean"
                  },
                  "ownBrand": {
                    "type": "boolean"
                  },
                  "instagramFormat": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "story"
                    ]
                  },
                  "trialGraduation": {
                    "type": "string",
                    "enum": [
                      "MANUAL",
                      "SS_PERFORMANCE"
                    ]
                  },
                  "collaborators": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9._]{1,30}$"
                    }
                  },
                  "userTags": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "username": {
                          "type": "string",
                          "pattern": "^[a-z0-9._]{1,30}$"
                        },
                        "x": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "y": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "mediaIndex": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 19
                        }
                      },
                      "required": [
                        "username"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "locationId": {
                    "type": "string",
                    "pattern": "^\\d{1,64}$"
                  },
                  "aiGenerated": {
                    "type": "boolean"
                  },
                  "altText": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "imageAltTexts": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 1000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "youtubeFormat": {
                    "type": "string",
                    "enum": [
                      "short",
                      "video"
                    ]
                  },
                  "youtubeCaptions": {
                    "description": "Upload captions from the attached Studio render as an SRT or VTT track.",
                    "type": "string",
                    "enum": [
                      "srt",
                      "vtt"
                    ]
                  },
                  "thumbnailMediaId": {
                    "description": "Ready JPEG or PNG media ID used as the YouTube thumbnail. Keep it separate from mediaIds.",
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "publishAt": {
                    "description": "Native platform release time for YouTube or Facebook. Submit this post before the release time.",
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "categoryId": {
                    "type": "string",
                    "pattern": "^\\d{1,64}$"
                  },
                  "defaultLanguage": {
                    "type": "string",
                    "maxLength": 35
                  },
                  "playlistIds": {
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9_-]{1,128}$"
                    }
                  },
                  "paidPromotion": {
                    "type": "boolean"
                  },
                  "notifySubscribers": {
                    "type": "boolean"
                  },
                  "autoAddMusic": {
                    "type": "boolean"
                  },
                  "coverFrameSeconds": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "link": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "facebookFormat": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "story"
                    ]
                  },
                  "documentTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "linkedinVisibility": {
                    "type": "string",
                    "enum": [
                      "PUBLIC",
                      "CONNECTIONS",
                      "LOGGED_IN"
                    ]
                  },
                  "threadsReplyControl": {
                    "type": "string",
                    "enum": [
                      "everyone",
                      "accounts_you_follow",
                      "mentioned_only",
                      "followers_only"
                    ]
                  },
                  "threadsReplyApprovals": {
                    "type": "boolean"
                  },
                  "xReplySettings": {
                    "type": "string",
                    "enum": [
                      "following",
                      "mentionedUsers",
                      "subscribers",
                      "verified"
                    ]
                  },
                  "subscribersOnly": {
                    "type": "boolean"
                  },
                  "caption": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "cover": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "photoCoverIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 34
                  },
                  "thumbOffset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "shareToFeed": {
                    "type": "boolean"
                  },
                  "hashtags": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^#[\\p{L}\\p{N}_]{1,80}$"
                    }
                  },
                  "tags": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500
                    }
                  },
                  "businessProfile": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "languageCode": {
                            "type": "string",
                            "maxLength": 32,
                            "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "actionType": {
                                "type": "string",
                                "enum": [
                                  "BOOK",
                                  "ORDER",
                                  "SHOP",
                                  "LEARN_MORE",
                                  "SIGN_UP",
                                  "CALL"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "actionType"
                            ],
                            "additionalProperties": false
                          },
                          "topicType": {
                            "type": "string",
                            "const": "STANDARD"
                          }
                        },
                        "required": [
                          "topicType"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "languageCode": {
                            "type": "string",
                            "maxLength": 32,
                            "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "actionType": {
                                "type": "string",
                                "enum": [
                                  "BOOK",
                                  "ORDER",
                                  "SHOP",
                                  "LEARN_MORE",
                                  "SIGN_UP",
                                  "CALL"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "actionType"
                            ],
                            "additionalProperties": false
                          },
                          "topicType": {
                            "type": "string",
                            "const": "EVENT"
                          },
                          "event": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "maxLength": 58
                              },
                              "startDate": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  {
                                    "type": "string",
                                    "const": ""
                                  }
                                ]
                              },
                              "endDate": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  {
                                    "type": "string",
                                    "const": ""
                                  }
                                ]
                              },
                              "startTime": {
                                "type": "string",
                                "pattern": "^\\d{2}:\\d{2}$"
                              },
                              "endTime": {
                                "type": "string",
                                "pattern": "^\\d{2}:\\d{2}$"
                              }
                            },
                            "required": [
                              "title",
                              "startDate",
                              "endDate"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "topicType",
                          "event"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "languageCode": {
                            "type": "string",
                            "maxLength": 32,
                            "pattern": "^[a-z]{2,3}(?:-[a-zA-Z0-9]{2,8})*$"
                          },
                          "callToAction": {
                            "type": "object",
                            "properties": {
                              "actionType": {
                                "type": "string",
                                "enum": [
                                  "BOOK",
                                  "ORDER",
                                  "SHOP",
                                  "LEARN_MORE",
                                  "SIGN_UP",
                                  "CALL"
                                ]
                              },
                              "url": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              }
                            },
                            "required": [
                              "actionType"
                            ],
                            "additionalProperties": false
                          },
                          "topicType": {
                            "type": "string",
                            "const": "OFFER"
                          },
                          "event": {
                            "type": "object",
                            "properties": {
                              "title": {
                                "type": "string",
                                "maxLength": 58
                              },
                              "startDate": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  {
                                    "type": "string",
                                    "const": ""
                                  }
                                ]
                              },
                              "endDate": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  {
                                    "type": "string",
                                    "const": ""
                                  }
                                ]
                              },
                              "startTime": {
                                "type": "string",
                                "pattern": "^\\d{2}:\\d{2}$"
                              },
                              "endTime": {
                                "type": "string",
                                "pattern": "^\\d{2}:\\d{2}$"
                              }
                            },
                            "required": [
                              "title",
                              "startDate",
                              "endDate"
                            ],
                            "additionalProperties": false
                          },
                          "offer": {
                            "type": "object",
                            "properties": {
                              "couponCode": {
                                "type": "string",
                                "maxLength": 58
                              },
                              "redeemOnlineUrl": {
                                "type": "string",
                                "maxLength": 2048,
                                "format": "uri"
                              },
                              "termsConditions": {
                                "type": "string",
                                "maxLength": 5000
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "topicType",
                          "event"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "threadItems": {
                    "description": "Ordered X, Threads, or Bluesky posts. Later items reply to the previous item. Each item selects media IDs from the parent post.",
                    "minItems": 1,
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "caption": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "mediaIds": {
                          "maxItems": 35,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "replyTo": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "quotePost": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        }
                      },
                      "required": [
                        "caption"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "firstComment": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000
                  }
                },
                "additionalProperties": false
              },
              "firstCommentStatus": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "pending",
                      "sending",
                      "published",
                      "failed",
                      "unknown"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstCommentError": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "postId",
              "socialAccountId",
              "handle",
              "platform",
              "status",
              "attempts",
              "externalId",
              "externalUrl",
              "lastError",
              "retryAt",
              "publishedAt",
              "overrides",
              "firstCommentStatus",
              "firstCommentError"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "id",
        "workspaceId",
        "caption",
        "shortenLinks",
        "mediaIds",
        "scheduledAt",
        "approvalUseBestHours",
        "approvalRequired",
        "approvalDecision",
        "approvalComment",
        "approvalDecidedAt",
        "approvalDecidedBy",
        "inQueue",
        "revision",
        "status",
        "createdAt",
        "targets"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "cancelledTargetIds",
    "post"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Scheduling

GET /api/v1/scheduling/queue

List upcoming queue bookings

Allowed API key roles are viewer, editor, admin.

Responses

200 Queue posts in publishing order.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "posts": {
      "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)$"
          },
          "caption": {
            "type": "string"
          },
          "scheduledAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "caption",
          "scheduledAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "posts"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/scheduling/queue

Reorder or shuffle the queue

Send distinct postIds in the desired order or set shuffle to true.

Allowed API key roles are editor, admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "postIds": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      }
    },
    "shuffle": {
      "type": "boolean",
      "const": true
    }
  },
  "additionalProperties": false
}

Responses

200 Queue posts in their new order.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "posts": {
      "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)$"
          },
          "caption": {
            "type": "string"
          },
          "scheduledAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "caption",
          "scheduledAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "posts"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/scheduling/schedule

Read weekly posting times

Allowed API key roles are viewer, editor, admin.

Responses

200 Workspace time zone and weekly slots.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string",
      "maxLength": 100
    },
    "slots": {
      "maxItems": 336,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "weekday": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "time": {
            "type": "string",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
          }
        },
        "required": [
          "weekday",
          "time"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "timeZone",
    "slots"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PUT /api/v1/scheduling/schedule

Replace weekly posting times

Use an IANA time zone. Weekday 0 is Sunday. Each weekday and time pair must be unique. Existing bookings keep their times.

Allowed API key roles are admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string",
      "maxLength": 100
    },
    "slots": {
      "maxItems": 336,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "weekday": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "time": {
            "type": "string",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
          }
        },
        "required": [
          "weekday",
          "time"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "timeZone",
    "slots"
  ],
  "additionalProperties": false
}

Responses

200 Saved schedule.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string",
      "maxLength": 100
    },
    "slots": {
      "maxItems": 336,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "weekday": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "time": {
            "type": "string",
            "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
          }
        },
        "required": [
          "weekday",
          "time"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "timeZone",
    "slots"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/scheduling/slots

Find open posting times

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
countqueryNo{"default":5,"type":"integer","minimum":1,"maximum":20}
useBestHoursqueryNo{"type":"boolean"}

Responses

200 Time zone and open slots as UTC timestamps.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "timeZone": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "date-time",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|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": [
    "timeZone",
    "slots"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

Webhooks

GET /api/v1/webhooks

List webhook endpoints

Allowed API key roles are viewer, editor, admin.

Responses

200 Workspace webhook endpoints.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "endpoints": {
      "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)$"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Full destination for admins and owners, origin only for other roles."
          },
          "active": {
            "type": "boolean"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "post.scheduled",
                "post.target.published",
                "post.target.failed",
                "post.target.unknown",
                "account.needs_reauth",
                "account.connected",
                "sync.post.created",
                "sync.post.skipped",
                "sync.post.published",
                "post.approval_requested",
                "post.approved",
                "post.rejected",
                "inbox.comment.created"
              ]
            }
          },
          "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",
          "url",
          "active",
          "events",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "endpoints"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/webhooks

Create a webhook endpoint

Use a public HTTPS URL on port 443 without credentials or a fragment. Subscribe to each event at most once.

Allowed API key roles are admin.

Request schema (application/json)
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri"
    },
    "events": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.scheduled",
          "post.target.published",
          "post.target.failed",
          "post.target.unknown",
          "account.needs_reauth",
          "account.connected",
          "sync.post.created",
          "sync.post.skipped",
          "sync.post.published",
          "post.approval_requested",
          "post.approved",
          "post.rejected",
          "inbox.comment.created"
        ]
      }
    },
    "active": {
      "type": "boolean"
    }
  },
  "required": [
    "url",
    "events"
  ],
  "additionalProperties": false
}

Responses

201 Endpoint and its one-time signing secret.
HeaderMeaning
LocationRelative URL of the new endpoint.
Response schema (201, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Full destination for admins and owners, origin only for other roles."
    },
    "active": {
      "type": "boolean"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.scheduled",
          "post.target.published",
          "post.target.failed",
          "post.target.unknown",
          "account.needs_reauth",
          "account.connected",
          "sync.post.created",
          "sync.post.skipped",
          "sync.post.published",
          "post.approval_requested",
          "post.approved",
          "post.rejected",
          "inbox.comment.created"
        ]
      }
    },
    "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))$"
    },
    "signingSecret": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "url",
    "active",
    "events",
    "createdAt",
    "signingSecret"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/webhooks/{id}

Read a webhook endpoint

Allowed API key roles are viewer, editor, admin.

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

Responses

200 Endpoint.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Full destination for admins and owners, origin only for other roles."
    },
    "active": {
      "type": "boolean"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.scheduled",
          "post.target.published",
          "post.target.failed",
          "post.target.unknown",
          "account.needs_reauth",
          "account.connected",
          "sync.post.created",
          "sync.post.skipped",
          "sync.post.published",
          "post.approval_requested",
          "post.approved",
          "post.rejected",
          "inbox.comment.created"
        ]
      }
    },
    "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",
    "url",
    "active",
    "events",
    "createdAt"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
PATCH /api/v1/webhooks/{id}

Update a webhook endpoint

Send at least one field to update.

Allowed API key roles are admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Endpoint ID"}
Request schema (application/json)
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri"
    },
    "events": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.scheduled",
          "post.target.published",
          "post.target.failed",
          "post.target.unknown",
          "account.needs_reauth",
          "account.connected",
          "sync.post.created",
          "sync.post.skipped",
          "sync.post.published",
          "post.approval_requested",
          "post.approved",
          "post.rejected",
          "inbox.comment.created"
        ]
      }
    },
    "active": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}

Responses

200 Updated endpoint.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Full destination for admins and owners, origin only for other roles."
    },
    "active": {
      "type": "boolean"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "post.scheduled",
          "post.target.published",
          "post.target.failed",
          "post.target.unknown",
          "account.needs_reauth",
          "account.connected",
          "sync.post.created",
          "sync.post.skipped",
          "sync.post.published",
          "post.approval_requested",
          "post.approved",
          "post.rejected",
          "inbox.comment.created"
        ]
      }
    },
    "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",
    "url",
    "active",
    "events",
    "createdAt"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
DELETE /api/v1/webhooks/{id}

Delete a webhook endpoint

Allowed API key roles are admin.

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

Responses

204 Endpoint and its delivery history removed.
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
GET /api/v1/webhooks/{id}/deliveries

Read webhook delivery history

Allowed API key roles are viewer, editor, admin.

ParameterInRequiredSchema
idpathYes{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Endpoint ID"}
limitqueryNo{"default":25,"type":"integer","minimum":1,"maximum":100}
offsetqueryNo{"default":0,"type":"integer","minimum":0,"maximum":100000}

Responses

200 Deliveries with their payloads and attempt history.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "deliveries": {
      "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)$"
          },
          "endpointId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed",
              "cancelled"
            ]
          },
          "payload": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "enum": [
                  "post.scheduled",
                  "post.target.published",
                  "post.target.failed",
                  "post.target.unknown",
                  "account.needs_reauth",
                  "account.connected",
                  "sync.post.created",
                  "sync.post.skipped",
                  "sync.post.published",
                  "post.approval_requested",
                  "post.approved",
                  "post.rejected",
                  "inbox.comment.created",
                  "webhook.test"
                ]
              },
              "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))$"
              },
              "workspaceId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": [
                    "string",
                    "number",
                    "null"
                  ]
                }
              }
            },
            "required": [
              "id",
              "type",
              "createdAt",
              "workspaceId",
              "data"
            ],
            "additionalProperties": false
          },
          "attempts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "statusCode": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "at",
                "statusCode",
                "error"
              ],
              "additionalProperties": false
            }
          },
          "nextAttemptAt": {
            "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))$"
          }
        },
        "required": [
          "id",
          "endpointId",
          "status",
          "payload",
          "attempts",
          "nextAttemptAt",
          "createdAt"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "deliveries"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
POST /api/v1/webhooks/{id}/test

Queue a signed test delivery

Allowed API key roles are admin.

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

Responses

202 Test delivery and event IDs.
Response schema (202, application/json)
{
  "type": "object",
  "properties": {
    "deliveryId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "eventId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "deliveryId",
    "eventId"
  ],
  "additionalProperties": false
}
400 Invalid input or validation failure. Error code `invalid_request`.
Response schema (400, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
401 Missing, invalid, or revoked API key. Error code `unauthorized`.
HeaderMeaning
WWW-AuthenticateBearer realm="Posthoop"
Response schema (401, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
402 The billing account lacks access or has reached a plan limit. Error code `plan_limit`.
Response schema (402, application/json)
{
  "$ref": "#/components/schemas/PlanLimit"
}
403 This API key has insufficient permissions. Error code `forbidden`.
Response schema (403, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
404 The requested resource was not found in this workspace. Error code `not_found`.
Response schema (404, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
409 The request conflicts with the current state. Error code `conflict`.
Response schema (409, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
429 Rate limit exceeded. Free workspaces share one API and MCP budget per UTC day; an exhausted budget returns plan_limit.
Response schema (429, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
500 The request could not be completed. Error code `internal_error`.
Response schema (500, application/json)
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "invalid_request",
            "unauthorized",
            "plan_limit",
            "forbidden",
            "not_found",
            "conflict",
            "payload_too_large",
            "unsupported_media_type",
            "unprocessable_entity",
            "rate_limited",
            "internal_error",
            "upstream_error",
            "service_unavailable",
            "upstream_timeout",
            "bulk_row_errors"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}

OpenAPI

GET /api/v1/openapi.json

Download the OpenAPI document

Public endpoint.

Responses

200 OpenAPI 3.1 document.
Response schema (200, application/json)
{
  "type": "object",
  "properties": {
    "openapi": {
      "type": "string",
      "const": "3.1.0"
    }
  },
  "required": [
    "openapi"
  ],
  "additionalProperties": {}
}