Quickstart
Get from zero to your first successful Poptin API call in a few minutes: create a key, hit the base URL, and verify a response.
This Quickstart takes you from zero to your first successful call against the Poptin API. You'll create an API key, authenticate a request, list your poptins, and confirm the response - without writing any code.
Prerequisites
- An active Poptin account with permission to create API keys.
- The ability to send an authenticated HTTPS request - or use the Try It explorer built into the API Reference.
That's it. No SDK, local setup, or webhook configuration required to complete this Quickstart.
Step 1 - Create an API key
- Sign in to the Poptin app.
- Go to Settings → API keys.
- Create a new key. It will start with
pk_live_and is shown only once at creation - copy it immediately and store it in a secure secret manager. - Note the account (or subaccount) the key belongs to. Keys are scoped to the account they were created for and cannot cross accounts.
If you lose a key, revoke it and create a new one. Never commit keys to source control or paste them into client-side code.
Step 2 - Know the base URL
Every Public API operation lives under a single base URL:
https://api.popt.in/v1Endpoint paths in the API Reference are appended to this base. No environment switches, no regional hosts.
Step 3 - Make your first call
The fastest way to verify your key works is the Try It explorer in the API Reference.
- Open the API Reference.
- Pick a safe read-only operation to start with - list poptins (your popups and forms) is the recommended first call.
- In the Authentication panel, paste your
pk_live_…key. Try It sends it as a bearer token on theAuthorizationheader automatically. - Click Try It.
Prefer your own HTTP client? Point it at the same operation, send Authorization: Bearer pk_live_…, and you'll get the same result. Executable request and response samples live on each Reference page.
Step 4 - Confirm success
A successful call returns an HTTP 2xx status and a JSON body containing the poptins on your account. If the account is new and has no poptins yet, you'll still get a success response with an empty result set - that also confirms your key is valid.
All successful responses follow a consistent shape. See Response envelope for the full structure and how to read paginated results.
If the call fails, the two most common causes are a missing or malformed Authorization header and a key that belongs to a different account than the data you're trying to read.
Next steps
Use Try It and your own HTTP client to explore operations safely.
How API keys, bearer tokens, and account scoping work in detail.
Request quotas, throttling behavior, and headers to watch.
Track long-running operations like imports, deletions, and mass sends.
Browse every operation, parameter, and response contract.
Updated about 1 month ago
