My Workflow Credentials don't authenticate

</>{
“nodes”: [
{
“parameters”: {
“options”: {}
},
“id”: “c642161f-7c29-402a-94ed-38ae6d3e33da”,
“name”: “When chat message received”,
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1.5,
“position”: [
-240,
-32
],
“webhookId”: “8734f6c1-092c-4374-a780-036a02b3c3f7”
},
{
“parameters”: {
“options”: {
“systemMessage”: “You are a customer service agent. You have access to a customer database and an order database.\n\nWhen asked about customers, use the GetCustomers tool to look up their information.\nWhen asked about orders, prices, employees, or product categories, use the GetOrderData tool.\n\nBe concise and helpful. If the data does not contain what the user is asking for, say so. Do not make up information.”
}
},
“id”: “ffefacd7-bc8a-4aa0-a9a5-9c16b743246b”,
“name”: “AI Agent”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 3.1,
“position”: [
-48,
-32
]
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gpt-5-mini”,
“mode”: “list”,
“cachedResultName”: “gpt-5-mini”,
“cachedResultUrl”: “”
},
“builtInTools”: {},
“options”: {}
},
“id”: “7545e73b-e996-4a1b-b524-3ff9d27cc7e5”,
“name”: “OpenAI Chat Model”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.3,
“position”: [
-160,
144
],
“credentials”: {
“openAiApi”: {
“id”: null,
“name”: “”,
“__aiGatewayManaged”: true
}
}
},
{
“parameters”: {},
“id”: “2464df52-5dd2-4f31-9ff4-37e720e0fe9f”,
“name”: “Simple Memory”,
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.4,
“position”: [
-16,
144
]
},
{
“parameters”: {
“operation”: “get”,
“dataTableId”: {
“__rl”: true,
“value”: “4qadZGdey3taGJtr”,
“mode”: “list”,
“cachedResultName”: “customers”,
“cachedResultUrl”: “/projects/WHn8tk71EEG1i7Bz/datatables/4qadZGdey3taGJtr”
},
“returnAll”: true
},
“id”: “b3fb204c-9a00-4bb7-9b8d-b922945432f4”,
“name”: “GetCustomers”,
“type”: “n8n-nodes-base.dataTableTool”,
“typeVersion”: 1.1,
“position”: [
112,
144
]
},
{
“parameters”: {
“toolDescription”: “Retrieve order details including order prices, quantities, product categories, employee assignments, and order statuses for all customers”,
“url”: “https://learn.app.n8n.cloud/webhook/courses/n8n-quickstart/order-tool”,
“authentication”: “genericCredentialType”,
“genericAuthType”: “httpHeaderAuth”,
“options”: {}
},
“id”: “fa3b201a-8b21-4cdd-9097-2b0b44469fcb”,
“name”: “GetOrderData”,
“type”: “n8n-nodes-base.httpRequestTool”,
“typeVersion”: 4.5,
“position”: [
240,
144
],
“credentials”: {
“httpHeaderAuth”: {
“id”: “ZhJuY7w4AtupIaIH”,
“name”: “X-API-KEY”
}
}
}
],
“connections”: {
“When chat message received”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Simple Memory”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“GetCustomers”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“GetOrderData”: {
“ai_tool”: [
[
{
“node”: “AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “407047cb51a6825681788f7145c6dada2742c4bac5bcb91d933afc4bad2022b9”
}
}

Describe the problem/error/question

<!-</>{
“errorMessage”: “Forbidden - perhaps check your credentials?”,
“errorDescription”: “Authorization data is wrong!”,
“errorDetails”: {
“rawErrorMessage”: [
“403 - "Authorization data is wrong!"”
],
“httpCode”: “403”
},
“n8nDetails”: {
“nodeName”: “GetOrderData”,
“nodeType”: “n8n-nodes-base.httpRequestTool”,
“nodeVersion”: 4.5,
“itemIndex”: 0,
“time”: “10/4/2026, 8:11:44 PM”,
“n8nVersion”: “2.42.2 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Forbidden - perhaps check your credentials?”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file++++home+runner+_work+n8n+n8n+packages+nodes-base/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:892:16)“,
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1129:8)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1431:11)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2333:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file++++home+runner+_work+n8n+n8n+packages+core/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2814:11"
]
}
}Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

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:

Hey @Farrukh_Hameed, while you wait for a response, here are some things that might help:

Suggested resources

Automatically matched to your question.

Docs:

Forum:

@eletromotiva, @hubschrauber, @DC3 - you’ve helped with similar issues before, can you take a look?

Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.

Hi Farrukh,

The 403 “Authorization data is wrong!” comes from the course webhook itself, not from OpenAI: your GetOrderData tool reaches the server, but the header it sends doesn’t match what the server expects.

A few things to check in the Header Auth credential used by GetOrderData:

  1. Open the credential (it’s named “X-API-KEY” in your workflow). There are two different fields: the credential name at the top (just a label inside n8n), and the header “Name” and “Value” fields below. The server only looks at “Name” and “Value”. Make sure both are exactly what the Quickstart course gives you, not the label.
  2. Look for hidden characters: a space before or after the value, or quotes copied along with it. Retyping the value by hand often fixes it.
  3. If you edited the credential, save it, then re-select it in the GetOrderData node (sometimes the node still points to the old version).
  4. To test without the AI Agent, add a plain HTTP Request node with the same URL and the same credential and click “Execute step”. If that returns 403 too, the issue is 100% the header values; if it works, the problem is in how the tool is configured.

If it still fails, share a screenshot of the credential window (hide the value) and I’ll take a look.

Thanks for help Akram. Really appreciate

Hi Farrukh — I think the missing piece is the second Academy header.

In the workflow JSON you posted, GetOrderData uses Header Auth for X-API-KEY, but I don’t see an x-assessment-id header being sent. The QS101 order-tool endpoint needs both headers on the request.

Keep X-API-KEY in Header Auth, enable Send Headers on GetOrderData, and add:

x-assessment-id: your Assessment ID from the Academy page

Then retry the tool. The important part is that the outgoing request contains both headers. Don’t post either value publicly.