Hi everyone,
I am trying to upload an image to X (Twitter) using the HTTP Request Node but I keep receiving a 403 Forbidden error.
My Setup:
-
n8n Version: 2.1.5 (Self-hosted)
-
Endpoint:
https://api.x.com/2/media/upload -
Auth Method: X OAuth2 API (Built-in n8n credential)
-
Permissions: App is set to “Read and Write and Direct Messages” in X Developer Portal.
The Request:
-
Method: POST
-
Body Type: Form-Data
-
Parameters: *
media: (Binary file from previous node)-
media_category:tweet_image -
media_type:image/png
-
Even though my credentials seem correct and have full write permissions, I cannot bypass this error. Is there a specific header or parameter I’m missing for the v2 media upload endpoint in n8n?