---
title: "Process pending webhook events"
method: POST
path: "/cohorts/{cohortId}/intake/process-webhooks"
tags: ["Intake"]
---

# Process pending webhook events

`POST /cohorts/{cohortId}/intake/process-webhooks`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/intake/process-webhooks`
- Auth: HTTP bearer

Manually trigger processing of pending Paperform webhook events.
This processes events that are in 'received' or 'failed' (pending retry) status.
Normally called by a cron job, but can be triggered manually if needed.

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `limit` integer: Maximum number of events to process

## Response `200`

Processing completed

- object
  - `success` boolean
  - `data` object
    - `processed` integer
    - `failed` integer
    - `skipped` integer
    - `errors` string[]

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
