Authentication
Send your API key as a Bearer token:
curl https://api.afterlib.com/v1/account \ -H "Authorization: Bearer al_live_replace_me"Key format
Section titled “Key format”Live keys begin with al_live_. Treat them like passwords.
Do not send keys in query strings. Query strings are commonly logged by proxies, browsers, and support tools.
Scopes
Section titled “Scopes”Scopes limit what a key can do:
account:readis required forGET /v1/account.credits:readis required forGET /v1/credits.ads:readis required for ad search, ad fetch, and collection ad reads.pages:readis required for page search, page fetch, and collection page reads.collections:readis required to list collections and read collection items.collections:writeis required to add an item to a collection.
Collection item reads require both collection access and the matching item scope. For example, reading ads from a collection requires collections:read and ads:read.
Revocation
Section titled “Revocation”Revoke keys from the Developer Portal. Revoked keys stop working immediately.