Reseller Partner API
Use the Reseller Partner API to keep Delivr's list of your end customers current, read the usage Delivr counts for each one, and submit your monthly report.
Available to enrolled reseller partners. Contact your Delivr representative.
You call the API from your backend with an API key and secret. You never need the dashboard. The status you report for an end customer decides whether Delivr delivers person data for that end customer. See Why the status matters.
Before you start
- Your Delivr representative enrolls your organization. An organization that is not enrolled gets
403on every route below. - Create an API key for the enrolled organization, with access set to
Organization (every project). The routes act on the key's own organization and refuse a project-scoped key with403. - Keep the key and the secret on your backend.
- Tag your usage with your own end-customer id, as shown in Tag usage with your end-customer id. Use the same id in this API.
The routes are on https://api.delivr.ai. Send X-Api-Key and X-Api-Secret on every request. A test key reads and changes the same live list as a live key.
| Route | Purpose |
|---|---|
GET /api/v1/partner/end-customers | Read your whole end-customer list. |
PUT /api/v1/partner/end-customers | Replace your whole list. |
GET /api/v1/partner/end-customers/{id} | Read one end customer. |
PUT /api/v1/partner/end-customers/{id} | Add or update one end customer. |
GET /api/v1/partner/usage | Read Delivr's usage count per end customer. |
POST /api/v1/partner/reports | Submit the report for one month. |
GET /api/v1/partner/reports/{period} | Read a submitted report, checked against Delivr's usage. |
Each key is limited to 10 requests per second. A request over the limit returns 429. Wait for the Retry-After header, then retry.
Tag usage with your end-customer id
Delivr counts usage per end customer only when each request or event carries the end-customer id. Usage without a valid id shows as unattributed in Read usage.
For a billed API request, send the id in the X-Delivr-End-Customer header. Send exactly one value that follows the id rule below.
curl -X POST "https://api.delivr.ai/api/v1/intent/lookup" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET" \
-H "X-Delivr-End-Customer: acme-001" \
-H "Content-Type: application/json" \
-d '{"id": "row-42", "email": "[email protected]"}'- The billed Intent routes under
/api/v1/intent/read the header: lookup, batch, company, company batch, companies, people, and the multi-topic companies and people routes. The preview routes read it and never refuse a request. - On a billed request, a malformed value returns
400. If Delivr set your API key to require the header, a billed request without it also returns400. Your Delivr representative tells you whether your key requires it. - A
dry_runrequest accepts a missing header and ignores a malformed one.
For data Delivr delivers through a pipeline, the id comes from a pixel custom parameter. Your Delivr representative agrees the parameter name with you at enrollment. Set it on the script tag with data-global-params, so the first page view carries it. If you set it with setGlobalParams instead, turn off auto-init and call it before init(), or the first page view has no id. See Pixel and DSP Events API. An event without a valid id is unattributed.
End-customer ids, statuses and labels
| Field | Rule |
|---|---|
id | 1 to 64 characters from A-Z, a-z, 0-9, _ and -. Leading and trailing spaces are removed. Ids are case-sensitive. |
status | active, trial or inactive. Case and surrounding spaces are ignored. |
label | Optional. Your own name for the end customer, up to 120 characters of UTF-8 text. |
Delivr sets trial_started_at the first time an end customer enters trial. It never resets it.
Delivr never deletes an end customer. To stop delivering person data for one, set it to inactive.
Update one end customer
Use this route when an end customer changes state in your own flow. It adds or updates only that end customer and leaves the rest of your list alone.
curl -X PUT "https://api.delivr.ai/api/v1/partner/end-customers/acme-001" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET" \
-H "Content-Type: application/json" \
-d '{"status": "trial", "label": "Acme Corp"}'The body takes status (required) and label. If you leave label out or send null, Delivr keeps the stored label. If you send an empty string, Delivr clears it. The body must be JSON, at most 64 KiB, with no other fields.
{
"end_customer": {
"id": "acme-001",
"status": "trial",
"label": "Acme Corp",
"trial_started_at": "2026-12-04T17:21:09Z",
"status_changed_at": "2026-12-04T17:21:09Z",
"updated_at": "2026-12-04T17:21:09Z",
"updated_by": "api_client:3f2b9c1a"
},
"created": true,
"status_changed": true
}createdistruewhen the id was not on your list before.status_changedistruewhen this request recorded a status change. A new end customer counts as a change.- Sending the stored state again writes nothing and returns
200with both fieldsfalse. trial_started_atandlabelarenullwhen not set.
Read one end customer with the same path:
curl "https://api.delivr.ai/api/v1/partner/end-customers/acme-001" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET"The response is {"end_customer": {...}} with the fields shown above. An id that is not on your list returns 404.
Replace the full list
Use this route to sync your whole list in one request. The body is the complete list, as JSON or CSV. Each upload replaces the one before it.
- An end customer you leave out becomes
inactive. Delivr does not delete it. - You cannot send the list in parts. A second upload replaces the first.
- One invalid row rejects the whole upload, and Delivr saves nothing.
- A row without a label clears the stored label.
- An upload holds at most 50,000 rows and 32 MiB.
Send the list as CSV with Content-Type: text/csv. The header is end_customer,status,label. The label column is optional. Column names are not case-sensitive.
curl -X PUT "https://api.delivr.ai/api/v1/partner/end-customers" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET" \
-H "Content-Type: text/csv" \
--data-binary @end-customers.csvend_customer,status,label
acme-001,active,Acme Corp
globex-002,trial,Globex
initech-003,inactive,To send JSON, use Content-Type: application/json and this body. Send {"end_customers": []} to mark every end customer inactive.
{
"end_customers": [
{ "id": "acme-001", "status": "active", "label": "Acme Corp" },
{ "id": "globex-002", "status": "trial" }
]
}The response counts what the upload did:
{
"summary": {
"added": 1,
"removed": 0,
"status_changed": 1,
"relabeled": 0,
"unchanged": 1
},
"end_customers": 3,
"status_changes": 2
}removed counts end customers you left out that became inactive. end_customers is the number of rows you sent.
Read the whole list with GET /api/v1/partner/end-customers. It returns every status, including inactive:
{
"end_customers": [
{
"id": "acme-001",
"status": "active",
"label": "Acme Corp",
"trial_started_at": null,
"status_changed_at": "2026-12-04T17:21:09Z",
"updated_at": "2026-12-04T17:21:09Z",
"updated_by": "api_client:3f2b9c1a"
}
],
"count": 1
}Why the status matters
When Delivr delivers data to you through a pipeline, it checks each row's end-customer id against your list. Delivr applies masking if it is enabled for your delivery. The table assumes Delivr can read your end-customer list at the start of the run. If it cannot read the list, Delivr delivers that run unmasked.
| End customer on the row | What you receive |
|---|---|
active, or trial within your agreed trial length from trial_started_at | The full row, with person data. |
trial past that length, inactive, not on your list, or no valid id on the row | The row with person fields emptied. |
On a masked row:
- Person fields are emptied. Company fields and event fields stay.
event_datais reduced to an allowlist of keys.- Query strings are removed from the URL fields your delivery policy names. Other URL fields keep theirs.
Your Delivr representative can add boolean columns to your delivery: person_masked, has_email, has_mobile and has_linkedin. They are present only when enabled for you. person_masked is true when Delivr emptied the person fields of a resolved row. The has_ columns say whether the person had that value before masking.
A status change takes effect on your next delivery run. It applies going forward only. Rows already delivered do not change.
Read usage
GET /api/v1/partner/usage returns the rows Delivr counted for each end customer in a month. It lists every end customer on your list, even one with no usage.
curl "https://api.delivr.ai/api/v1/partner/usage?month=2026-11" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET"month is YYYY-MM. It defaults to the current month in UTC. A month that has not started is refused with 400.
{
"month": "2026-11",
"end_customers": [
{
"end_customer": "acme-001",
"status": "active",
"label": "Acme Corp",
"quantity": 1200,
"unmasked": 1200,
"masked": 0,
"by_unit": [
{ "source": "pipeline", "unit": "resolved_record", "quantity": 1000, "unmasked": 1000, "masked": 0 },
{ "source": "api", "unit": "intent_signal_scored", "quantity": 200, "unmasked": 200, "masked": 0 }
]
},
{
"end_customer": "globex-002",
"status": "trial",
"label": "Globex",
"quantity": 0,
"unmasked": 0,
"masked": 0,
"by_unit": []
},
{
"end_customer": "initech-003",
"status": "inactive",
"label": null,
"quantity": 300,
"unmasked": 0,
"masked": 300,
"by_unit": [
{ "source": "pipeline", "unit": "resolved_record", "quantity": 300, "unmasked": 0, "masked": 300 }
]
}
],
"unattributed": {
"end_customer": "",
"status": null,
"label": null,
"quantity": 40,
"unmasked": 0,
"masked": 40,
"by_unit": [
{ "source": "pipeline", "unit": "resolved_record", "quantity": 40, "unmasked": 0, "masked": 40 }
]
},
"total_quantity": 1540
}quantitycounts your billable units.by_unitsplits it bysourceandunit:pipelinewithresolved_recordfor resolved rows in your delivery files, andapiwith the metered unit, such asintent_signal_scored, for API calls.unmaskedandmaskedmean different things for eachsource:- For
pipeline,unmaskedis how many resolved rows were delivered without masking, whatever their field values.maskedis how many resolved rows the active list marks for masking: the end customer is inactive, past its trial length or not on your list, or the row has no valid id. If a run cannot read your list, it marks nothing, so its rows add nothing tomasked. Where masking is not yet on for your delivery or for a pixel, marked rows are still delivered unmasked, sounmaskedplusmaskedcan be more thanquantity. - For
api, Delivr does not mask API responses. Each entry setsunmaskedtoquantityandmaskedto0. - Read the
pipelineentries for delivery masking counts. The totals on the end customer add both sources.
- For
statusandlabelarenullfor an id that has usage but is not on your list.unattributedholds usage that arrived without a valid end-customer id.total_quantityincludesunattributed.
Submit your monthly report
POST /api/v1/partner/reports sends the report for one month. The body is the complete month. A second submission for the same month replaces every line of the first, unless Delivr has accepted the report.
curl -X POST "https://api.delivr.ai/api/v1/partner/reports" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "X-Api-Secret: YOUR_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"period": "2026-11",
"notes": "Includes the Globex trial.",
"lines": [
{ "end_customer": "acme-001", "units": 1200, "amount_cents": 240000 },
{ "end_customer": "globex-002", "units": 80, "details": { "plan": "trial" } }
]
}'| Field | Rule |
|---|---|
period | Required. YYYY-MM. A month that has not started is refused. |
notes | Optional. Up to 2,000 characters. |
lines | Required. Send [] to report no usage. Up to 50,000 lines. |
lines[].end_customer | Required. Follows the id rule above. Unique in the report. |
lines[].units | Required. A whole number, zero or more. |
lines[].amount_cents | Optional. A whole number of cents, zero or more. |
lines[].details | Optional. A JSON object up to 4,096 bytes. |
To send CSV, set Content-Type: text/csv and add ?period=YYYY-MM to the URL. The header is end_customer,units,amount_cents. The amount_cents column is optional, and its cells can be empty. CSV has no notes or details.
Read a report with GET /api/v1/partner/reports/{period}, for example /api/v1/partner/reports/2026-11. Both routes return your report checked against Delivr's usage:
{
"period": "2026-11",
"status": "submitted",
"submitted_at": "2026-12-04T17:30:00Z",
"submitted_by": "api_client:3f2b9c1a",
"notes": "Includes the Globex trial.",
"variance_threshold_pct": 5,
"lines": [
{
"end_customer": "acme-001",
"status": "active",
"reported_units": 1200,
"observed_units": 1200,
"variance_pct": 0,
"under_reported": false,
"amount_cents": 240000,
"details": null
},
{
"end_customer": "globex-002",
"status": "trial",
"reported_units": 80,
"observed_units": 0,
"variance_pct": null,
"under_reported": false,
"amount_cents": null,
"details": { "plan": "trial" }
}
],
"missing_end_customers": [
{ "end_customer": "initech-003", "status": "inactive", "observed_units": 300 }
],
"unattributed_observed_units": 40,
"total": {
"reported_units": 1280,
"observed_units": 1500,
"variance_pct": -14.67,
"under_reported": true
},
"flagged_lines": 0
}statusissubmitteduntil Delivr reviews the report, thenacceptedordisputed. An accepted report cannot be replaced.variance_pctis(reported - observed) / observed * 100, rounded to two places. It isnullwhen Delivr observed nothing but you reported units.under_reportedistruewhen your units are below Delivr's count by more thanvariance_threshold_pct.flagged_linescounts those lines.missing_end_customerslists end customers where Delivr observed usage and your report has no line. Their usage counts intotal.observed_units.unattributed_observed_unitsis shown on its own and is not intotal. In this example,total.observed_unitsis 1,200 foracme-001plus 300 for the missinginitech-003.
Errors
Errors from the partner routes have error, message and code, with code as the HTTP status number. Authentication errors come from the gateway before a request reaches these routes. They use a different shape: the body can be plain text, or JSON where code is a string. Branch on the HTTP status, not on the body.
{ "error": "Forbidden", "message": "This organization is not enrolled as a reseller partner. Contact Delivr support to enroll.", "code": 403 }A project-scoped key is refused before the partner routes, with 403 and only error:
{ "error": "this endpoint is not available to a project-scoped API key" }A rejected upload or id returns 400 with every invalid field, up to 100. Delivr saves nothing:
{
"error": "Bad Request",
"message": "2 invalid value(s); nothing was saved. First: line 3: status must be active, trial or inactive",
"code": 400,
"errors": [
{ "line": 3, "field": "status", "message": "must be active, trial or inactive" },
{ "line": 5, "field": "end_customer", "message": "is repeated; it first appears on line 2" }
],
"error_count": 2
}line is the CSV line, where the header is line 1. For JSON, line is absent and field carries the array index, such as end_customers[2].status.
| Status | Cause | What to do |
|---|---|---|
400 | A value is invalid, the body is not valid JSON or CSV, the id in the path is malformed, or an upload is over 50,000 rows. | Read errors, fix every listed field and send the request again. |
401 | From the gateway. The key or secret is missing or wrong. | Check both headers. |
403 | Your organization is not enrolled as a reseller partner, or the key is scoped to one project. | Contact your Delivr representative, or use a key with Organization (every project) access. |
404 | GET of an end customer not on your list, or of a report you have not submitted. | Add the end customer, or submit the report first. |
409 | Delivr accepted the report for that month, so it cannot be replaced. | Contact Delivr support to correct it. |
413 | The body is over the limit: 32 MiB for an upload or report, 64 KiB for one end customer. | Send a smaller body. |
415 | Content-Type is not allowed. The list and report routes take application/json or text/csv. Updating one end customer takes JSON only. | Set the right Content-Type. |
429 | Over 10 requests per second for the key. | Wait for Retry-After, then retry. |
500 | Delivr could not save or read the data. A failed write saves nothing. | Read the current state before you retry a write. If a newer update has replaced your payload, rebuild it from the current state. Then send it. If it keeps failing, contact support. |
A full-list upload replaces the whole list. If you retry an old one after another update added end customers, it sets those end customers to inactive. Read the list again and rebuild the upload first.
A request with no Content-Type is read as JSON. A Content-Type ending in /json, such as application/json, counts as JSON.
Updated about 21 hours ago
