Forbidden - perhaps check your credentials? You are not permitted to perform this action

Describe the problem/error/question i am trying to use chat gpt to send the twitter info and twitter needs to tweet it. I put in de credentials for twitter and I am connected. When Chatgpt creats the tweet and sends it to Twitter module Twitter gives me the following error: Forbidden - perhaps check your credentials?

You are not permitted to perform this action.

Please share your workflow

Share the output returned by the last node:

From X

Error code

403

Full message

{ "detail": "You are not permitted to perform this action.", "type": "about:blank", "title": "Forbidden", "status": 403 }

I have ben reputting the credentials after reputting the X Module than i removed it again and put first the credentials. I have no idea. I have a normal free Twitter account. Please help

Information on your n8n setup

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

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:

n8n version 1.75.2. and i use a macbook and dektop browser

{
“errorMessage”: “Forbidden - perhaps check your credentials?”,
“errorDescription”: “You are not permitted to perform this action.”,
“errorDetails”: {
“rawErrorMessage”: [
“403 - {"detail":"You are not permitted to perform this action.","type":"about:blank","title":"Forbidden","status":403}”
],
“httpCode”: “403”
},
“n8nDetails”: {
“nodeName”: “X”,
“nodeType”: “n8n-nodes-base.twitter”,
“nodeVersion”: 2,
“resource”: “tweet”,
“operation”: “create”,
“time”: “1/28/2025, 2:38:30 AM”,
“n8nVersion”: “1.75.2 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Forbidden - perhaps check your credentials?”,
" at ExecuteContext.twitterApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Twitter/V2/GenericFunctions.js:41:15)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Twitter/V2/TwitterV2.node.js:171:40)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:632:19)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:890:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1224:20"
]
}
}

Welcome to the community @mezstor !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


The problem appears to be with your API key, namely the level of permissions (access level) you picked when setting up the app on X. Here’s the video showing how to set it up. Although it demonstrates the steps and options with different automation platform in mind it should be applicable to automation with n8n too, https://youtu.be/U50QyuAhsuU.