Skip to content

n8n

There’s no dedicated Dropslate n8n node - the REST API is plain bearer-token JSON, so a standard HTTP Request node does everything, chained for upload → post the same way a curl script would.

  • Method: POST (or whichever the route needs), URL: https://api.dropslate.top/v1/posts.
  • Authentication → Generic Credential Type → Header Auth: Name Authorization, Value Bearer ds_live_... - saved as an n8n credential, not typed into the workflow body.
  • Body: JSON, the same shape as the working example.

Five steps in sequence:

  1. POST /media/uploads with the file’s real size in bytes → returns uploadUrl and mediaId.
  2. A second HTTP Request node does the PUT of the file’s bytes to uploadUrl directly - no Authorization header on this one, the URL is signed on its own.
  3. GET /media/{mediaId} in a loop with a Wait node until status is ready - processing runs on its own, and a post planned before that has the issue media_not_ready.
  4. POST /posts/plan with the post; stop the workflow when ok is false and read the rows.
  5. POST /posts with the same body and confirm: true.

See Errors for the {code, message, hint} shape every failed node’s response carries - n8n surfaces the response body as is, so the same code values apply.