401 Error: API key issues in Buildship
Hi there, I'm having major issues with my api key for my rest api call. I have my key under secrets and linked it to the authorization box in my api test node. I recieved a 401 error with a message saying my api key is missing. I've also tried entering in a new header specifically for my api key and it continues to fail. Any input is greatly appreciated. Thank you so much!
Solution:Jump to solution
I figured it out! The Api-Key header needs to be in quotations due to the hyphen. In the header input, I ensured the manual input key box matched the header label (the quotations didn't seem to apply here) and the backend code reflected the changes.
6 Replies
AI Support Bot Information
<@1375533579563569322> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
Dealing with a 401 error due to a missing API key is a common issue when implementing API calls. Here are a few steps you can follow to troubleshoot and hopefully resolve the issue:
1. Double-check the Secret Storage: Ensure that your API key is stored correctly under secrets. Verify that there are no typos or formatting issues.
2. Authorization Header: Make sure that the authorization header is correctly configured in the API test node. The header name is usually something like
Authorization
or a custom header like x-api-key
, depending on the API provider's requirements.
3. Check API Documentation: Review the API documentation to ensure you are sending the API key exactly as required. Some APIs might require the API key to be prefixed with terms such as Bearer
.
4. New Header Addition: When attempting to add a new header specifically for your API key, ensure that it matches one of the accepted headers as per the API documentation. Verify that you are setting it up correctly in the node.
5. Validate API Key: Ensure that the API key is still valid and active. Some services allow you to view the API key usage and status.
6. Network Issues: Sometimes the error might occur due to network-related issues. Ensure your connection is stable, and there are no firewalls or proxies blocking the request.
If none of the above resolves the issue, it might be helpful to consult with the API provider's support for further assistance.
For more guidance, refer to the API documentation or check for platform-specific issues if you suspect it might be a bug in the platform (e.g., BuildShip).
If you continue to encounter issues, please send a support request via in-app support for more personalized assistance!
BuildShip AI Support
My api call is working in postman just not in buildship
Hi @AP it must be an issue with how you are passing it in header? Could you please share your flow via in-app and link this message. We can check and make you succeed
Yes, here is my in-app work flow! The api is plant.id. Thank you!

Solution
I figured it out! The Api-Key header needs to be in quotations due to the hyphen. In the header input, I ensured the manual input key box matched the header label (the quotations didn't seem to apply here) and the backend code reflected the changes.