postixly.com/API Reference
v1.0.0
REST API

Postixly API Reference

Publish and manage social media posts across multiple platforms.

Base URL: https://api.postixly.com
Version: v1.0.0

Authentication

Include your API key in every request header. You can generate one in youraccount settings.

X-API-Key: your-api-key

JWT Bearer tokens are also accepted:Authorization: Bearer <token>

Posts

10

Create and manage social media posts

POST
/posts/
Create a post

Creates a new post and immediately enqueues it for publishing. Waits up to 30 s for the worker to finish so the response reflects the real status. Approval gate: members without an approver role create `pending_approval` posts that are not queued until an owner/admin approves them. API keys without a bound `user_id` (legacy team keys) cannot create posts — the insert fails with an integrity error (`created_by` must reference an existing auth user). Personal-account keys act as the account owner.

Request Body
contentstring
social_account_idsarrayrequiredConnection IDs to publish to
media_urlsarray
workspace_idstring (uuid)
platform_optionsPlatformOptions
tagsarrayFree-form category labels for the agenda/posts filters. Each tag is trimmed and lowercased server-side and the list is deduped; at most 10 tags of 1..30 characters each. Workspace-internal metadata: never published to platforms and not gated by the approval flow. PATCH semantics: omitted = unchanged, an explicit array (including []) replaces the stored tags.
recurrence_interval_daysintegerRecurring interval in days. After each full publish success the worker re-arms the post this many days later; the calendar shows the upcoming occurrences virtually. Absent or null = one-off post. Each occurrence that actually goes out bills the workspace monthly quota and fires its own post.published / post.partial webhook.
Responses
201Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "social_account_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'
GET
/posts/
List posts

Returns a paginated list of posts for the authenticated account.

Query Parameters
workspace_idstringTeam account UUID
limitstringPage size (1–100, default 20)
offsetstringRecords to skip (default 0)
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/posts/" \
  -H "X-API-Key: <your-api-key>"
POST
/posts/schedule
Schedule a post

Creates a post and schedules it for future publishing. Approval gate: members without an approver role create `pending_approval` posts that are not queued until an owner/admin approves them. API keys without a bound `user_id` (legacy team keys) cannot create posts — the insert fails with an integrity error (`created_by` must reference an existing auth user). Personal-account keys act as the account owner.

Request Body
contentstring
scheduled_atstring (date-time)required
social_account_idsarrayrequiredConnection IDs to publish to
media_urlsarray
workspace_idstring (uuid)
platform_optionsPlatformOptions
tagsarrayFree-form category labels for the agenda/posts filters. Each tag is trimmed and lowercased server-side and the list is deduped; at most 10 tags of 1..30 characters each. Workspace-internal metadata: never published to platforms and not gated by the approval flow. PATCH semantics: omitted = unchanged, an explicit array (including []) replaces the stored tags.
recurrence_interval_daysintegerRecurring interval in days. After each full publish success the worker re-arms the post this many days later; the calendar shows the upcoming occurrences virtually. Absent or null = one-off post. Each occurrence that actually goes out bills the workspace monthly quota and fires its own post.published / post.partial webhook.
Responses
201Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/schedule" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduled_at": "2026-06-01T10:00:00.000Z",
  "social_account_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'
GET
/posts/{id}
Get a post

Returns a single post by ID.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/posts/YOUR_POST_ID" \
  -H "X-API-Key: <your-api-key>"
PATCH
/posts/{id}
Update a draft or scheduled post

Updates the content, media, schedule time, recurrence interval, tags or target connections of a post in the `draft` or `scheduled` status. Content/media/connection changes to a `scheduled` post require an approver role — `scheduled_at`-, `recurrence_interval_days`- and `tags`-only changes stay open to every member (tags are workspace-internal metadata, never published; `scheduled_at` is the calendar drag & drop path). Changing a `scheduled` post's target connections re-enqueues its publish job with the new targets, even when `scheduled_at` is untouched — the in-flight job still carries the previous connection ids otherwise. Setting a `scheduled_at` on a draft submits it: approvers move it straight to `scheduled` and enqueue it, members move it to `pending_approval`. Status-transitioning edits are rejected with 409 when the post was moved concurrently — the status flip is written first and conditioned on the fetched status, so a losing request mutates nothing. A `published` post returns 409 unless the request carries `republish: true`, which re-schedules it: targets are reset (clearing the per-platform idempotency markers), the post moves back to `scheduled` and publishing is re-enqueued — immediately, or at the new `scheduled_at` when one is supplied. Sending `republish: true` with a non-published post returns 400. Any other status returns 409. Recurring posts (`recurrence_interval_days` set) re-arm themselves in the worker after a full publish success, so a republish of a published recurring post races the worker's own published → scheduled flip — both sides are conditioned on snapshot tokens and exactly one wins; the loser never enqueues.

Path Parameters
idstring (uuid)required
Request Body
contentstring
media_urlsarray
scheduled_atstring (date-time)
social_account_idsarrayReplacement connection IDs — replaces the post targets wholesale. At least one ID is required.
recurrence_interval_daysintegerRecurring interval in days. After each full publish success the worker re-arms the post this many days later; the calendar shows the upcoming occurrences virtually. Omitted = unchanged; explicit null = stop the series (the already-queued occurrence still publishes). Each occurrence that actually goes out bills the workspace monthly quota and fires its own post.published / post.partial webhook.
tagsarrayFree-form category labels for the agenda/posts filters. Each tag is trimmed and lowercased server-side and the list is deduped; at most 10 tags of 1..30 characters each. Workspace-internal metadata: never published to platforms and not gated by the approval flow. PATCH semantics: omitted = unchanged, an explicit array (including []) replaces the stored tags.
republishbooleanExplicit intent required to re-schedule a `published` post. Without it, updating a published post returns 409; with it, updating a draft or scheduled post returns 400.
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X PATCH "https://api.postixly.com/posts/YOUR_POST_ID" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json"
DELETE
/posts/{id}
Cancel a scheduled post

Cancels a post that is in the `scheduled` status and removes it from the queue. Returns the cancelled post.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X DELETE "https://api.postixly.com/posts/YOUR_POST_ID" \
  -H "X-API-Key: <your-api-key>"
POST
/posts/{id}/retry
Retry a failed post

Re-enqueues a post that is in the `failed` status for another publish attempt. Any other status returns 409.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/YOUR_POST_ID/retry" \
  -H "X-API-Key: <your-api-key>"
POST
/posts/{id}/recover
Recover a post as an editable draft

Creates a NEW draft from an existing post whose media has expired (7-day retention): copies content, tags and platform options, keeps only the media objects that still exist, and re-links the connection ids that are still alive. The original post is untouched — its history, metrics and targets stay intact. Not subject to the monthly post limit: the draft counts when it publishes, not when created.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/YOUR_POST_ID/recover" \
  -H "X-API-Key: <your-api-key>"
POST
/posts/{id}/approve
Approve a pending post

Approves a post in the `pending_approval` status: sets it to `scheduled` and enqueues the publish job with a delay towards its `scheduled_at` (immediately when the slot already passed or the post has no date). Only the account owner or a member with the owner/admin role may approve. Any other status returns 409.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/YOUR_POST_ID/approve" \
  -H "X-API-Key: <your-api-key>"
POST
/posts/{id}/reject
Reject a pending post

Rejects a post in the `pending_approval` status: moves it back to `draft` and clears its schedule date so it never publishes and leaves the calendar (kept as reference material in the posts list; a draft can be re-submitted by PATCHing it with a future `scheduled_at`, which routes it back through the approval flow for members). Only the account owner or a member with the owner/admin role may reject. Any other status returns 409.

Path Parameters
idstring (uuid)required
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
409Default Response
422Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/posts/YOUR_POST_ID/reject" \
  -H "X-API-Key: <your-api-key>"

Media

11

Upload, inspect and delete media objects

POST
/media/upload
Upload media (server-side stream)

Streams the first file of a multipart/form-data body straight into storage. The declared Content-Type is checked against the media whitelist before any byte is consumed; after the upload, the stored bytes are sniffed (magic bytes) and the SNIFFED mime type — never the declaration — is persisted and returned. Single-shot flow only: the hard per-object cap is max_upload_bytes from GET /media/limits. Larger files use the multipart flow. The object key is generated server-side; a SHA-256 of the stored bytes is recorded but not returned.

Query Parameters
accountIdstringrequiredOwning account id. API-key callers may only use the account the key belongs to; JWT callers must be a member of the account.
Responses
201Stored. data.mime_type is the sniffed content type; data.byte_size the stored size.
400Missing accountId query parameter, malformed multipart body or no file part.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to accountId. With MEDIA_STORAGE_QUOTA_ENFORCED=true (inactive by default) also the storage-quota response: code STORAGE_QUOTA_EXCEEDED, details.plan/used_bytes/limit_bytes.
413File exceeds max_upload_bytes (R2_MAX_UPLOAD_BYTES).
415Declared Content-Type not whitelisted, empty file, or stored bytes do not sniff to a whitelisted type (the object is deleted).
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to store the file.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/upload?accountId=YOUR_ACCOUNT_ID" \
  -H "X-API-Key: <your-api-key>" \
  -F "file=@./example.png"
POST
/media/presign
Presign a direct-to-storage PUT URL

Creates an uploading media row and returns a presigned PUT URL so a browser can upload straight to storage. Two modes: CREATE (default — accountId + content_type + content_length) and RE-PRESIGN (media_id present — a fresh PUT URL for an existing uploading row whose URL expired mid-upload; key, mime and size come from the stored row, not the caller). The URL is signed with the Content-Type header: the browser MUST send exactly the returned mime_type or storage answers 403 SignatureDoesNotMatch. The URL expires after expires_in seconds (R2_UPLOAD_URL_TTL_SECONDS). A ready or deleted row cannot be re-signed (409).

Request Body
accountIdstringOwning account id (create mode). API-key callers may only use the account the key belongs to; JWT callers must be a member.
content_typestringDeclared content type (create mode) — must be whitelisted.
content_lengthintegerDeclared object size in bytes (create mode); must not exceed max_upload_bytes.
original_namestringOptional display name (truncated to 255 chars server-side).
media_idstring (uuid)RE-PRESIGN mode: when present, re-signs an existing uploading row instead of creating a new one — accountId/content_type/content_length are not required in this mode and the stored row is the source of truth.
Responses
200Re-presign of an existing uploading media object (media_id given).
201New uploading media object created.
400accountId/content_type/content_length missing, media_id not a uuid, or original_name not a string.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the account. With MEDIA_STORAGE_QUOTA_ENFORCED=true (inactive by default) also the storage-quota response.
404media_id does not match any media object.
409The row is deleted or not in status uploading — start a new upload.
410The upload session was abandoned for more than MEDIA_UPLOAD_ABANDON_DAYS days (default 7) and was expired — restart the upload.
413content_length exceeds max_upload_bytes.
415content_type not whitelisted, or content_length is not positive.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to authorize the upload.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/presign" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "YOUR_ACCOUNT_ID",
  "content_type": "image/jpeg",
  "content_length": 1
}'
GET
/media/limits
Upload limits (single source of truth)

Returns the active upload limits verbatim from configuration. Clients decide single-shot vs multipart from HERE — thresholds are never hardcoded client-side. Values are environment-dependent and may change without notice; read them at runtime instead of assuming defaults.

Responses
200max_upload_bytes caps the single-shot flow; multipart carries the threshold (from which size the browser uploads in parts), the part size, the absolute per-object ceiling and the part-URL TTL.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
Example
Shell · cURL
curl -X GET "https://api.postixly.com/media/limits" \
  -H "X-API-Key: <your-api-key>"
POST
/media/multipart/create
Create a multipart upload session

Opens a multipart session in storage and returns presigned PUT URLs for every part. The browser PUTs the parts DIRECTLY to storage — the bytes never pass through this API. Requires content_length at or above threshold_bytes (smaller files use the single-shot upload), at most max_object_bytes, and at most 10,000 parts (S3/R2 cap). Parts are 1-indexed; every part except the last covers part_size bytes (S3 requires ≥5 MiB for all but the last part). Creates the metadata row (status uploading) bound to the session from the first moment, so the abandoned-upload GC covers multipart sessions too.

Request Body
accountIdstringrequiredOwning account id. API-key callers may only use the account the key belongs to; JWT callers must be a member.
content_typestringrequiredDeclared content type — must be whitelisted.
content_lengthintegerrequiredDeclared object size. Must be at or above threshold_bytes, at most max_object_bytes, and splittable into at most 10,000 parts.
original_namestringOptional display name (truncated to 255 chars server-side).
Responses
201Session created. parts carries one entry per part with its byte range and presigned PUT URL; expires_in the URL TTL.
400Missing accountId/content_type/content_length, original_name not a string, content_length below the multipart threshold (details: threshold_bytes), invalid content_length, or the file would need more than 10,000 parts.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the account. With MEDIA_STORAGE_QUOTA_ENFORCED=true (inactive by default) also the storage-quota response.
413content_length exceeds max_object_bytes.
415content_type not whitelisted.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to initialize the session, register the upload or sign the parts.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/multipart/create" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "YOUR_ACCOUNT_ID",
  "content_type": "image/jpeg",
  "content_length": 1
}'
POST
/media/multipart/sign-part
Re-sign multipart part PUT URLs

Returns fresh presigned PUT URLs for the requested parts (retries and expired part URLs). The upload_id is the capability received at create time — a known media_id alone cannot sign parts. At most 100 parts per request. part_numbers must be unique integers within 1..part_count (part_count = byte_size ÷ part_size_bytes, see GET /media/limits). The session must still be uploading and not abandoned.

Request Body
media_idstring (uuid)required
upload_idstringrequiredSession capability from the create response (≥16 chars); a known media_id alone cannot operate on the session.
part_numbersarrayrequired
Responses
200urls maps each part number (as string key) to a fresh presigned PUT URL; expires_in the TTL in seconds.
400media_id/upload_id missing, media_id not a uuid, or invalid part_numbers (non-empty, unique integers within range).
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the media object.
404media_id does not match any media object.
409upload_id does not match the row, or the media object is not in status uploading.
410The upload session was abandoned past MEDIA_UPLOAD_ABANDON_DAYS — restart.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to sign the upload parts.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/multipart/sign-part" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "media_id": "YOUR_MEDIA_ID",
  "upload_id": "YOUR_UPLOAD_ID",
  "part_numbers": [
    1
  ]
}'
POST
/media/multipart/complete
Complete a multipart upload

Completes the session in storage — the AUTHORITATIVE part validation (ETags, sizes, order) happens there. A part rejected by storage does NOT kill the session: re-upload the failing parts (sign-part) and complete again. After completion the final object is verified against the declaration: exact byte_size (413 on mismatch — object and row are deleted together), magic bytes on the whitelist (415), and a SHA-256 over the stored bytes is recorded. The returned mime_type is the SNIFFED type and may differ from the declared content_type. Idempotent: replaying after a successful complete (or completing a session that storage reports as already finished) returns the same success response instead of failing.

Request Body
media_idstring (uuid)required
upload_idstringrequiredSession capability from the create response (≥16 chars); a known media_id alone cannot operate on the session.
partsarrayrequiredThe completed parts as returned by storage (ETag response header per part). Must cover exactly 1..part_count; quotes around the ETag are stripped server-side.
Responses
200Object ready (including the idempotent replay of a completed upload).
400Invalid parts payload (missing part_number/etag, gaps or duplicates — the list must cover exactly 1..part_count), or storage rejected one or more parts (wrong ETag, undersized part or wrong order) — re-upload the failing parts and complete again.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the media object.
404media_id does not match any media object.
409upload_id does not match the row, the media object is not in status uploading, or the upload was cancelled/removed while it was completing — start a new upload.
410The multipart session no longer exists (expired or aborted) — restart the upload.
413Stored object size does not match the declared byte_size (details: stored_bytes, declared_bytes) — restart the upload.
415Completed object content does not sniff to a whitelisted type.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to confirm the upload state. When the claim outcome is undecidable nothing is deleted — retry shortly.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/multipart/complete" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "media_id": "YOUR_MEDIA_ID",
  "upload_id": "YOUR_UPLOAD_ID",
  "parts": [
    {
      "part_number": 1,
      "etag": "YOUR_ETAG"
    }
  ]
}'
POST
/media/multipart/abort
Abort a multipart upload

Cancels a multipart session and frees the reserved size immediately when no object exists behind it. Reaching an already-aborted state is reported as success (aborted: true), so retrying a lost abort is safe. A COMPLETED upload cannot be aborted (409) — delete it via POST /media/delete instead.

Request Body
media_idstring (uuid)required
upload_idstringrequiredSession capability from the create response (≥16 chars); a known media_id alone cannot operate on the session.
Responses
200Session aborted (or already aborted by a concurrent request).
400media_id/upload_id missing or media_id not a uuid.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the media object.
404media_id does not match any media object.
409upload_id does not match the row, or the media is already completed — delete it via POST /media/delete.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to abort the upload.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/multipart/abort" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "media_id": "YOUR_MEDIA_ID",
  "upload_id": "YOUR_UPLOAD_ID"
}'
POST
/media/lookup
Resolve media ids to object keys

Returns object metadata for READY, non-deleted media owned by the caller’s account. Unknown ids, foreign-account ids and soft-deleted rows are silently omitted — the response shape is identical to the ids never having existed (no existence oracle for other accounts’ media). At most 50 ids per request. Used by the dashboard to hand pre-uploaded media to the post form.

Request Body
accountIdstringrequired
idsarrayrequiredMedia object ids to resolve (only ready, owned rows are returned).
Responses
200objects carries one entry per matching ready media id.
400accountId missing, or ids not an array of 1-50 uuid strings.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to accountId.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Lookup failed.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/lookup" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "YOUR_ACCOUNT_ID",
  "ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ]
}'
POST
/media/{id}/confirm
Confirm a direct upload landed

Verifies that the object the browser PUT to the presigned URL actually landed and matches the declaration: the stored byte_size must equal the declared size (413 on mismatch — object and row are deleted together so nothing invalid lingers), the size cap applies, and the stored bytes must sniff to a whitelisted type (415 — invalid content is deleted). A SHA-256 over the stored bytes is computed and persisted; the returned mime_type is the SNIFFED type and may differ from the declared content_type. Idempotent on an already-ready row. No request body.

Path Parameters
idstringrequiredMedia object id returned by POST /media/presign.
Responses
200Object verified and ready (including the idempotent replay of an already-ready row).
400Object not found in storage — the upload did not complete.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to the media object.
404Media object not found.
409The media object is not in status uploading, or it was removed while being confirmed — start a new upload.
413Stored object size does not match the declared byte_size (details: stored_bytes, declared_bytes), or exceeds the size limit — the object is deleted.
415Stored bytes do not sniff to a whitelisted type — the object is deleted.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to confirm the upload.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/YOUR_MEDIA_ID/confirm" \
  -H "X-API-Key: <your-api-key>"
POST
/media/resolve
Presign read URLs for media keys

Returns expiring GET URLs for the given keys. Storage media keys are presigned per request (TTL: R2_READ_URL_TTL_SECONDS); legacy http(s) URLs pass through verbatim. Strings that are neither media keys nor http(s) URLs are silently omitted, as are keys whose presign fails. Keys are grouped by their owning account segment — every referenced account must be accessible to the caller (403 otherwise). At most 50 keys per request.

Request Body
keysarrayrequiredStorage media keys and/or legacy http(s) URLs. Strings that are neither are silently omitted from the response.
Responses
200urls maps each resolvable input key to its read URL.
400keys not an array of 1-50 strings.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to an account referenced by the keys.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Lookup failed.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/resolve" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "keys": [
    "YOUR_MEDIA_KEY"
  ]
}'
POST
/media/delete
Soft-delete media (24 h grace)

Schedules deletion of the given keys 24 h in the future. Keys still referenced by ANY post are skipped (shared-reference guard — active media is never deleted to make room); legacy non-media keys and keys belonging to another account are skipped too. The response reports per-key outcomes; the actual object removal is performed by the background garbage collector after the grace window. At most 50 keys per request.

Request Body
accountIdstringrequired
keysarrayrequiredMedia keys to schedule for deletion.
Responses
200scheduled: keys queued for deletion; skipped: keys protected by a post reference, foreign or non-media; errors: per-key failure messages (fail-closed — a failed reference check skips the key).
400accountId missing, or keys not an array of 1-50 entries.
401Missing or invalid credentials. Send X-API-Key (header) or Authorization: Bearer <JWT>.
403Caller has no access to accountId.
429Rate limit exceeded. Every route has a global limit; media write routes add a stricter media-upload limit (defaults: 30 requests / 60 s per IP). details.retry_after carries the seconds to wait.
500Failed to schedule the deletion.
Example
Shell · cURL
curl -X POST "https://api.postixly.com/media/delete" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "YOUR_ACCOUNT_ID",
  "keys": [
    "YOUR_MEDIA_KEY"
  ]
}'

Platforms

1

Per-platform publishing requirements

GET
/platforms/media-requirements
Responses
200Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/platforms/media-requirements" \
  -H "X-API-Key: <your-api-key>"

Webhooks

4

Manage event notification webhooks

GET
/webhooks/
List webhooks

Returns all webhooks for the authenticated account.

Query Parameters
workspace_idstringTeam account UUID
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
500Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/webhooks/" \
  -H "X-API-Key: <your-api-key>"
POST
/webhooks/
Create a webhook

Registers a new webhook endpoint. The signing secret is returned once and cannot be retrieved again.

Request Body
urlstring (uri)requiredHTTPS endpoint URL
eventsarray
workspace_idstring (uuid)
Responses
201Default Response
400Default Response
401Default Response
403Default Response
404Default Response
500Default Response
Example
Shell · cURL
curl -X POST "https://api.postixly.com/webhooks/" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://hooks.example.com/postixly"
}'
PATCH
/webhooks/{id}
Update a webhook

Enables or disables an existing webhook.

Path Parameters
idstring (uuid)required
Request Body
activebooleanrequiredWhether the webhook is active
Responses
200Default Response
400Default Response
401Default Response
403Default Response
404Default Response
500Default Response
Example
Shell · cURL
curl -X PATCH "https://api.postixly.com/webhooks/YOUR_WEBHOOK_ID" \
  -H "X-API-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
  "active": true
}'
DELETE
/webhooks/{id}
Delete a webhook

Permanently removes a webhook.

Path Parameters
idstring (uuid)required
Responses
204Webhook deleted
400Default Response
401Default Response
403Default Response
404Default Response
500Default Response
Example
Shell · cURL
curl -X DELETE "https://api.postixly.com/webhooks/YOUR_WEBHOOK_ID" \
  -H "X-API-Key: <your-api-key>"

System

3

Health and diagnostics

GET
/livez
Liveness probe
Responses
200Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/livez" \
  -H "X-API-Key: <your-api-key>"
GET
/health
Health check (v1 alias)

Returns service health status.

Responses
200Default Response
503Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/health" \
  -H "X-API-Key: <your-api-key>"
GET
/media/proxy
Media proxy for TikTok PULL_FROM_URL domain verification
Query Parameters
urlstringrequired
Responses
200Default Response
Example
Shell · cURL
curl -X GET "https://api.postixly.com/media/proxy?url=YOUR_URL" \
  -H "X-API-Key: <your-api-key>"

Platform Options

Pass platform-specific settings under the platform_options field when creating or updating a post. Only include the key for the platforms you are targeting — omitted platforms use their defaults.

Structure
{
  "platform_options": {
    "tiktok":  { /* TikTok-specific fields */ },
    "youtube": { /* YouTube-specific fields */ }
  }
}
tiktokTikTok Options

TikTok-specific publish options (passed under `platform_options.tiktok`).

FieldTypeDefaultDescription
tiktokPrivacystringPUBLICWho can view the video. Available values depend on the creator account.
tiktokIsDraftbooleanfalseSave as draft instead of publishing immediately.
tiktokAllowCommentsbooleantrueAllow viewers to comment on the video.
tiktokAllowDuetbooleantrueAllow other creators to duet with this video.
tiktokAllowStitchbooleantrueAllow other creators to stitch with this video.
tiktokBrandContentbooleanfalseDisclose as paid partnership / branded content.
tiktokBrandOrganicbooleanfalseDisclose as promoting your own brand organically.
tiktokAutoAddMusicbooleanfalseLet TikTok automatically add background music.
tiktokIsAigcbooleanfalseMark the video as AI-generated content.
youtubeYouTube Options

YouTube-specific publish options (passed under `platform_options.youtube`).

FieldTypeDefaultDescription
youtubeTitlestring—Video title. Falls back to the first 100 characters of `content` if omitted.
youtubePrivacystringPUBLICVideo visibility.Allowed: PUBLICPRIVATEUNLISTED
youtubeTagsarray—Searchable tags for the video.
youtubeCategoryIdstring—YouTube category ID (e.g. "28" for Science & Technology, "22" for People & Blogs).
youtubeIsShortbooleanfalseInformational flag — YouTube auto-detects Shorts by aspect ratio and duration.
youtubeMadeForKidsbooleanfalseCOPPA compliance — mark the video as made for children.
youtubePlaylistIdstring—Playlist ID to add the video to after publishing.
youtubeThumbnailUrlstring—URL of a custom thumbnail image.