Agents: markdown or /docs.json. This page is the same text.

Pixel API

Public contract for creating an account, installing a pixel, and reading contacts. The same pages are for agents and for people.

How to read this

Production API host: https://agentpixel.io. https://agentpixel.io and https://agentpermission.io are this same process.

Calls

Lessons

1. Signup : account, email, checkout, API key. 2. Setup : pixel, snippet, install check. 3. Consent : permission popup and receipts. 4. Contacts : pull people by day or by id. 5. Evaluation : private scoped access and synthetic examples.

Left out

Operator routes under /console, /api/admin, and /v1/admin are not in this catalog.

An unlimited key can call Activate and Pipeline. A paid key receives 403 on those two. This catalog does not say how that key is issued.

Lessons

Signup

Start a 30-day no-card trial, confirm the email, and take an API key. After the trial subscribe for $1 per account/month. Includes 3 pixels and 500 new contacts per UTC calendar month. No extra charges. Resolution pauses at the limit or until subscribed.

Markdown

Setup

Mint a pixel, paste the tag, and confirm the homepage contains it.

Markdown

Contacts

Pull resolved people by UTC day or by the last id you have.

Markdown

Consent

Turn on the permission popup, then read and verify receipts.

Markdown

Evaluate AgentPixel safely

Private scoped evaluation with consent and labeled synthetic examples.

Markdown

Routes

MethodPath
GET/healthzDatabase is answering.
GET/v1/plansPrices a public signup can choose.
POST/v1/accountsStart a 30-day trial without a card. The signup token lasts one hour.
GET/v1/accounts/{account_id}Status, plan, email, and whether the email is confirmed.
GET/v1/email/verifyConfirm the email. The confirmation link lands here.
POST/v1/accounts/{account_id}/verification-emailSend the confirmation email again.
POST/v1/accounts/{account_id}/checkoutOpen Stripe Checkout for the $1 per account/month subscription. No usage charges.
GET/v1/checkout/successBrowser return after Checkout. Marks the account active when the session is paid.
GET/v1/checkout/cancelledBrowser return when Checkout is cancelled. No charge.
POST/v1/stripe/webhookStripe notifies this process. An integrator does not call it.
POST/v1/api-keysIssue an API key. The secret is in this response only.
GET/v1/whoamiWhose key this is. The secret is not returned.
GET/v1/setupWhether this account has a pixel installed.
POST/v1/pixelsMint a pixel for a site and return the install snippet.
GET/v1/pixelsPixels on this key's account, oldest first. Snippets are not included.
GET/v1/pixels/{pixel_id}One pixel, including the current snippet.
POST/v1/pixels/{pixel_id}/checkFetch `https://{domain}/` and record whether the HTML contains this pixel id.
PATCH/v1/pixels/{pixel_id}Change the domain. Refused after the pixel is installed.
DELETE/v1/pixels/{pixel_id}Delete a pixel that is not installed.
GET/v1/pixels/{pixel_id}/snippets/{action}Extra paste snippet for one commerce action.
POST/v1/pixels/{pixel_id}/email-snippetEmail the immediate install snippet.
GET/v1/pixels/{pixel_id}/contactsRead resolved people. Pass `on` or `after`, one of them.
POST/v1/pixels/{pixel_id}/contactsStore people that are already resolved. A customer read uses GET.
GET/v1/billing/quoteWhat this account would owe. This call does not charge.
POST/v1/pixels/{pixel_id}/consentTurn on the permission popup and publish the policy.
GET/v1/pixels/{pixel_id}/consentConsent log for one pixel, newest first, at most 200 rows.
GET/px/{pixel_id}.jsThe permission popup. Browsers load this. It is not cached.
GET/v1/policy/{pixel_id}The current privacy notice as HTML.
POST/v1/consent/recordThe popup writes one choice. A saved choice is 202. An ignored choice is 204 with an empty body.
GET/v1/consent/checkWhether the latest receipt allows a purpose.
GET/v1/consent/receiptThe latest receipt for a visitor, with a signature.
POST/v1/consent/verifyCheck a receipt signature.
GET/pixel.jsIdentification script referenced by the immediate snippet.
GET/pixel.dev.jsDev beacon. Customer installs use `/pixel.js` or the consent tag.
GET/pixel_popup.jsPopup script referenced by the immediate snippet.
GET/pixels/{pixel_id}/p.jsRedirect to Delivr's tag for this pixel id.
GET/external_api/install-pixel/delivr-pixelWhether this pixel id belongs on this host. Used by the tag, not by account setup.
POST/v1/accounts/{account_id}/activateMark an account active without changing its plan. A paid customer key receives 403.
POST/v1/pixels/pipelineMint a `cms` or `utm` pixel on a customer's paid account. A paid key receives 403.
GET/HTML front. The Host header picks the pixel site, the permission site, or the API home.
GET/site/pixelPixel marketing page.
GET/site/permissionPermission marketing page.
GET/demoHTML form that provisions a consent tag on the shared demo account.
POST/demo/provisionForm post for the demo page. Creates or reuses a pixel on the demo account and turns consent on.
GET/logHTML page. A person pastes a pixel id and an API key to read that pixel's consent log.