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 Free with 200 new contacts per month, no card, confirm the email with a 6-digit code, and take an API key. Free does not expire. Starter $49 includes 1,000 contacts, Growth $199 includes 5,000, and Unlimited is $499 per month. Each includes one website and subdomains. New resolution pauses at the limit.

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/v1/billingRead your commercial plan, shared contact usage, monthly anniversary and payment status.
POST/v1/billing/checkoutChoose a plan or add paid capacity. Give Stripe URL to the person for review.
POST/v1/billing/cancelCancel the plan at the end of its paid period. Contacts stay available.
POST/v1/billing/keepKeep a cancelled paid plan and its website add-ons renewing.
POST/v1/billing/websites/renewalStop or keep renewal for one paid website on your account.
GET/healthzDatabase is answering.
GET/v1/plansCurrent commercial plan prices. New accounts start on Free; verified accounts can upgrade.
POST/v1/accountsStart Free with 200 new contacts per month, no card. Emails a 6-digit code and a link. The signup token lasts 24 hours.
POST/v1/accounts/{account_id}/confirmConfirm the email with the 6-digit code from the AgentPixel email.
POST/v1/signup/resend-codeSend a new 6-digit code and link to the email of an existing account. The old code stops working.
POST/v1/accounts/{account_id}/signup-tokenGet a new signup token after the old one expired.
GET/v1/sampleLabeled synthetic sample of what an account gets: a pixel, a consent receipt and two contacts.
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}/checkoutLegacy account checkout only. New commercial accounts use POST /v1/billing/checkout with their account API key.
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 the identification tag for this pixel id.
GET/external_api/install-pixel/tagWhether 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.