# NextLevel rentals API and AI ordering

## Overview

NextLevel Production Services rents audio, video and lighting equipment in Santa Cruz County, California. This API lets your system or an AI assistant find equipment, check dates, estimate prices and prepare rental requests for your organization.

- **Dry rentals only**: equipment you pick up (or we deliver curbside) and run yourselves. For setup, operation or strike, send a labor quote request: staff price it.
- **A person always signs and pays.** Your system prepares the request; someone at your organization reviews it, signs the rental agreement and pays in the customer portal. Nothing an API call does commits you to a rental.
- **Prices come from our server**: from the catalog and your account's terms. Estimates are re-priced when the quote is made.
- **Two ways in:** the REST API at `https://platform.nextlevelproductionservices.com/api/v1` for your own systems, and an MCP server at `https://platform.nextlevelproductionservices.com/mcp` for AI assistants. Both run the same operations.

## Is ordering open?

Right now: **Testing**: only test accounts can send requests; others get `ordering_restricted`. Ask us to mark your account as a test account while you build. Online ordering isn't open yet: the platform is being tested. Requests are accepted from test accounts only.

This is the **sandbox**: payments are in test mode and nothing here is a real order. Every response that carries `livemode` says `false`.

Browsing and estimates work whatever the status. Check it from your code before building a request:

```bash
curl https://platform.nextlevelproductionservices.com/api/v1/status
```

## Quick start

The catalog and list-price estimates need no key:

```bash
curl "https://platform.nextlevelproductionservices.com/api/v1/catalog?q=speaker"

curl -X POST https://platform.nextlevelproductionservices.com/api/v1/estimates \
  -H "content-type: application/json" \
  -d '{"items":[{"itemId":"cat_01J8XK4Q2M","quantity":1}],"startDate":"2027-05-14","endDate":"2027-05-15"}'
```

With an API key (see Authentication), check dates and prepare a request. Give the person the `reviewUrl` in the answer:

```bash
curl -X POST https://platform.nextlevelproductionservices.com/api/v1/availability \
  -H "authorization: Bearer $NLPS_KEY" \
  -H "content-type: application/json" \
  -d '{"items":[{"itemId":"cat_01J8XK4Q2M","quantity":1}],"startDate":"2027-05-14","endDate":"2027-05-15"}'

curl -X POST https://platform.nextlevelproductionservices.com/api/v1/requests \
  -H "authorization: Bearer $NLPS_KEY" \
  -H "idempotency-key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{"items":[{"itemId":"cat_01J8XK4Q2M","quantity":1}],"startDate":"2027-05-14","endDate":"2027-05-15","fulfillment":"pickup","useLocation":"Aptos High School gym, Aptos CA"}'
```

The full machine-readable description is the [OpenAPI document](https://platform.nextlevelproductionservices.com/api/v1/openapi.json): import it into Postman, Insomnia or a client generator.

## AI assistants (MCP)

In any assistant that supports remote MCP servers (custom connectors), add `https://platform.nextlevelproductionservices.com/mcp`. The assistant opens a sign-in page; the person signs in to their NextLevel account and chooses which account and permissions to allow.

- The assistant can search the catalog, check dates, estimate, prepare and change draft requests, read your quotes and orders, and ask for a labor quote.
- It can't submit a request, sign, pay, use saved cards or change your account. It hands the person the review link.
- Each tool declares an output schema, so the assistant gets typed results.
- Disconnect an assistant any time from the portal under Connected apps.

Building your own agent? It can use MCP or the REST API; the operations, arguments and results are the same.

## Authentication

### Organization API keys (your systems)

A member of your organization issues a key in the customer portal (Connected apps), names it after the system that will use it, picks its scopes and an expiry of up to 365 days. The key is shown once; we store only a hash. Send it as `Authorization: Bearer nlps_key_…`. Revoke it any time.

### OAuth 2.1 (AI assistants acting for a person)

- Authorization code flow with PKCE (S256 only).
- Clients can register themselves: `POST https://platform.nextlevelproductionservices.com/oauth/register`. Metadata: `https://platform.nextlevelproductionservices.com/.well-known/oauth-authorization-server` and `https://platform.nextlevelproductionservices.com/.well-known/oauth-protected-resource`.
- Access tokens last 60 minutes; refresh tokens 30 days. A reused code or refresh token revokes the connection.
- Redirect URIs must be https, or http on the loopback address.

### Scopes

| Scope | What it allows | API key | Assistant |
| --- | --- | --- | --- |
| `catalog:read` | Read the catalog with your account's prices, check availability and estimate prices | yes | yes |
| `requests:write` | Create and change draft quote requests (drafts hold no equipment) | yes | yes |
| `orders:read` | Read your organization's quotes and jobs | yes | yes |
| `requests:submit` | Submit a draft request for review, as you | yes | no |
| `webhooks:manage` | Add, test and delete webhook endpoints that tell your system when requests, quotes and jobs change | yes | no |

> Signed out, you can read the catalog and estimate list prices. Availability needs a key or a connected assistant, as does everything about your account.

## How a request becomes a booking

1. **Draft.** You create a draft (`POST /api/v1/requests`). It holds no equipment. Change it (`PUT`) or discard it as often as you like.
2. **Review.** The person opens `reviewUrl`, chooses pickup or delivery, and submits it. (A key with `requests:submit` can submit for its contact.)
3. **Quote.** Pickup-only requests get a provisional quote at once. Anything needing delivery, labor or review is priced by an account manager. Event: `request.status_changed`, then `quote.ready`.
4. **Sign and pay.** The person signs the rental agreement and pays the deposit at `signAndPayUrl`. Events: `quote.signed`, then `job.booked`.
5. **The rental.** Pickup and return are recorded on our side. Events: `job.updated` (for example equipment out, returned) or `job.cancelled`.

## Retries and idempotency

Every call that creates something (creating a draft, submitting, a labor quote request, adding a webhook) needs an `Idempotency-Key` header: any unique string up to 200 characters. If the network fails, send the same call with the same key: you get the first answer again and nothing is created twice. A different body with the same key is refused.

## Errors

Errors are JSON with a stable `error` code and a `message` that says what to fix:

```json
{
  "error": "bad_request",
  "message": "The start date can't be in the past."
}
```

| HTTP | error | Meaning |
| --- | --- | --- |
| 400 | `bad_request` | Something in the request is wrong; the message says what to fix. |
| 401 | `unauthorized` | No credential, or an invalid, expired or revoked one. The WWW-Authenticate header points to the OAuth metadata. |
| 403 | `forbidden` | The credential lacks the scope this call needs. |
| 403 | `ordering_restricted` | Online ordering is open only to some accounts right now (established accounts, or test accounts while testing). Browsing and estimates still work. |
| 404 | `not_found` | No such item, draft or quote on this account. |
| 409 | `conflict` | The draft was already submitted or discarded, or the equipment just became unavailable. |
| 409 | `ordering_closed` | Online ordering is closed right now (for example, fully booked). Browsing and estimates still work; try later or contact us. |
| 429 | `rate_limited` | Too many calls; wait for Retry-After seconds. |

## Rate limits

- 120 calls a minute per key or connection; 30 a minute per address when signed out.
- 25 open drafts per account.
- Over a limit you get `429 rate_limited` with `Retry-After` in seconds.

## Webhooks

Add up to 5 endpoints per account, in the portal (Connected apps) or with an API key that has `webhooks:manage` (`POST /api/v1/webhooks`). We POST a JSON event when one of your requests, quotes or jobs changes, usually within 5 minutes. Use **Send test** (or `POST /api/v1/webhooks/{id}/test`) to try your endpoint.

| Event | When |
| --- | --- |
| `request.status_changed` | A request you sent changed status: in review, approved (a quote is ready) or declined. |
| `quote.ready` | A quote is ready for a person to review, sign and pay. |
| `quote.signed` | A quote was signed. |
| `job.booked` | A job was booked, provisionally or confirmed. |
| `job.updated` | A booked job's fulfillment changed, for example equipment out or returned. |
| `job.cancelled` | A booked job was cancelled. |
| `webhook.test` | A test event you asked for. |

### The request we send

```text
POST /your/endpoint
content-type: application/json
webhook-id: evt_01J8XQ2W3F
webhook-timestamp: 1776704700
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=

{
  "id": "evt_01J8XQ2W3F",
  "type": "quote.ready",
  "created": "2027-04-20T17:05:00.000Z",
  "livemode": true,
  "organizationId": "org_01J8XA1B2C",
  "data": {
    "quoteId": "qv_01J8XN3H5D",
    "title": "Graduation audio",
    "projectName": "Online request: Powered speaker pair",
    "status": "ready_to_sign",
    "provisional": true,
    "validUntil": "2027-05-07",
    "signAndPayUrl": "https://platform.nextlevelproductionservices.com/portal/quote/qv_01J8XN3H5D"
  }
}
```

### Verify the signature

We sign with the [Standard Webhooks](https://www.standardwebhooks.com/) scheme, so its libraries work too. Use the raw request body, before parsing it:

```js
import crypto from "node:crypto";

// secret: the whsec_… value shown when you added the endpoint.
export function verify(secret, headers, rawBody) {
  const id = headers["webhook-id"], ts = headers["webhook-timestamp"], sig = headers["webhook-signature"];
  if (!id || !ts || !sig) return false;
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; // older than 5 minutes
  const key = Buffer.from(secret.slice("whsec_".length), "base64");
  const expected = crypto.createHmac("sha256", key).update(`${id}.${ts}.${rawBody}`).digest("base64");
  // The header can hold several space-separated signatures (during secret rotation).
  return sig.split(" ").some((s) => {
    const [version, value] = s.split(",");
    return version === "v1" && value?.length === expected.length && crypto.timingSafeEqual(Buffer.from(value), Buffer.from(expected));
  });
}
```

```python
import base64, hashlib, hmac, time

def verify(secret: str, headers: dict, raw_body: bytes) -> bool:
    msg_id, ts, sig = headers.get("webhook-id"), headers.get("webhook-timestamp"), headers.get("webhook-signature")
    if not (msg_id and ts and sig) or abs(time.time() - int(ts)) > 300:
        return False
    key = base64.b64decode(secret.removeprefix("whsec_"))
    expected = base64.b64encode(hmac.new(key, f"{msg_id}.{ts}.".encode() + raw_body, hashlib.sha256).digest()).decode()
    return any(v == "v1" and hmac.compare_digest(s, expected) for v, _, s in (part.partition(",") for part in sig.split()))
```

### Handling them

- Answer with any 2xx within 10 seconds, then do the work. Redirects aren't followed.
- Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours, 24 hours. After 30 failed attempts in a row the endpoint is turned off; fix it and turn it back on.
- The same event can arrive more than once: ignore a `webhook-id` you've already handled.
- Events can arrive out of order. When order matters, read the current state with the API.
- `livemode` is `false` in the sandbox.

## Testing

- Until we switch to live payments, the whole service is a sandbox: payments are in test mode, no customer email is sent, and `livemode` is `false`.
- While online ordering is in testing mode, only test accounts can send requests. Ask your account manager to mark your account as a test account.
- Webhooks are delivered in the sandbox too, so you can build against real events.

## Versions and changes

This is version 1. We add fields, operations and event types without notice, so ignore what you don't recognize. A change that could break a client goes into a new version (`/api/v2`) with notice, and v1 keeps working while you move.

### Changes

- **2026-11-08**: estimates open without a key, at list prices; availability needs a key or a connected assistant.
- **2026-11-07**: service status (`GET /api/v1/status`), typed response schemas and examples, webhooks, and this guide.
- **2026-10-21**: version 1: catalog, availability, estimates, draft requests, orders, labor quote requests, MCP and OAuth.

## API reference

### `GET /api/v1/status`

Whether online requests are being accepted right now (open, established accounts only, closed or testing), and whether this is live or a sandbox. Check it before building a request; browsing, availability and estimates work whatever it says.

**Access:** public

Response:
```json
{
  "ordering": {
    "mode": "open",
    "accepting": "everyone",
    "message": null
  },
  "livemode": true,
  "apiVersion": "1",
  "service": "dry_rental"
}
```

### `GET /api/v1/catalog`

Search rental equipment and packages offered for dry hire, with standard day/week/month prices (and the account's day price when signed in), what each package includes and what it's good for. NextLevel Production Services books dry rentals only through this service: equipment the customer picks up (or that's delivered curbside) and runs themselves. For setup, operation or strike, use request_labor_quote.

**Access:** public

- `q` (query)

Response:
```json
{
  "items": [
    {
      "id": "cat_01J8XK4Q2M",
      "name": "Powered speaker pair (QSC K12.2)",
      "description": "Two 12-inch powered speakers with stands and cables.",
      "bundle": {
        "includes": [
          {
            "name": "QSC K12.2 speaker",
            "quantity": 2
          },
          {
            "name": "Speaker stand",
            "quantity": 2
          }
        ]
      },
      "goodFor": {
        "audience": "Up to 150 people",
        "setting": "either",
        "power": "Two 15 A outlets",
        "includes": "Stands, power and XLR cables",
        "setup": "easy"
      },
      "standardRates": {
        "dayCents": 15000,
        "weekCents": 45000,
        "monthCents": 120000
      },
      "accountDayCents": null
    }
  ],
  "note": "NextLevel Production Services books dry rentals only through this service…"
}
```

### `GET /api/v1/catalog/{id}`

Describe one catalog item or package: description, prices, what's included and what it's good for.

**Access:** public

- `id` (path, required)

Response:
```json
{
  "id": "cat_01J8XK4Q2M",
  "name": "Powered speaker pair (QSC K12.2)",
  "description": "Two 12-inch powered speakers with stands and cables.",
  "bundle": {
    "includes": [
      {
        "name": "QSC K12.2 speaker",
        "quantity": 2
      },
      {
        "name": "Speaker stand",
        "quantity": 2
      }
    ]
  },
  "goodFor": {
    "audience": "Up to 150 people",
    "setting": "either",
    "power": "Two 15 A outlets",
    "includes": "Stands, power and XLR cables",
    "setup": "easy"
  },
  "standardRates": {
    "dayCents": 15000,
    "weekCents": 45000,
    "monthCents": 120000
  },
  "accountDayCents": null
}
```

### `POST /api/v1/availability`

Check general availability for dates: available, limited or unavailable per item (never counts). Availability isn't held until a request is submitted. Needs a key or a connected assistant: it isn't shown to signed-out agents. Signed-out callers may use it while the owner allows public availability. Needs the `catalog:read` scope.

**Access:** API key or assistant connection with the scope named above (not shown to signed-out agents)

Request body:
```json
{
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "startDate": "2027-05-14",
  "endDate": "2027-05-15"
}
```

Response:
```json
{
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "name": "Powered speaker pair (QSC K12.2)",
      "quantity": 1,
      "availability": "available"
    }
  ]
}
```

### `POST /api/v1/estimates`

Estimate the rental price for items and dates: list prices when signed out, the account's prices when signed in. Before tax; delivery priced separately. It says nothing about availability.

**Access:** public

Request body:
```json
{
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "startDate": "2027-05-14",
  "endDate": "2027-05-15"
}
```

Response:
```json
{
  "billableDays": 2,
  "lines": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "description": "Powered speaker pair (QSC K12.2)",
      "period": "2 days",
      "quantity": 1,
      "unitCents": 30000,
      "lineTotalCents": 30000
    }
  ],
  "subtotalCents": 30000,
  "notes": [
    "An estimate before tax. The quote you review is priced again by NextLevel's server.",
    "Delivery is priced by NextLevel staff; pickup has no charge."
  ]
}
```

### `POST /api/v1/requests`

Create a draft dry-rental request for the account. A draft holds no equipment. Give the person the returned reviewUrl: they review it, choose pickup or delivery, submit it, then sign and pay. Needs the `requests:write` scope.

**Access:** API key or assistant connection with the scope named above · needs `Idempotency-Key`

Request body:
```json
{
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "startDate": "2027-05-14",
  "endDate": "2027-05-15",
  "fulfillment": "pickup",
  "useLocation": "Aptos High School gym, Aptos CA",
  "notes": "Graduation rehearsal and ceremony"
}
```

Response:
```json
{
  "id": "rqd_01J8XM0B7T",
  "status": "draft",
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "eventStartDate": "2027-05-14",
  "eventEndDate": "2027-05-15",
  "fulfillment": "pickup",
  "delivery": null,
  "useLocation": "Aptos High School gym, Aptos CA",
  "notes": "Graduation rehearsal and ceremony",
  "estimate": {
    "billableDays": 2,
    "lines": [
      {
        "itemId": "cat_01J8XK4Q2M",
        "description": "Powered speaker pair (QSC K12.2)",
        "period": "2 days",
        "quantity": 1,
        "unitCents": 30000,
        "lineTotalCents": 30000
      }
    ],
    "subtotalCents": 30000,
    "notes": [
      "An estimate before tax. The quote you review is priced again by NextLevel's server.",
      "Delivery is priced by NextLevel staff; pickup has no charge."
    ]
  },
  "request": null,
  "reviewUrl": "https://platform.nextlevelproductionservices.com/portal/drafts/rqd_01J8XM0B7T"
}
```

### `GET /api/v1/requests/{id}`

Read a draft request: its contents, a fresh estimate, its status once submitted, and the link for the person. Needs the `requests:write` or `orders:read` scope.

**Access:** API key or assistant connection with the scope named above

- `id` (path, required)

Response:
```json
{
  "id": "rqd_01J8XM0B7T",
  "status": "draft",
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "eventStartDate": "2027-05-14",
  "eventEndDate": "2027-05-15",
  "fulfillment": "pickup",
  "delivery": null,
  "useLocation": "Aptos High School gym, Aptos CA",
  "notes": "Graduation rehearsal and ceremony",
  "estimate": {
    "billableDays": 2,
    "lines": [
      {
        "itemId": "cat_01J8XK4Q2M",
        "description": "Powered speaker pair (QSC K12.2)",
        "period": "2 days",
        "quantity": 1,
        "unitCents": 30000,
        "lineTotalCents": 30000
      }
    ],
    "subtotalCents": 30000,
    "notes": [
      "An estimate before tax. The quote you review is priced again by NextLevel's server.",
      "Delivery is priced by NextLevel staff; pickup has no charge."
    ]
  },
  "request": null,
  "reviewUrl": "https://platform.nextlevelproductionservices.com/portal/drafts/rqd_01J8XM0B7T"
}
```

### `PUT /api/v1/requests/{id}`

Replace the contents of a draft request (items, dates, pickup or delivery, where it will be used, notes). Needs the `requests:write` scope.

**Access:** API key or assistant connection with the scope named above

- `id` (path, required)

Request body:
```json
{
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 2
    }
  ],
  "startDate": "2027-05-14",
  "endDate": "2027-05-15",
  "fulfillment": "delivery",
  "delivery": {
    "venueName": "Aptos High School",
    "street": "100 Mariner Way",
    "city": "Aptos",
    "state": "CA"
  },
  "useLocation": "Aptos High School gym"
}
```

Response:
```json
{
  "id": "rqd_01J8XM0B7T",
  "status": "draft",
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "eventStartDate": "2027-05-14",
  "eventEndDate": "2027-05-15",
  "fulfillment": "pickup",
  "delivery": null,
  "useLocation": "Aptos High School gym, Aptos CA",
  "notes": "Graduation rehearsal and ceremony",
  "estimate": {
    "billableDays": 2,
    "lines": [
      {
        "itemId": "cat_01J8XK4Q2M",
        "description": "Powered speaker pair (QSC K12.2)",
        "period": "2 days",
        "quantity": 1,
        "unitCents": 30000,
        "lineTotalCents": 30000
      }
    ],
    "subtotalCents": 30000,
    "notes": [
      "An estimate before tax. The quote you review is priced again by NextLevel's server.",
      "Delivery is priced by NextLevel staff; pickup has no charge."
    ]
  },
  "request": null,
  "reviewUrl": "https://platform.nextlevelproductionservices.com/portal/drafts/rqd_01J8XM0B7T"
}
```

### `POST /api/v1/requests/{id}/discard`

Discard a draft request that hasn't been submitted. Needs the `requests:write` scope.

**Access:** API key or assistant connection with the scope named above

- `id` (path, required)

Response:
```json
{
  "id": "rqd_01J8XM0B7T",
  "status": "discarded"
}
```

### `POST /api/v1/requests/{id}/submit`

Submit a draft for review, as the key's contact (integration keys with the submit scope only). Equipment is then held while the quote is open. A person still signs and pays through reviewUrl. Needs the `requests:submit` scope.

**Access:** API key or assistant connection with the scope named above · needs `Idempotency-Key`

- `id` (path, required)

Response:
```json
{
  "id": "rqd_01J8XM0B7T",
  "status": "submitted",
  "items": [
    {
      "itemId": "cat_01J8XK4Q2M",
      "quantity": 1
    }
  ],
  "eventStartDate": "2027-05-14",
  "eventEndDate": "2027-05-15",
  "fulfillment": "pickup",
  "delivery": null,
  "useLocation": "Aptos High School gym, Aptos CA",
  "notes": "Graduation rehearsal and ceremony",
  "estimate": null,
  "request": {
    "status": "pending_review",
    "waitingFor": []
  },
  "reviewUrl": "https://platform.nextlevelproductionservices.com/portal/quote/qv_01J8XN3H5D"
}
```

### `GET /api/v1/orders`

List the account's open draft requests, quotes (ready to sign or signed, provisional or not, valid until) and booked jobs. Needs the `orders:read` scope.

**Access:** API key or assistant connection with the scope named above

Response:
```json
{
  "drafts": [],
  "quotes": [
    {
      "version_id": "qv_01J8XN3H5D",
      "title": "Graduation audio",
      "project_name": "Online request: Powered speaker pair",
      "status": "ready_to_sign",
      "provisional": true,
      "valid_until": "2027-05-07",
      "sent_at": "2027-04-20T17:02:11.000Z",
      "event_start_date": "2027-05-14",
      "event_end_date": "2027-05-15"
    }
  ],
  "jobs": []
}
```

### `GET /api/v1/quotes/{id}`

Read a quote sent to the account: options, lines, totals, status, whether it's provisional and its valid-until date, and the link to sign and pay. Needs the `orders:read` scope.

**Access:** API key or assistant connection with the scope named above

- `id` (path, required)

Response:
```json
{
  "status": "ready_to_sign",
  "provisional": true,
  "validUntil": "2027-05-07",
  "quote": {
    "title": "Graduation audio",
    "options": [
      {
        "label": "Base",
        "lines": [],
        "totals": {
          "subtotalCents": 30000,
          "taxCents": 2812,
          "totalCents": 32812
        }
      }
    ]
  },
  "signAndPayUrl": "https://platform.nextlevelproductionservices.com/portal/quote/qv_01J8XN3H5D"
}
```

### `POST /api/v1/labor-quote-requests`

Ask for a staff quote for setup, operation or strike. Gives the account manager the event details and needs; it never produces a price. Needs the `requests:write` scope.

**Access:** API key or assistant connection with the scope named above · needs `Idempotency-Key`

Request body:
```json
{
  "eventName": "Spring gala",
  "startDate": "2027-04-02",
  "venue": "Seascape Beach Resort, Aptos",
  "needs": "Setup and strike for two speakers and a mixer; we run the show",
  "audience": "200 guests"
}
```

Response:
```json
{
  "opportunityId": "opp_01J8XP9Q1R",
  "message": "Your account manager will scope the labor and send a quote. No price is given until then."
}
```

### `GET /api/v1/webhooks`

List the account's webhook endpoints and the event types.

**Access:** organization API key with `webhooks:manage`

Response:
```json
{
  "ok": true
}
```

### `POST /api/v1/webhooks`

Add an endpoint. The signing secret is in the answer, once.

**Access:** organization API key with `webhooks:manage` · needs `Idempotency-Key`

Request body:
```json
{
  "url": "https://example.com/hooks/nextlevel",
  "events": [
    "quote.ready",
    "quote.signed"
  ]
}
```

Response:
```json
{
  "ok": true
}
```

### `DELETE /api/v1/webhooks/{id}`

Delete an endpoint; queued deliveries are dropped.

**Access:** organization API key with `webhooks:manage`

- `id` (path, required)

Response:
```json
{
  "ok": true
}
```

### `POST /api/v1/webhooks/{id}/enable`

Turn an endpoint back on after it was turned off for failing.

**Access:** organization API key with `webhooks:manage`

- `id` (path, required)

Response:
```json
{
  "ok": true
}
```

### `POST /api/v1/webhooks/{id}/test`

Send a webhook.test event now and return the attempt.

**Access:** organization API key with `webhooks:manage`

- `id` (path, required)

Response:
```json
{
  "ok": true
}
```

### `GET /api/v1/webhooks/{id}/deliveries`

The last 50 deliveries to an endpoint, with results and retries.

**Access:** organization API key with `webhooks:manage`

- `id` (path, required)

Response:
```json
{
  "ok": true
}
```

## Machine-readable

- OpenAPI 3.1: [https://platform.nextlevelproductionservices.com/api/v1/openapi.json](https://platform.nextlevelproductionservices.com/api/v1/openapi.json)
- This guide as Markdown: [https://platform.nextlevelproductionservices.com/developers.md](https://platform.nextlevelproductionservices.com/developers.md)
- For AI assistants: [https://platform.nextlevelproductionservices.com/llms.txt](https://platform.nextlevelproductionservices.com/llms.txt)
- API catalog (RFC 9727): [https://platform.nextlevelproductionservices.com/.well-known/api-catalog](https://platform.nextlevelproductionservices.com/.well-known/api-catalog)
- MCP server: `https://platform.nextlevelproductionservices.com/mcp`
