# 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"
  }
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wallid.io/certishop-on-prem/webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
