Skip to content

Access tokens

An access token is a secret BeanHub shows once. Use it as:

It is not your account password. Revoke it in the UI without changing the password.

  1. Sign in. Open Account SettingsManage Access Tokens, or https://app.beanhub.io/access-tokens/.
  2. Create a token.
  3. Optional name (max 64 characters).
  4. Scope: which books the token may touch.
  5. Leave Grant All Permissions checked for a laptop. Narrow the grants for CI.
  6. Copy the secret. You will not see it again.
Create Access Token form with scope and Grant All Permissions.
Access token list after create.

bh login opens this same grant flow with a short code you must match.

Scope Meaning
All Repositories Every book you own
All Public Repositories Public books only
All Private Repositories Private books only
Selected Repositories The books you pick in the multi-select

If Grant All is off, you pick each area:

Grant Typical use
Git HTTP Readonly clone/fetch, or read and write (push)
API Entries Read or write entries
API Forms Read or submit forms
API Commits Read commits
API Connect Sync Trigger bank sync
API Connect Dump Dump Connect CSVs
API Inbox Dump Dump inbox mail

Git write implies you intend to push. Clone of a private book needs at least Git read.

Terminal window
curl https://api.beanhub.io/v1/repos/USERNAME/REPO/entries \
-H "access-token: YOUR_TOKEN"

That is not Authorization: Bearer. BeanHub’s API uses the access-token header. Live reference: https://api.beanhub.io/redoc.