Product
Publishers
Advertisers
Networks
Help
Pause animations
Browse help topics
How-to PublisherNetwork

If an API key leaks

Updated

View as Markdown

Generate a replacement key, revoke the leaked one straight away, then put the new key on your server. Your integration fails for the few minutes between revoking and deploying, which is better than leaving the key open. Publishers then check their postback URLs, because a publisher key can edit them.

On this page

Do this now

  1. Generate the replacement

    Publishers: My Profile, then API Keys, then Generate Key. Networks, signed in as the network’s owner (keys and the webhook secret are owner-only): Workspace settings, then API Keys, then Generate Key. Copy the new key: it’s shown once. If a network account is at its key limit, remove the leaked key first and generate after.

  2. Revoke the leaked key

    Publishers choose Revoke on its row; networks choose Remove. Match it by the prefix in the list, the first characters of the key. It stops working at once, except that a publisher key may still read the offer list for up to 30 seconds.

  3. Deploy the new key

    Replace the key wherever your servers read it, then make one call to confirm it answers 200.

  4. Publishers: check your postbacks

    Open Postbacks and check every row points at your own server. Delete any row you didn’t add. If offer blocking is on for your account, also check no offer was blocked that you didn’t block.

  5. Check it worked

    A call with the leaked key now answers 401 with Invalid or expired API key, and only the new key shows in your list.

What a leaked key could reach

KeyCouldCouldn’t
Publisher key, pk_Read your offer list, reports, conversions and billing. Add, change or delete your postback rows. Block offers from your offer list and wall, if offer blocking is on for your account.Create, list or revoke keys. Read or replace your postback secret. Add teammates or reset passwords.
Network key, ak_Read the offers your network can run, at your ratesAnything else

A changed row could send your conversions to someone else’s server, and your users would go uncredited until you fix it. The key can’t read your secret, so nobody can use it to fake postbacks to you.

If a secret leaks instead

  • Publisher postback secret: Postbacks, then Rotate secret. The old secret stops working at once, so update your server straight after, or every postback fails your signature check.
  • Network webhook secret: Workspace settings, then Revoke beside the secret, then Generate Webhook Secret, and update your server.

Tell us

Contact support with your account email, the leaked key’s prefix, and when and where it was exposed. Never send the full key.

Postback secret. A key starting with ps_ that signs every postback we send you, so your server can check it came from us. Shown once.What is a postback secret?

Support

Still stuck? Write to us.

One address for every question: hello@affiliateos.ai. Put the details from this list in your first message so we can find the click or conversion without asking you for them again.

Put these in your message

  1. 01The email you sign in with
  2. 02Your role: publisher, advertiser or network
  3. 03The offer ID
  4. 04The click ID or action_id
  5. 05The time it happened, with your time zone
  6. 06What you expected to happen

Looking for a reward in an app? Ask that app's support. It credits your reward, so only it can see your balance.

Search help