API access is part of the Business, Enterprise, Agency, Agency Pro, and Agency Scale plans. It isn’t included during a free trial of the Business plan: it unlocks when you start your paid plan. On other plans the Generate New Key button is locked and selecting it opens an upgrade prompt. See API access and plans and features.
What a key gives access to
Choose Full access, Read only, or Custom permissions when creating a key. Custom permissions let you select read and write access separately for resources such as sales, commissions, analytics and webhooks. Write access does not automatically include read access. Existing keys keep their permissions. Give each integration the permissions it needs. See the permission reference for the complete list.Generate a key
Select Generate New Key at the bottom right. Choose a permission preset, or select at least one permission under Custom permissions. Optionally set a future expiry date and time in your local time zone, then generate the key. The list shows its permissions and expiry status. A key without an expiry stays valid until deleted or revoked. An expired key stops authorizing requests, so replace it in the integration before its expiry.
When the “API key created successfully” message appears, the key is live and ready to use.
Copy your key
Select Copy on the key’s card to put it on your clipboard, then paste it wherever it’s needed — usually a field labelled “API key” or “token” in the other tool. Unlike some services, Referly keeps your key visible on this screen, so you can come back and copy it again later. That also means anyone who can open your dashboard can read it.Each key belongs to one program
A key defaults to the affiliate program it was created in. For existing programs, switch to each one and generate its own key. If an integration creates a new program through the API, that exact key can also select the new program on operational endpoints. See program selection. The same applies the other way round: deleting a program’s key has no effect on your other programs.Hand the key to a developer or tool
Requests go tohttps://www.referly.so/api/v1, and the key travels with every request as a bearer token:
Know the request limits
To keep things fast for everyone, each key can only make so many requests in a given period. The limits apply per key and per type of request:
Going over a limit doesn’t disable your key. The request is refused with a “too many requests” response and a note of how long to wait, and normal requests resume once the period is over. If you’re importing a lot of history at once, spread it out or use the import tools instead.
Delete a key
Select the red trash icon on a key’s card. The key is removed immediately — there’s no confirmation step and no way to restore it.
Delete a key whenever it may have been exposed — a developer leaves, a key ends up in a shared document, or you stop using a tool. Generate a replacement, update the tool, then delete the old one.
Related
API access
Check whether your plan includes API access.
Webhooks
Get notified in your own system when something changes.
API reference
Everything your developer can read and write.
Zapier
Connect Referly to thousands of apps without code.