Poptin REST API v1

Poptin public REST API (v1) for automating a Poptin account: list and manage poptins (popups and embedded forms), contacts, conversions, email campaigns and background jobs. Authenticated with account-scoped bearer API keys (pk_live_) generated in Settings, returning a JSON response envelope, with per-token rate limits signalled by X-RateLimit headers.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 43

GET /bulk-jobs Show bulk job status #
GET /campaigns List campaigns #
GET /campaigns/analytics Campaign Analytics #
DELETE /campaigns/{uid} Delete campaign #
GET /campaigns/{uid} Show campaign #
POST /campaigns/{uid}/end End campaign #
POST /campaigns/{uid}/pause Pause campaign #
POST /campaigns/{uid}/resume Resume campaign #
POST /campaigns/{uid}/send-test-email Send campaign test email #
GET /contacts List contacts #
POST /contacts Create or update contact #
POST /contacts/bulk Bulk import contacts (JSON) #
POST /contacts/bulk-delete Bulk delete contacts (JSON) #
POST /contacts/bulk-import Bulk import contacts (CSV) #
DELETE /contacts/{uid} Delete contact #
GET /contacts/{uid} Show contact #
PATCH /contacts/{uid} Update contact details #
PATCH /contacts/{uid}/status Update contact status #
POST /contacts/{uid}/tags/add Add contact tags #
POST /contacts/{uid}/tags/remove Remove contact tags #
GET /conversions List conversions #
POST /conversions/bulk-delete Bulk delete conversions (JSON) #
DELETE /conversions/{uid} Delete conversion #
GET /conversions/{uid} Show conversion #
POST /emails/send Send template email to contact #
GET /poptins List poptins #
GET /poptins/analytics Poptin Analytics #
POST /poptins/stats/refresh Refresh poptin stats #
DELETE /poptins/{uid} Delete poptin #
PATCH /poptins/{uid} Rename poptin #
GET /poptins/{uid} Show poptin #
POST /poptins/{uid}/pause Pause poptin #
POST /poptins/{uid}/resume Resume poptin #
POST /preferences Create preference #
GET /preferences List preferences #
DELETE /preferences/{uid} Delete preference #
GET /preferences/{uid} Show preference #
PUT /preferences/{uid} Update preference #
POST /properties Create property #
GET /properties List properties #
DELETE /properties/{uid} Delete property #
GET /properties/{uid} Show property #
PUT /properties/{uid} Update property #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/poptin:poptin-rest-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

poptin-api-openapi.yml Raw ↑
openapi: 3.1.2
info:
  title: Poptin API
  version: 1.0.0
  description: "# Poptin API (v1)\n\nBearer `pk_live_…` tokens, JSON envelope responses, and versioned routes under `/v1/`.\n\nInteractive OpenAPI (Stoplight): [https://api.popt.in](https://api.popt.in) · OpenAPI JSON: [https://docs.popt.in/docs/api/v1/openapi.json](https://docs.popt.in/docs/api/v1/openapi.json)\n\n## Authentication\n\n1. In the Poptin app, open **Settings → API keys**.\n2. Generate a key for the account (or subaccount) you want to automate.\n3. Copy the token immediately - it is shown **once** and starts with `pk_live_`.\n4. Send it on every request:\n\n```http\nAuthorization: Bearer pk_live_xxxxxxxx\n```\n\nTokens are scoped to the account they were created for. Revoked or inactive accounts receive **401**; restricted accounts receive **403**.\n\n## Base URL\n\n`https://api.popt.in/v1`\n\n## Response envelope\n\nMost responses use the same JSON envelope:\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `success` | boolean | Whether the request succeeded. |\n|\
    \ `message` | string | Human-readable summary. |\n| `data` | object \\| null | Response payload. |\n| `errors` | mixed \\| null | Error details. `null` on success. |\n| `meta` | object \\| null | Pagination (list endpoints) or `null`. |\n\n**Success example:**\n\n```json\n{\n  \"success\": true,\n  \"message\": \"Request completed successfully.\",\n  \"data\": { },\n  \"errors\": null,\n  \"meta\": null\n}\n```\n\n**Validation error (422):**\n\n```json\n{\n  \"success\": false,\n  \"message\": \"The given data was invalid.\",\n  \"data\": null,\n  \"errors\": {\n    \"value\": [\"The value is required.\"]\n  },\n  \"meta\": null\n}\n```\n\n### Pagination `meta`\n\nList endpoints return pagination in `meta`. The Public API uses two pagination styles depending on the resource.\n\n#### Offset pagination\n\nUsed by **Properties**, **Preferences**, **Email senders**, **Campaigns**, and **Poptins**.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `current_page` | integer | Current\
    \ page (1-based). |\n| `last_page` | integer | Last available page. |\n| `per_page` | integer | Page size used for this response. |\n| `total` | integer | Total matching rows. |\n\nPass `per_page` and `page` as query parameters.\n\n**Example — first page:**\n\n```http\nGET /v1/poptins?per_page=10&page=1\n```\n\n**Example — next page:**\n\n```http\nGET /v1/poptins?per_page=10&page=2\n```\n\n| Resource | Default `per_page` | Max |\n| --- | --- | --- |\n| Properties, Preferences, Email senders | 50 | 100 |\n| Campaigns, Poptins | 10 | 100 |\n\n#### Cursor pagination\n\nUsed by **Contacts** and **Conversions** only. These list endpoints do **not** accept `page` and do **not** return offset fields such as `current_page`, `last_page`, or `total`.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `per_page` | integer | Page size used for this response. |\n| `next_cursor` | string \\| null | Opaque cursor for the next page. `null` when there is no next page. |\n| `prev_cursor` | string\
    \ \\| null | Opaque cursor for the previous page. `null` on the first page. |\n| `has_more` | boolean | Whether another page exists after this one. |\n\nPass `per_page` and optionally `cursor` as query parameters. Treat cursors as opaque strings: pass back the exact value from `meta.next_cursor` or `meta.prev_cursor` without decoding or editing them.\n\n| Resource | Default `per_page` | Max |\n| --- | --- | --- |\n| Contacts, Conversions | 10 | 100 |\n\n**Example — first page (forward):**\n\n```http\nGET /v1/contacts?per_page=10\n```\n\nRead `meta.next_cursor` from the response. When `meta.has_more` is `true`, request the next page:\n\n```http\nGET /v1/contacts?per_page=10&cursor={meta.next_cursor}\n```\n\n**Example — backward:**\n\nWhen `meta.prev_cursor` is not `null`, pass it as `cursor` to move to the previous page:\n\n```http\nGET /v1/conversions?per_page=10&cursor={meta.prev_cursor}\n```\n\nInvalid or malformed `cursor` values return **422** with `The cursor is invalid.`\n\n##\
    \ Timestamps\n\nDatetime fields use **UTC** in ISO 8601 format (for example `2026-05-21T12:00:00.000000Z`).\n\n## HTTP status codes\n\n| Status | When it happens |\n| --- | --- |\n| 200 | OK - synchronous success, or idempotent “already refreshing” on poptin stats refresh. |\n| 201 | Created - e.g. new contact or property. |\n| 202 | Accepted - work queued; poll **Show bulk job status** (or poptin list/show for stats refresh). |\n| 204 | No Content - delete succeeded. |\n| 400 | Bad Request. |\n| 401 | Missing/invalid token, or inactive/deleted account. |\n| 403 | Account is restricted (`pe_restriction`) - only on actions that send or restart sending email (campaign resume, send-test-email, template email send). |\n| 404 | Resource not found (or not in this account). |\n| 406 | Not Acceptable - e.g. deleting a default property. |\n| 409 | Conflict - the account async-job cap is reached, or template email duplicate window. |\n| 422 | Validation failed or action not allowed in current\
    \ state. |\n| 423 | Locked - account is being processed; try again later. |\n| 429 | Too Many Requests - rate limit or poptin refresh cooldown (`Retry-After` when present). |\n| 500 | Internal Server Error. |\n\n## Rate limits and caps\n\nLimits are per API token when authenticated, otherwise per IP. Named limiters apply only to this Public API (they do not use Laravel’s global `api` throttle).\n\n| Limit | Default | Applies to |\n| --- | --- | --- |\n| General | **120**/minute | All Public API routes |\n| Email send | **20**/minute | `POST /v1/emails/send` |\n| Bulk | **5**/minute | Contact bulk JSON/CSV import and bulk delete; conversion bulk delete |\n\nAdditional caps:\n\n| Cap | Value |\n| --- | --- |\n| Bulk JSON upsert (contacts) | Max **100** rows per request; use CSV for larger lists |\n| Bulk JSON delete (contacts) | Max **2,000** uids per request |\n| Bulk JSON delete (conversions) | Max **2,000** uids per request |\n| Bulk CSV import | Max **10 MB** file, **50,000 non-empty\
    \ rows** |\n| Contact tag add/remove | Max **50** tag names per request |\n| Concurrent async jobs | **10** per account (`new`/`running`) |\n| Template email duplicate window | ~**30** seconds (same template + recipient; pass `force` to override) |\n| Poptin stats refresh | ~**10** minutes after a successful enqueue |\n\n## Async jobs (poll flow)\n\nSeveral write operations return **202 Accepted** with a `bulk_job` object instead of finishing inline:\n\n- Bulk import contacts (JSON)\n- Bulk import contacts (CSV)\n- Bulk delete contacts (JSON)\n- Bulk delete conversions (JSON)\n- Send template email\n\n**Flow:**\n\n1. Call the queuing endpoint.\n2. Read `data.bulk_job.object_id` and `data.bulk_job.object_name`.\n3. Poll `GET /v1/bulk-jobs?object_id=…&object_name=…` (**Show bulk job status**) until `status` is `done` or `failed`.\n4. Read `progress` / `errors` on the job.\n\nPoptin **stats refresh** is also async, but you poll list/show poptin responses for `refresh_status` / `last_updated_at`\
    \ (not bulk-jobs).\n\n## Naming notes\n\n| API path | Product language |\n| --- | --- |\n| `contacts` | Contacts / people on your list |\n| `properties` | Fields / custom contact attributes |\n| `poptins` | Popups & forms |\n| `conversions` | Leads and actions from popups/forms |\n\n## Automation notes\n\nUseful invariants for scripts, agents, and future tooling:\n\n- **Envelope:** Always parse `success`, then `data` or `errors`; list calls also need `meta`.\n- **Auth:** Bearer `pk_live_` tokens from Settings → API keys.\n- **Async:** Treat **202** + `bulk_job` as “accepted, not finished”; poll **Show bulk job status** to terminal `done`/`failed`.\n- **Idempotency / cooldowns:** Template email duplicate window (~30s, `force` override); poptin refresh ~10 min after enqueue (repeat while `refreshing` returns **200**); at most 10 concurrent async jobs per account (**409** above the cap).\n- **Locks:** **423** means the account is mid-processing - retry later, do not treat as a permanent\
    \ failure.\n- **Rate limits:** Back off on **429**; honor `Retry-After` when present.\n\n## Versioning\n\nAll Public API endpoints are versioned under `/v1/`. Future breaking changes will ship under a new version prefix.\n"
servers:
- url: https://api.popt.in/v1
  description: Production
security:


# --- truncated at 32 KB (236 KB total) ---
# Full source: https://artifacts.apis.io/poptin/openapi/poptin-api-openapi.yml