Hello Zapier Community,
I'm trying to automate a workflow that generates a video in Pictory AI using Webhooks by Zapier.
- Step 1 (Works):
I successfully authenticate viaPOST https://api.pictory.ai/pictoryapis/v1/oauth2/token
usingclient_id
andclient_secret
, which returns a valid access token. - Step 2 (Works):
I send aPOST
request tohttps://api.pictory.ai/pictoryapis/v1/video/storyboard
with the access token, and it successfully starts a job, returning ajob_id
. - Step 3 (Fails - 401 Unauthorized):
I try to retrieve the job status using aGET
request to:bash
CopyEdit
but get a 401 Unauthorized error.https://api.pictory.ai/pictoryapis/v1/jobs/{job_id}
Headers I’m Sending in the GET Request:
json
CopiazăEditează
{ "Authorization": "Bearer {{access_token}}", "X-Pictory-User-Id": "2...", "accept": "application/json" }
I double-checked the access_token
, and it’s fresh (expires in 4 hours), but it still returns 401 Unauthorized.
Things I've Tried:
- Regenerating the token and retrying immediately.
- Hardcoding the token instead of using dynamic values.
- Making the same
GET
request in Postman (same issue). - Checking if the API has specific scopes/permissions that I might be missing.
Has anyone successfully implemented Pictory AI API with Zapier Webhooks?
Any insights on why the authentication is failing for GET /jobs/{job_id}
but working for POST /video/storyboard
?
Thanks in advance for your help!