API reference

API reference

Conventions shared by every endpoint, and the full endpoint index.

A REST API over JSON. One base URL, bearer auth, predictable resources.

https://api.cutedyno.com

OpenAPI (always in sync with the server): /docs/api/openapi.json.

Conventions

TopicRule
AuthAuthorization: Bearer cdyn_live_...
BodiesJSON, Content-Type: application/json
FieldscamelCase; timestamps ISO 8601 UTC
ProfilesPass profileId or use the key's home profile
IdempotencyIdempotency-Key on writes
Errors{ error: { code, message, requestId } }
Rate limitsRateLimit-* headers; 429 includes Retry-After

See Authentication, Idempotency, Errors, Rate limits.

Pagination

Two styles, depending on the resource:

Offset pagination — posts, events, logs. Send page and limit, read total and hasMore:

const { posts, hasMore } = await cutedyno.posts.list({ page: 2, limit: 50 });

Or let the SDK walk it for you:

for await (const post of cutedyno.posts.iterate({ status: 'failed' })) {
  console.log(post.id);
}

Cursor pagination — comments, which change while you read them. Send cursor from the previous response's nextCursor, and stop when it is null.

limit is capped at 100 everywhere. Requesting more is not an error; you get 100.

Status values

A post moves through these:

StatusMeaning
draftSaved, no schedule. Nothing will happen until you schedule or publish it.
pending_approvalWaiting on an approver.
approvedApproved and about to continue.
rejectedAn approver declined it. It stays unpublished.
scheduledQueued for a future time.
queuedHanded to a worker, about to be published.
processingCurrently uploading to platforms.
publishedSucceeded on every target account.
partially_publishedSucceeded on some accounts, failed on others.
failedFailed on every target account.
cancelledCancelled before publishing.

partially_published is the one people forget. Posting one video to five platforms means five independent uploads with five sets of rules, and a duration that TikTok accepts may exceed what another allows. Treat it as an expected outcome: read results, and retry only what failed.

Endpoints

Profiles

A profile is one customer of your platform. It owns connected accounts, posts, and policy.

API keys

Mint and revoke keys, optionally scoped to specific profiles.

Accounts

Connect social accounts to a profile and list what is connected.

Posts

Create, schedule, publish, and inspect posts.

Comments

Read comments on published content.

Media

Upload images and video for use in posts.

Analytics

Read account performance, timeseries history, and top content.

Webhooks

Receive events instead of polling. Includes delivery logs and tests.

Policy

Guardrails applied to everything in a profile.

Observability

Audit events and API request logs for debugging and compliance.