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.
Ask for a workspace ID and API key
Never request a Clerk session, password, Stripe data, or social account token.
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.Check what the key can do
Call
GET /workspacesfirst. It returns the key's role, scopes, andauthorId, so you know what the key can do before anything is refused.Send posts for review
No key can schedule or publish. Send
timingset toreviewwith a futurescheduledAt, and the post waits for an admin to schedule it. It then goes out at that time. Leavingtimingout saves a draft. Editing a post that waits for review keeps it waiting.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:readView media
List and read uploaded images and videos.
media:writeUpload media
Upload new images and videos to the workspace.
posts:readView posts
List posts and read their content and status.
posts:draftDraft 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:writeDraft, 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
Start a trial
API access is included in every plan.
- 2
Create a key in workspace settings
Keys are workspace-scoped and shown once at creation.
- 3
Hand the key to your tool
Store it as a secret, then call
GET /workspaces.