curl --request POST \
--url https://brew.new/api/v1/emails/{emailId}/inbox-placement-tests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "k57e9m3q1w8r"
}
'{
"testId": "ibp_2f1c9d8a-4e77-4b0e-9a1c-6d5e2f0b7c31",
"emailId": "V1StGXR8_Z5jdHi6B-myT",
"status": "running",
"phase": "sending",
"domainId": "k57e9m3q1w8r",
"seedCount": 42,
"results": null,
"createdAt": "2026-07-13T17:00:06.675Z",
"updatedAt": "2026-07-13T17:00:06.675Z"
}Run an inbox placement test
Test where the design’s latest version LANDS — inbox vs spam vs missing — across real mailbox providers (Gmail, Outlook, Yahoo, Apple, …). Brew provisions a Mailgun seed list and sends the email to the seed addresses through your REAL send pipeline on a VERIFIED sending domainId, so the result reflects that domain’s true deliverability plus SPF/DKIM/DMARC.
Returns immediately with a testId, status: "running" and phase: "sending". Results accrue over a few minutes — poll GET /v1/emails/{emailId}/inbox-placement-tests/{testId} until status is completed, partially_completed or failed.
This performs a real (small) send to the seeds IN ADDITION to the FIXED 10-credit test fee (X-Credit-Cost: 10), charged only on a 2xx. Requires a verified sending domain.
curl --request POST \
--url https://brew.new/api/v1/emails/{emailId}/inbox-placement-tests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domainId": "k57e9m3q1w8r"
}
'{
"testId": "ibp_2f1c9d8a-4e77-4b0e-9a1c-6d5e2f0b7c31",
"emailId": "V1StGXR8_Z5jdHi6B-myT",
"status": "running",
"phase": "sending",
"domainId": "k57e9m3q1w8r",
"seedCount": 42,
"results": null,
"createdAt": "2026-07-13T17:00:06.675Z",
"updatedAt": "2026-07-13T17:00:06.675Z"
}Authorizations
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Path Parameters
Body
Response
The test was created and the seed send is in flight. Poll the GET endpoint for results.
Was this page helpful?