# Webhooks

## Webhooks

Webhooks allow clients to handle operations through custom endpoints hosted on their infrastructure. The SDK communicates directly with these endpoints.

#### Required Webhooks

Clients must provide URLs for the following operations:

| **Operation** | **HTTP Method** | **Description**                      |
| ------------- | --------------- | ------------------------------------ |
| `create`      | POST            | Create a new credential.             |
| `import`      | POST            | Import an existing credential.       |
| `revoke`      | POST            | Revoke an existing credential.       |
| `verify`      | POST            | Verify the validity of a credential. |

#### Example Webhook Payload

* **Request to `/create`:**

  ```json
  {
    "credential_id": "1234",
    "name": "example_credential",
    "type": "temporary",
    "expires_at": "2025-12-31T23:59:59Z"
  }
  ```
