API
Create and manage AffKeeper links programmatically over a simple JSON API.
AffKeeper exposes a JSON API so you can create and manage links from your own code or tools. It’s the same API the WordPress plugin uses.
Interactive reference
The full, always-up-to-date endpoint reference (schemas, parameters, try-it-out) is generated from the live service:
- Interactive docs:
https://affkeeper.com/api/reference - OpenAPI schema:
https://affkeeper.com/openapi.json
Authentication
The API is authenticated with a bearer API key.
-
In the panel, go to Settings → API keys and create a key. Copy it — it’s shown once.
-
Send it on every request in the
Authorizationheader:Authorization: Bearer YOUR_API_KEY
Keep the key secret. You can revoke or delete a key from the same screen at any time; a revoked key stops working immediately.
Base URL
https://affkeeper.com/api
Example
Creating a link (see the interactive reference for the exact request/response schema):
curl -X POST https://affkeeper.com/api/v1/links \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"destination_url": "https://example.com/product", "domain_id": null}'
Rate limits & errors
- Requests are rate-limited per IP; well-behaved clients won’t hit the limit.
- Errors return a JSON body with an
errormessage and an appropriate HTTP status (400bad input,401bad/missing key,429too many requests).