Forum Discussion
Trying to POST with content/type JSON and a Authorization Token in the head using pipelines
Hi,
As read in the subject, I'm trying to POST to a URL using a JSON body, which needs a auth token. I included the content type in the header, including the authorization token and am getting a 401: Unauthorized. I can normally ping this API if I don't have the body, or I'm using a GET method. Any help would be great! Here is an image:
- Anonymous2 years ago
Hi PWTRyanWhite
Please try the following:
Make sure that the token you are using is still valid and has not expired.
Verify that the token has the permissions required to perform the POST request.
Make sure you click on the correct terminal node and that it supports POST requests. Sometimes, endpoints are specific to certain HTTP methods.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi PWTRyanWhite
Please try the following:
Make sure that the token you are using is still valid and has not expired.
Verify that the token has the permissions required to perform the POST request.
Make sure you click on the correct terminal node and that it supports POST requests. Sometimes, endpoints are specific to certain HTTP methods.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.