X oauth API credential error 401

Hi !
I try to post new X (Twitter) Posts with medias and I have an issue with X oauth authentification.
I have succesfully connected my X API v2 credentials with n8n but when I try with X API v1.1 credentials (aka X oauth API), I can’t input my credentials and therefore try uploading a media on X.

When “Connect my account” is selected, the following error occurs :

oauth error 401

It seems weird to not being able to put my credentials before connexion and I didn’t have any problem with X oauth2 API.

For references, this post shows it worked in january: How to automate Tweet publication (Text + Image) on X from n8n!

Thanks for your advices

  • n8n version: 1.57.0
  • Running n8n via : n8n cloud

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

For the v1 API, please use an HTTP request node and a generic OAuth2 credential. I’ve followed that tutorial myself and found it to be accurate.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.