# Get a webhook endpoint

GET /v1/webhook-endpoints/{endpointId}. Reads one endpoint and how its deliveries are going.

`GET https://api.chatwise.so/v1/webhook-endpoints/{endpointId}`

Reads one endpoint and how its deliveries are going.

The API key needs the `webhooks:read` scope. See [authentication and scopes](https://chatwise.so/docs/authentication.md).

## Example

**curl**:

```bash
curl 'https://api.chatwise.so/v1/webhook-endpoints/we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"
```

**Node.js**:

```js
const response = await fetch("https://api.chatwise.so/v1/webhook-endpoints/we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C", {
  headers: {
    Authorization: `Bearer ${process.env.CHATWISE_API_KEY}`,
  },
});
const body = await response.json();
if (!response.ok) throw new Error(`${response.status}: ${body.message}`);
console.log(body.data);
```

**Python**:

```python
import json
import os
import urllib.request

request = urllib.request.Request(
    "https://api.chatwise.so/v1/webhook-endpoints/we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C",
    headers={
        "Authorization": f"Bearer {os.environ['CHATWISE_API_KEY']}",
    },
)
with urllib.request.urlopen(request) as response:
    print(json.load(response)["data"])
```

## Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `endpointId` | string | **Required.** The endpoint's id (`we_…`). |

## Response

**200.** The endpoint.

```json
{
  "data": {
    "id": "we_01JE2Z3K8Q9V7W5X4Y3Z2A1B0C",
    "name": "Order support",
    "url": "https://example.com/webhooks/chatwise",
    "events": [
      "message.received"
    ],
    "accountIds": [],
    "status": "ACTIVE",
    "apiVersion": "2026-12-01",
    "health": {
      "lastSuccessAt": "2026-11-12T09:21:08.000Z",
      "lastFailureAt": null,
      "consecutiveFailures": 0,
      "disabledAt": null,
      "disabledReason": null
    },
    "createdAt": "2026-11-02T10:00:00.000Z",
    "updatedAt": "2026-11-12T09:21:08.000Z"
  }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `data.id` | string | The endpoint's id. |
| `data.name` | string | The endpoint's name. |
| `data.url` | string | Where events are sent. |
| `data.events` | array of strings | The events it receives. Each one of `message.received`, `message.sent`, `message.delivered`, `message.read`, `message.failed`, `comment.received`. |
| `data.accountIds` | array of strings | The accounts it receives events for. Empty means every account. |
| `data.status` | string | `ACTIVE`, `PAUSED` by the workspace, or `DISABLED` by Chatwise (see `health.disabledReason`). |
| `data.apiVersion` | string | The payload format it receives, as a date. |
| `data.health` | object | How its deliveries are going. |
| `data.health.lastSuccessAt` | string or null | When an attempt last succeeded. ISO 8601, in UTC. |
| `data.health.lastFailureAt` | string or null | When an attempt last failed. ISO 8601, in UTC. |
| `data.health.consecutiveFailures` | integer | Failed attempts since the last success. |
| `data.health.disabledAt` | string or null | When Chatwise disabled it. ISO 8601, in UTC. |
| `data.health.disabledReason` | string or null | Why Chatwise disabled it. |
| `data.createdAt` | string | When it was created. ISO 8601, in UTC. |
| `data.updatedAt` | string | When it, or its health, last changed. ISO 8601, in UTC. |

## Errors

| Status | Message | What it means |
| --- | --- | --- |
| 400 | Validation failed | A parameter or body field is missing, unknown or malformed. `errors` lists each one. |
| 401 | A valid Bearer API key is required | The `Authorization` header is missing or isn't `Bearer <API key>`. |
| 401 | Invalid or revoked API key | The key doesn't exist, was revoked, or has expired. |
| 401 | Invalid API key | Chatwise couldn't check the key. Try again. |
| 403 | API key does not have the required scope: webhooks:read | The key lacks the route's scope. Create a key that has it. |
| 404 | Webhook endpoint not found | No endpoint with this id in the key's workspace. |
| 429 | API key rate limit exceeded | Wait the number of seconds in the `Retry-After` header. |
| 500 | Internal server error | Something failed in Chatwise. Retry reads with backoff. |

The body of an error is described in [errors](https://chatwise.so/docs/errors.md).
