Hi im new here and dont have any clue why my API Key is not accepted or if (see little message on buttum right) why I get a error message. I already tried 2 API Keys. and I added credit to it.. Pleeaaase need help. Thanx

Describe the problem/error/question

What is the error message (if any)?

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 there! Do you have at least $5 in credits? Also please try by pasting the API key as plain text. Please let me know how it goes.

@GGSdasdasdasfdsd did you check that you’re pasting the key without any extra spaces? sometimes the api just rejects keys with trailing whitespace. also if you’re on the free tier, certain api providers require at least 5-10 credits in advance before accepting requests. if neither of those work, worth checking your api provider’s credentials page directly to make sure the key is actually active there

Hi @GGSdasdasdasfdsd Welcome!
Have you tried checking on what you are pasting there? Also in the BASE URL have you tried entering this: https://api.anthropic.com/v1/messages ?

I recommend checking what you are pasting, and even if that does not work try the HTTP node that would surely work.

Yup, I did everything exactly as described in the tutorials. The key didn’t contain any blanklines. BUT I think it worked anyway, despite the error message.. maybe the message in the bottom right was the correct one?! because my balance is decreasing while I try to figure out how creating workflows actually works. :sweat_smile:

I think I’ll leave the credentials settings as they are for now and see if I can create the workflow I want. I got a lot to learn hahah

Appreciate the support.. thanks y’all!!

@Anshul_Namdev @Benjamin_Behrens

haha nice, glad you sorted it out! if credits are being deducted the api connection is definitely working — the error message in the bottom right is sometimes just a display quirk that doesn’t actually reflect what’s happening under the hood. good luck with your first workflows! :slightly_smiling_face:

1 Like