# Hold approval through API and approval\_request\_id

**URL:** <https://discuss.circleci.com/t/hold-approval-through-api-and-approval-request-id/40003>\
**Category:** API\
**Tags:** api, circle-yml\
**Created:** [May 7, 2021, 12:29pm UTC](https://discuss.circleci.com/t/hold-approval-through-api-and-approval-request-id/40003 "2021-05-07T12:29:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afriemann](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/afriemann/32/27323_2.png) [@afriemann](https://discuss.circleci.com/u/afriemann)\
**Post date:** [May 7, 2021, 12:29pm UTC](https://discuss.circleci.com/t/hold-approval-through-api-and-approval-request-id/40003/1 "2021-05-07T12:29:10Z")

</div>

Hey folks 🙂

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](https://circleci.com/docs/api/v2/#operation/approvePendingApprovalJobById)) 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.

Thanks!

---

<div class="post-metadata">

**Author:** ![ninacfgarcia](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ninacfgarcia/32/29938_2.png) [@ninacfgarcia](https://discuss.circleci.com/u/ninacfgarcia)\
**Post date:** [May 16, 2022, 7:19pm UTC](https://discuss.circleci.com/t/hold-approval-through-api-and-approval-request-id/40003/2 "2022-05-16T19:19:08Z")

</div>

> [@New v2 API Endpoint: job approval](https://discuss.circleci.com/t/new-v2-api-endpoint-job-approval/35834):
>
> We have a new API endpoint available to allow you to approve jobs programatically. The endpoint is: POST /api/v2/workflow/:id/approve/:approval-request-id 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. See the [v2 API docs](https://circleci.com/docs/api/v2/#approve-a-job) for more details. Happy approving!

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

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

```

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