FeaturesPricingHow it worksDocsBlogWP PluginFAQLog inStart free

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:

Authentication

The API is authenticated with a bearer API key.

  1. In the panel, go to Settings → API keys and create a key. Copy it — it’s shown once.

  2. Send it on every request in the Authorization header:

    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 error message and an appropriate HTTP status (400 bad input, 401 bad/missing key, 429 too many requests).