> For the complete documentation index, see [llms.txt](https://developer.portablewallet.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.portablewallet.net/platform/01-webhooks.md).

# Webhooks

Register an endpoint via `POST /admin/webhooks` (see the `Admin API` tag in the [API Reference](/05-api-reference.md)). Each event is POSTed as JSON with a consistent envelope:

```json
{
  "event": "certificate.issued",
  "created_at": "2026-08-13T14:02:00Z",
  "data": { "...": "..." }
}
```

***

### `lab.wallet_provisioned`

Fires when a testnet wallet is created.

```json
{ "wallet_id": "wlt_442", "chain": "eth-sepolia", "user_id": "usr_7f21" }
```

### `lab.check_passed`

Fires when a user passes an achievement check during a Final Test.

```json
{ "user_id": "usr_7f21", "track": "trading", "check_id": "TRAD-01" }
```

### `lab.check_failed`

```json
{ "user_id": "usr_7f21", "track": "trading", "check_id": "TRAD-04", "reason": "traded_into_spike" }
```

### `assessment.completed`

```json
{ "user_id": "usr_7f21", "track": "compliance", "assessment_id": "asmt_310", "status": "passed", "score": 88 }
```

### `certificate.issued`

```json
{ "certificate_id": "cert_5b10", "user_id": "usr_7f21", "track": "trading", "tier": "pro" }
```

### `score.updated`

```json
{ "user_id": "usr_7f21", "track": "trading", "old_score": 81, "new_score": 88 }
```

### `score.expired`

```json
{ "user_id": "usr_7f21", "track": "trading", "score": 88, "decayed_since": "2026-05-13T00:00:00Z" }
```

### `order.completed`

Fired by the WooCommerce bridge, triggers `/orders/fulfill` internally to provision entitlement.

```json
{ "order_id": "wc_10293", "sku": "RDN-TRAD-PRO", "customer_email": "jane@clientcompany.com" }
```

***

### Verifying webhook signatures

Every webhook request includes a `X-Signature` header — an HMAC-SHA256 of the raw request body, signed with your webhook secret (shown once when you register the endpoint).

```
X-Signature: sha256=5d41402abc4b2a76b9719d911017c592...
```

Reject any request whose computed signature doesn't match.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.portablewallet.net/platform/01-webhooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
