I am building an n8n workflow that uses an openai node with operation create and assistant. I added the description, instructions, and credentials. But when I am executing the step I am getting this error “ Bad request - please check your parameters. You must provide the ‘OpenAI-Beta’ header to access the Assistants API. Please try again by setting the header ‘OpenAI-Beta: assistants=v2’“
Bad request - please check your parameters. You must provide the ‘OpenAI-Beta’ header to access the Assistants API. Please try again by setting the header 'OpenAI-Beta: assistants=v2
I think that error comes from OpenAI, not n8n. The assistant API (/v2/assistants) is still in beta, and OpenAI requires a special header on every request: