> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.taigabilling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.taigabilling.com/_mcp/server.

# Replay an abandoned prior-authorization webhook

POST https://api.taigabilling.com/api/prior-authorizations/v1/webhook-endpoint/replay
Content-Type: application/json

Requeues one abandoned webhook event for this organization and resets its retry counter. Only ABANDONED events can be replayed.

Reference: https://docs.taigabilling.com/api-reference/prior-authorizations/replay-prior-authorization-webhook

## Authentication

- `Authorization` header (bearer token, required) — Send your Taiga API key as a Bearer token. Create and manage keys in the Taiga developer portal.

## Servers

- `https://api.taigabilling.com` (Production, default)
- `https://api-staging.taigabilling.com` (Staging)

## Request

### Body (application/json)

This endpoint expects a PriorAuthorizationWebhookReplayRequest.

- `event_id` (string, required)

## Response

### 200

Webhook event requeued

- `abandoned_at` (datetime, required, nullable)
- `attempts` (integer, required)
- `created_at` (datetime, required)
- `delivered_at` (datetime, required, nullable)
- `event_id` (string, required)
- `event_type` (enum, required)
  - Allowed values: `prior_authorization.received`, `prior_authorization.needs_information`, `prior_authorization.ready_for_review`, `prior_authorization.authorization_not_required`, `prior_authorization.submitted`, `prior_authorization.pending_payer`, `prior_authorization.approved`, `prior_authorization.partially_approved`, `prior_authorization.denied`, `prior_authorization.cancelled`, `prior_authorization.webhook_test`
- `last_attempt_at` (datetime, required, nullable)
- `last_error_code` (string, required, nullable)
- `last_http_status` (integer, required, nullable)
- `status` (enum, required)
  - Allowed values: `PENDING`, `PROCESSING`, `PAUSED`, `DELIVERED`, `ABANDONED`

## Errors

### 400 Bad Request Error

The request could not be completed.

- `message` (string, required)

### 401 Unauthorized Error

The request could not be completed.

- `message` (string, required)

### 404 Not Found Error

The request could not be completed.

- `message` (string, required)

## Examples

**Request**

```json
{
  "event_id": "string"
}
```

**Response**

```json
{
  "abandoned_at": "2024-01-15T09:30:00Z",
  "attempts": 1,
  "created_at": "2024-01-15T09:30:00Z",
  "delivered_at": "2024-01-15T09:30:00Z",
  "event_id": "string",
  "event_type": "prior_authorization.received",
  "last_attempt_at": "2024-01-15T09:30:00Z",
  "last_error_code": "string",
  "last_http_status": 1,
  "status": "PENDING"
}
```

**SDK Code**

```python
import requests

url = "https://api.taigabilling.com/api/prior-authorizations/v1/webhook-endpoint/replay"

payload = { "event_id": "string" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```