Skip to main content
Endpoint Reference

GET /public/v1/me

Returns the current install context — who you are, which tenant you are scoped to, and which scopes you hold.

Reference

Method: GET Path: /public/v1/me Auth: Bearer marketplace token (any active install, any scopes) Tenant guard: not applicable Required scope: none

Request

curl -s -H "Authorization: Bearer $HB_TOKEN" \
  https://api.hellobooks.com/public/v1/me | jq

Response

{
  "install_id": "65f0a1b2c3d4e5f6a7b8c9d0",
  "client_id": "cli_abc123",
  "app_slug": "your-app-slug",
  "org_ref_id": "65a0...",
  "entity_ref_id": "66b1...",
  "scopes": ["invoices:read", "bills:read"]
}
FieldTypeNotes
install_idstringMongo ObjectId of your AppInstall row. Stable across token rotations.
client_idstringYour marketplace app's client identifier.
app_slugstringThe slug you registered for your app.
org_ref_idstringThe org this install is scoped to. Use as :orgId in tenant URLs.
entity_ref_idstringThe entity this install is scoped to. Use as :entityId in tenant URLs.
scopesstring[]Scopes the user granted at install time.

Recommended usage

Call /me once after every successful install and store the result against your local install record. Don't call it on every request — it's not free, and the values don't change between installs.

Re-call it if you add scopes (the user must re-authorize, which mints a new install context).

    API Reference: GET /public/v1/me