Hold approval through API and approval_request_id

Hey folks :slight_smile:

I’ve been looking through docs and posts and can’t find anything. I would like to send a request to an external resource and hold the job waiting for a callback. There is a new API endpoint for approving the request (CircleCI API) but it requires the workflow and approval_request ids. Where would I get them from? I’m trying to find stuff in the API docs but it’s coming up pretty empty.


You can find the approval_request_id of the job you wish to approve via the listWorkflowJobs endpoint:

GET /api/v2/workflow/:id/job

Jobs that can be approved (i.e. approval jobs) will have an approval_request_id field.