Skip to content

API introduction

The Dropslate REST API is the same contract the dashboard and MCP both use - apps/api/openapi.json, also served live at GET /v1/openapi.json. This page is the practical path: get a key, run the upload → post → status scenario end to end, then use the generated OpenAPI reference for every field.

Settings → API keys → New key (owners and admins). Name it for what it’s for, and grant write if it needs to publish - without it, a key only reads accounts, media and posts. The full key (ds_live_...) is shown once, right after creation - copy it then, because the server stores only its hash and prefix afterward. The API comes with paid plans, which are not on sale yet: on Free, creating a key answers 402 quota_exceeded.

The key is not for a prompt. It belongs in a client’s environment or a workflow tool’s credential store (an n8n credential, a Make connection, a .env file), never in text an AI agent reads: an agent that can read its own instructions can read a key pasted into them just as easily.

The acceptance scenario for this API is the working example: the same six calls in curl, Node and Python, run end to end against the live server.

  1. GET /accounts - the account to publish to, chosen by its platform and status: "ok", never the first one in the list.
  2. POST /media/uploads with the file’s real size in bytes - a different number answers size_mismatch at the next step.
  3. PUT the bytes to uploadUrl - the URL is signed on its own, so no Authorization header.
  4. GET /media/{id} until status is ready - processing runs on its own, and a post planned before that has the issue media_not_ready.
  5. POST /posts/plan, read every row, then POST /posts with the same body and confirm: true. A YouTube target needs a title.
  6. GET /posts/{id} until live or failed.

Next: Authentication, Rate limits, Errors, or the field-by-field OpenAPI reference.