> 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.

# Test the prior-authorization webhook

POST https://api.taigabilling.com/api/prior-authorizations/v1/webhook-endpoint/test

Enqueues a signed webhook_test event with an empty data object. It contains no patient or authorization data and uses the normal delivery and retry path.

Reference: https://docs.taigabilling.com/api-reference/prior-authorizations/test-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)

## Response

### 202

Test webhook queued

- `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

### 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

**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/test"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```