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

# Get the prior-authorization webhook

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

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

### 200

Webhook configuration

- `abandoned_event_count` (integer, required)
- `enabled` (boolean, required)
- `latest_event` (PriorAuthorizationWebhookDelivery, required, nullable)
- `signing_secret` (string, required) — Use this secret to verify the webhook-signature header over `{webhook-id}.{webhook-timestamp}.{raw-body}` with HMAC-SHA256.
- `url` (string, required)

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

## Types

### PriorAuthorizationWebhookDelivery

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

## Examples

**Response**

```json
{
  "abandoned_event_count": 1,
  "enabled": true,
  "latest_event": {
    "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"
  },
  "signing_secret": "string",
  "url": "string"
}
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```