n8n
What this is
Section titled “What this is”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.
Set up the node
Section titled “Set up the node”- Method:
POST(or whichever the route needs), URL:https://api.dropslate.top/v1/posts. - Authentication → Generic Credential Type → Header Auth: Name
Authorization, ValueBearer ds_live_...- saved as an n8n credential, not typed into the workflow body. - Body: JSON, the same shape as the curl scenario.
Chain upload then post
Section titled “Chain upload then post”Three HTTP Request nodes in sequence:
POST /media/uploads→ returnsuploadUrlandmediaId.- A second HTTP Request node does the
PUTof the file’s bytes touploadUrldirectly - noAuthorizationheader on this one, the URL is signed on its own. POST /postswith themediaIdfrom step 1.
Common errors
Section titled “Common errors”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.