---
title: CRM API and webhooks
description: Read and write the records WIZE keeps for your organization over a REST API, and get a signed webhook when one changes. Included in every team plan at no extra cost; 3,000 requests per hour per key.
order: 9
---

# CRM API and webhooks

WIZE has a REST API for the records WIZE keeps for your organization (people, organizations, gifts, notes, follow-ups, and any other record type you use; see [Contacts & CRM Records](/help/crm/)), and webhooks that tell your systems when one of those records changes. Use them to connect WIZE to a financial system, a student information system, a payment processor, or anything else that speaks HTTPS and JSON.

## At a glance

- **REST + JSON** over HTTPS at `https://app.wizenow.com/api/crm/v1/`.
- **Pricing:** API access is included in every WIZE team plan at no extra cost. There are no integration fees.
- **Limit:** 3,000 requests per hour for each API key. Bulk writes take up to 500 records per request.
- **Real time:** your writes take effect immediately, and webhooks report changes made in WIZE, usually within a minute.
- **Scope:** the records WIZE keeps for you. Records synced from a connected CRM (Blackbaud, Salesforce and the others) can be linked to, but are not changed through this API; change those in your CRM.

## API keys

An **organization admin** creates keys in WIZE: open **Organization settings → API**, choose **Create key**, name it after the system that will use it, pick its access, and enter the code from your authenticator app. Your account needs two-factor authentication turned on first (**Account settings → Security**).

- **Read** (`crm:read`) can list and read records. **Write** (`crm:write`) can also create, change and delete them.
- The key is shown **once**. Store it in your system's secret store; WIZE keeps only a fingerprint of it.
- Revoke a key at any time on the same screen. A key also stops working when the admin who created it stops being an admin of the organization or changes their password, so a person leaving takes their keys with them. Create a new key from a current admin's account when that happens.
- Every key, who created it and when, and who revoked it, stays listed on the screen.

Send the key as a bearer token:

```
curl https://app.wizenow.com/api/crm/v1/records/?entity_type=person \
  -H "Authorization: Bearer wize_crm_..."
```

A key belongs to one organization and works only on this API. Requests are refused while the organization's subscription is inactive.

## Records

A record looks like this:

```json
{
  "id": 91,
  "entity_type": "gift",
  "external_id": "erp:INV-2041",
  "data": {"amount": 250, "date": "2026-11-20", "fund": "Annual Fund"},
  "constituent_id": null,
  "account_id": null,
  "source": "api",
  "created": "2026-11-20T15:04:05+00:00",
  "modified": "2026-11-20T15:04:05+00:00"
}
```

- `entity_type` is lower case letters, digits and underscores (`person`, `gift`, `contact_report`). A new type is added to your organization's record types the first time you write it.
- `external_id` is **your** id for the record. Send it on every write and the API matches it to the same record, so re-running a sync is safe.
- `data` holds the fields: names start with a letter and use letters, digits and underscores; at most 100 fields and 16 KB per record.

## Endpoints

| Method | Path | What it does |
|---|---|---|
| `GET` | `/api/crm/v1/records/` | List records |
| `POST` | `/api/crm/v1/records/` | Create or update one record |
| `GET` | `/api/crm/v1/records/{entity_id}/` | Read one record |
| `PATCH` | `/api/crm/v1/records/{entity_id}/` | Change one record |
| `DELETE` | `/api/crm/v1/records/{entity_id}/` | Delete one record |
| `GET` | `/api/crm/v1/relationships/` | List relationships |
| `POST` | `/api/crm/v1/relationships/` | Create or update one relationship |
| `DELETE` | `/api/crm/v1/relationships/{relationship_id}/` | Delete one relationship |
| `POST` | `/api/crm/v1/bulk/` | Write many at once |
| `GET` | `/api/crm/v1/batches/` | List your bulk batches |
| `POST` | `/api/crm/v1/batches/{batch_id}/revert/` | Undo a bulk batch |

### List records

`GET /api/crm/v1/records/`

Live records, oldest first. Filters: `entity_type`, `external_id` (repeat it for several), `field.<name>=<value>` (exact match on a data field), `updated_since` (ISO 8601). Paging: `limit` (up to 500, default 100) and `cursor` (the `next_cursor` of the previous page; `null` on the last page). Returns `{"results": [record, ...], "next_cursor": ...}`.

### Create or update one record

`POST /api/crm/v1/records/`

Body: `{"entity_type", "external_id"?, "data", "replace"?}`. With an `external_id` this is an upsert: the same id updates the same record, and sending identical data again changes nothing. `data` is merged into the record unless `"replace": true`. Returns `{"status", "record"}` where status is `created` (HTTP 201), `updated`, `unchanged` or `skipped_deleted` (someone in your organization deleted that record; WIZE will not bring it back on its own).

### Read one record

`GET /api/crm/v1/records/{entity_id}/`

Returns `{"record": record}`.

### Change one record

`PATCH /api/crm/v1/records/{entity_id}/`

Body: `{"data", "replace"?}`. Merges `data` into the record (or replaces it). Returns `{"status", "record"}`.

### Delete one record

`DELETE /api/crm/v1/records/{entity_id}/`

Deletes the record and its relationships. Every change is kept in the record history and can be undone in WIZE.

### List relationships

`GET /api/crm/v1/relationships/`

Filters: `relationship_type`, `entity_id` (either end). Paging as for records.

### Create or update one relationship

`POST /api/crm/v1/relationships/`

Body: `{"relationship_type", "from", "to", "properties"?}`. An end is `{"external_id": "..."}` or `{"entity_id": 91}` for a WIZE record, or `{"kind": "constituent" | "account", "id": 12}` for a record synced from your connected CRM.

### Delete one relationship

`DELETE /api/crm/v1/relationships/{relationship_id}/`

Returns `{"status", "id"}`.

### Write many at once

`POST /api/crm/v1/bulk/`

Body: `{"records", "relationships", "delete_records", "delete_relationships"}`, up to 500 items, every record with an `external_id`. All or nothing: if any item is invalid nothing is written and every problem is listed. A request that changes something becomes one batch you can undo with the revert route below.

### List your bulk batches

`GET /api/crm/v1/batches/`

The batches this organization has written through the API.

### Undo a bulk batch

`POST /api/crm/v1/batches/{batch_id}/revert/`

Restores everything the batch changed, except records someone changed since (those are reported and left alone).

## Errors

| Status | `error` | Meaning |
|---|---|---|
| 400 | `validation_failed` | Something in the request is invalid; `errors` lists each problem. |
| 401 | | No key, an unknown key, or a revoked key. |
| 403 | | The key lacks the scope for this method, or the organization is inactive. |
| 404 | `not_found` | No such record in your organization. |
| 409 | `type_conflict` | The `external_id` belongs to a record of another type. |
| 409 | `busy` / `conflict` | Another write to your organization was in progress. Retry. |
| 429 | | Over the rate limit. Wait for the `Retry-After` seconds. |

## Webhooks

An organization admin adds a webhook on **Organization settings → API → Add webhook**: an `https://` URL, the events to send (`record.created`, `record.updated`, `record.deleted`) and, optionally, the record types to send (all types if you choose none). Adding one also asks for your authenticator code. The signing secret is shown once.

WIZE sends a webhook whenever a record is created, changed or deleted, whoever made the change: a person in WIZE, WIZE in chat, an import, or the API. Each event is a `POST` with a JSON body:

```json
{
  "id": "evt_48213",
  "type": "record.created",
  "created_at": "2026-11-20T15:04:05.120000+00:00",
  "organization": "your-org",
  "change_id": 48213,
  "source": "user",
  "api_key_id": null,
  "record": {"id": 91, "entity_type": "gift", "external_id": "", "data": {"amount": 250}, "constituent_id": null, "account_id": null}
}
```

- `source` is who made the change: `user`, `llm` (WIZE in chat), `import` or `api`. For an API write, `api_key_id` names the key, so an integration can skip changes it made itself.
- For `record.deleted`, `record` is the record as it was before the delete.
- Headers: `Wize-Event` (the event type), `Wize-Delivery` (this delivery's id) and `Wize-Signature`.

### Verifying the signature

`Wize-Signature` is `t=<unix seconds>,v1=<signature>`, where the signature is the hex HMAC-SHA256 of `<t>.<raw request body>` keyed with your signing secret. Check it before trusting the body, and reject old timestamps:

```python
import hashlib, hmac, time

def verify(secret: str, header: str, body: bytes, tolerance=300) -> bool:
    parts = dict(item.split("=", 1) for item in header.split(","))
    expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"]) and abs(time.time() - int(parts["t"])) < tolerance
```

### Delivery, retries and pausing

- Answer with any `2xx` status within 15 seconds (connecting included). Redirects are not followed.
- Events arrive **at least once** and **not always in order**: use `id` to ignore a repeat and `change_id` (it only goes up) to order them.
- A failed delivery is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours: 7 attempts over about a day.
- If an endpoint is still failing after the last retry, WIZE **pauses** it and emails the admin who added it. Events are kept while it is paused. Fix the endpoint, then choose **Resume**: everything that changed in the meantime, and the event that failed, is sent.
- Each organization can have up to 10 webhooks. Delivery history is kept for 30 days; events waiting on a paused webhook are kept until you resume or delete it.
- A webhook stops (it is removed) when the admin who added it stops being an admin of the organization or changes their password, the same as an API key.
