Hi everyone,
I’m trying to integrate the Volcengine/Jimeng Visual API (CVSync2AsyncSubmitTask endpoint) into my n8n workflow, but I keep getting a 400 Bad Request with the error: "Invalid 'Authorization' header, Pls check your authorization header".
Here is my setup:
-
Node: HTTP Request
-
Method: POST
-
URL:
https://visual.volcengineapi.com/?Action=CVSync2AsyncSubmitTask&Version=2022-08-31 -
Authentication: I am using
Predefined Credential Type→Jimeng API Credentials API. -
Headers:
Content-Type: application/json
What I’ve tried:
-
I verified that my Access Key and Secret Key are correct in the Jimeng credentials.
-
I tried adding
ActionandVersionas query parameters in the URL. -
I checked the Volcengine documentation, which seems to imply that this specific asynchronous task interface requires an HMAC-SHA256 signature, but I’m unsure how to implement that inside n8n’s standard HTTP Request node.
My Questions:
-
Is the
Jimeng API Credentialsnode supposed to handle the HMAC-SHA256 signature automatically for this specific visual API? -
If not, what is the best practice to generate the signature in n8n? Should I use a Code node to compute the signature before the HTTP Request node?
-
Is there a simpler way to call this API without manually calculating the signature?
Any guidance or a code snippet for generating the signature would be greatly appreciated!
