Stephen
Stephen2mo ago

Where do I find docs on how to add a header with a value to a rest API call ?

I want to add Authorization with a value but the "+" symbol seems to add a new element to the output ?? When I click on the "Request headers" I don't see anything for adding values to that property... Any help or advice is appreciated ...
No description
Solution:
To add an Authorization header, you'll require to add it under the Request Headers, ensuring the type of the request headers is Object. You can clone this sample workflow - https://buildship.app/remix/ca544a0c-566c-4642-aa3b-729e7eb92474 which has an example. Also, to learn more about headers and other components you can refer to this - https://docs.buildship.com/basics/ship-an-api and REST API Trigger docs - https://docs.buildship.com/trigger-nodes/rest-api....
No description
Jump to solution
7 Replies
AI Support
AI Support2mo ago
AI Support Bot Information
<@814925000838086657> 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 Support
AI Support2mo ago
AI Response
It seems you are trying to add an "Authorization" header with a value, but the "+" symbol appears to add a new element rather than allowing you to input the value. To solve this issue, ensure that you properly format and reference the JSON components correctly. Here are the steps to follow: 1. Verify JSON Structure: Ensure the header JSON structure is correct and that the values are properly defined. 2. Referencing JSON Components: Properly reference the components by ensuring the key-value pairs are accurate. Example JSON Headers:
{
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}

{
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}

3. Adding Headers in BuildShip: When you click on "Request headers," ensure you enter the correct key-value pairs directly. 4. Using the "+" Symbol: The "+" symbol should allow you to add new headers. Each entry should consist of a key and its corresponding value, like this: - Key: Authorization - Value: Bearer YOUR_ACCESS_TOKEN If you continue facing issues, you can send a support request via in-app support to get more detailed assistance.
BuildShip AI Support
Stephen
Stephen2mo ago
There is no "value" property
No description
Solution
Gaurav Chadha
Gaurav Chadha2mo ago
To add an Authorization header, you'll require to add it under the Request Headers, ensuring the type of the request headers is Object. You can clone this sample workflow - https://buildship.app/remix/ca544a0c-566c-4642-aa3b-729e7eb92474 which has an example. Also, to learn more about headers and other components you can refer to this - https://docs.buildship.com/basics/ship-an-api and REST API Trigger docs - https://docs.buildship.com/trigger-nodes/rest-api.
No description
Gaurav Chadha
Gaurav Chadha2mo ago
@Stephen ^^
Stephen
Stephen2mo ago
So I put the "bearer value" in the Description field then ?
Gaurav Chadha
Gaurav Chadha2mo ago
No, the label, descriptions are just the info, it won't take any values. pass the bearer along with key when testing in the value , you can refer to this - https://docs.buildship.com/tutorials/secure-api.