Skip to content
GuidesChecked 20 November 2026

Lock your embed key to your own sites

An embed key sits in page source and can be copied. An allowlist and periodic rotation limit the damage.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

The key

The embed key begins vf_pk_, works on any plan and opens every route the public board opens, except the two routes that report revenue.

A public key that opens only public things.

It is found under Share and Embed in the dashboard, in the section called Embed key and sign on.

Put it in a web page or a mobile app and nobody gains more than a visitor already has. The server key is the secret one, and it stays on your own server. Treat the two as different things in your head, because a mistake between them is the expensive kind.

A key only answers for a public board. A board you have not published replies as if it did not exist, so a guessed slug cannot confirm that a private project is there.

The allowlist

Browsers tell the server which site a request comes from. If the board has a list and the site is missing from it, the answer is a 403 with the code origin_not_allowed.

A page outside the list is refused.

An empty list lets every site through, which is how a new board starts.

That default matches the public board itself, which anyone can open from anywhere. Add the first entry and the rule flips. From then on, only the sites on the list can call the API from a browser with your key.

The dashboard's own preview on the Share page is exempt, so restricting the list never breaks the live preview you test with.

A refused call from a site that is not listed
fetch('https://app.votefirst.app/api/v3/projects/your-board', {
  headers: { 'X-API-Key': EMBED_KEY },
})
// 403  { "error": { "code": "origin_not_allowed", "message": "..." } }

Writing entries

Write one entry per line or separate them with commas. A space does not separate entries, because a typed sentence would turn into three entries.

One site on each line, and match it exactly.

Paths, queries and anything after the host are dropped when the list is saved.

An entry without a scheme is read as https. Entries are lowercased and matched exactly, so https://example.com and https://www.example.com are two different entries, and a port is part of the match. The word localhost is accepted for development, and it needs the http scheme and the port you use, as in http://localhost:3000.

A wildcard such as *.example.com covers every subdomain over https and leaves out the bare example.com, so list that one as well. A single asterisk allows everything and defeats the purpose of the list, though it is a quick way to switch it off while you debug.

A typical list
https://example.com
https://www.example.com
*.example.com
http://localhost:3000

What it cannot stop

The list reads the origin that a browser attaches to a request. A phone app, a script and a curl command attach none, so the list never sees them.

A server or an app is not a browser.

It keeps other websites from borrowing your key, and that is all it promises.

The practical meaning is simple. Use the list to stop a copy of your page on a stranger's domain from using your budget, and do not treat it as a lock around the key. Anything that holds the key can use it from outside a browser.

That is another reason the key opens so little. Whatever someone does with it, they can read the public board and take part in it as any visitor can.

The budget

Embed traffic is counted by project and not by visitor: 3,000 reads, 600 writes and 300 new voter identities a minute.

Every visitor shares one budget per board.

Go over a limit and that kind of request is answered with 429 for 60 seconds.

Those figures are far above what a normal site sends, and a launch day will not reach them. A script hammering the key can, and while it runs it uses the allowance of your real visitors. The allowlist keeps a script on another website out, and a rotation removes the key from a script that found its way into your own page.

Each response carries the limit and what remains in its headers, so you can read the budget from the browser's network panel before you rely on it.

Rotating

A new key replaces the old one at once, and requests that still carry the old key are refused as invalid.

Rotate the key when it has been misused.

Only the project owner can rotate it or change the list.

Rotate when you see odd traffic from a site that is not yours, and plan the change. Every page and every app build that holds the old key stops working until it carries the new one. A web page is updated in minutes. A phone app waits for each person to update, so keep the rotation for real misuse.

The dashboard also protects the list from mistakes. A box that holds only typos is refused, and the message says to clear the box if the intent is to allow every origin. The whole list can be up to 4,000 characters.

What the allowlist gives you

No borrowed key

A copy of your page on another domain stops working.

A budget for real visitors

Browser traffic from strangers cannot spend your allowance.

A clear refusal

The error code names the cause, so a typo is easy to find.

Lock the key in four steps

It takes a few minutes and breaks nothing if you test first.

Open Share and Embed

The embed key sits in the Embed key and sign on section.

List your own sites

One per line, with the www variant and your development address.

Test every page

Open each page that holds the board and watch the network panel.

Keep a rotation note

Write down every place the key lives, so a rotation is quick.

How the list reads what you type

Put one site on each line, or split them with commas, and a space does not split them. A line the list cannot read is dropped, and when every line fails, nothing is saved.

The table shows what five typical entries become once they are kept.

What five entries become in the allowlist
What you typeWhat the list keeps
example.comhttps://example.com, with https added
http://localhost:3000http://localhost:3000, with the port kept
https://example.com/pricinghttps://example.com, with the path dropped
*.example.comhttps://*.example.com, which covers every subdomain over https and not example.com itself
ftp://example.comNothing, because only http and https are kept

Auditing the list every quarter

Open the list each quarter and remove every address you no longer use: old staging sites, preview addresses and domains from abandoned launches. A short list is easier to trust.

Test each remaining page once from a private window after you change the list, since a typo refuses a real visitor.

If the key is already copied

An embed key can be copied from page source, so assume that someone has it. The allowlist stops other sites from using it in a browser, and rotating it ends any copy you do not control.

Rotate when something looks misused, then update every page and app build that carries the old key.

What to know before you rely on it

  • The list covers browsers only. Apps, servers and scripts send no origin.
  • Rotating the key breaks every page and app build that still carries the old one.
  • The request budget is shared by all visitors of a board.
  • A single asterisk in the list allows every site.

What developers ask about the embed key

Is the embed key a secret?

No. It is public by design and it opens only what the public board shows. The server key is the secret one.

Which plans have an embed key?

Every plan, Free included. The server key is on Free and on Pro, and Lite has none.

What happens when the list is empty?

Every site is allowed. The list takes effect when it holds its first valid entry.

Does the list cover a mobile app?

No. The list reads the origin that a browser sends, and a native app sends none.

How are subdomains handled?

A wildcard entry such as *.example.com covers subdomains over https. The bare domain needs its own line.

Can the list include localhost?

Yes. Write it with the scheme and the port, for example http://localhost:3000.

What does a refused call return?

A 403 with the code origin_not_allowed.

Who can change the key or the list?

Only the project owner, and only while a plan or trial is active.

What does a paid plan cost?

Lite is $9/mo and Pro is $39/mo, and each starts with a 14 day trial that asks for no card. Free covers one project and 100 votes.

Keep the key where it belongs

The embed key works on every plan, Free included. Add your sites to the list, and a paid trial of 14 days needs no card.