https://api.beaconrevenue.io/data/v1
The API is read only. Every request is a GET.
Step 1: Make an app key
In Beacon, go to Build → App keys and select Make a key. Name the app, choose who the key acts for (yourself, or anyone if you are an admin), untick any kinds of data the app doesn’t need, and copy the key. It startsbcn_app_ and is shown once. App keys covers every option.
Store it as a secret in your app’s settings, such as an environment variable on Vercel, never in code a browser can see.
Step 2: Sign in on every request
Send the key in theAuthorization header. The samples read it from an environment variable; the Python one uses the requests library.
Step 3: Read your customers
GET /accounts returns one row per customer the key’s person may see, with Beacon’s stored values under their public names:
page.next pointing at the next.
Customers lists every value on a row and what it means, and the column dictionary has each column’s unit and source.
Every row carries three stamps:
A value Beacon doesn’t hold for a customer comes back as a refusal in its place, with the reason and what would make it available. It is never a blank or a zero. A value outside the person’s access, such as customer value for anyone but leadership, comes back as
outside_grant.
Whose customers
A key reads the customers its person can see on the Customers pages in Beacon. A key for someone who sees the whole company reads every customer; a key for someone who sees chosen teams reads only theirs.Step 4: Page through
A page of customers holds up to 500 rows; other tables use other sizes, listed on Paging. When there are more, the answer carriespage.next. Send it back unchanged as ?page=:
page.next. See Paging.
Step 5: Re-read only what changed
AskGET /changes?since= whether Beacon has re-worked each kind of data since your last read, and read with ?changed_since= only when it says yes. Stay current shows both, with Beacon Demo’s answer.
What is served today
Answers that aren’t data
Every read is recorded
Beacon records each read before it sends the answer: which key, which person it acts for, what was read and when. If the record can’t be written, nothing is sent. Admins see the reads on Settings → Who read what, and each key’s recent reads in its side panel on the Keys page.Related
Pick your way in
Claude, agents, apps or files.
Stay current
Re-read only what changed.
App keys
Make, replace and switch off keys.