OpenAPI 3.1.0v1Public beta

Ubiqlu API reference

Workspace REST endpoints for preparing a campaign. Create drafts, upload media, draw post images, attach accounts, and send posts for review. An admin schedules them in the app. The reference below is generated from the live OpenAPI document. It opens with a guide to what each key can do, the network limits, the rate limits, and the error codes.

For AI agents

Safe external tool use

Follow these rules when a tool calls the API on a user's behalf.

  1. Ask for a workspace ID and API key

    Never request a Clerk session, password, Stripe data, or social account token.

  2. Keep the key secret

    Raw keys start with uql_ and are shown once. Keep them in an encrypted tool secret store and never print the key in chat history.

  3. Check what the key can do

    Call GET /workspaces first. It returns the key's role, scopes, and authorId, so you know what the key can do before anything is refused.

  4. Send posts for review

    No key can schedule or publish. Send timing set to review with a future scheduledAt, and the post waits for an admin to schedule it. It then goes out at that time. Leaving timing out saves a draft. Editing a post that waits for review keeps it waiting.

  5. Group posts under a campaign

    Create a campaign before related posts, so they stay grouped under one idea. A draft can have no accounts. Add them before you send the post for review, and attach an Instagram image in the same call as the Instagram account.

Ask for the narrowest scope

Each operation in the reference lists the scopes it accepts.

media:read

View media

List and read uploaded images and videos.

media:write

Upload media

Upload new images and videos to the workspace.

posts:read

View posts

List posts and read their content and status.

posts:draft

Draft and send for review

Create and edit drafts, and send a post for review with a planned time. An admin schedules it from the dashboard. This key cannot schedule, publish, cancel, or retry a send.

posts:write

Draft, send for review, and manage sends

Everything the draft scope can do, plus cancel a scheduled send that has not started, retry a failed send, confirm an uncertain send, manage status notifications, and archive or delete a campaign. It cannot schedule or publish a post. No key can.

Get started

Need an API key?

  1. 1

    Start a trial

    API access is included in every plan.

  2. 2

    Create a key in workspace settings

    Keys are workspace-scoped and shown once at creation.

  3. 3

    Hand the key to your tool

    Store it as a secret, then call GET /workspaces.

Start trial