Skip to main content
This quickstart uses a server-side API key. Create and protect one with the authentication guide.
1

Protect the key in your shell

Keep the value out of shell history. Use a local secret manager or a temporary protected environment variable when possible.
2

Confirm your access

The response groups every visible store under its organization:
A standard settings-generated key is already store-scoped. Do not add an organization parameter.Copy the exact organizations[].stores[].url value into store-scoped endpoints.
3

Read the store profile

If an older key from Settings > MCP returns 403 and requires store scope, select the intended store and create a replacement scoped key.

Choose an organization when required

Use organizationId only when the authenticated identity can access multiple organizations and the workload deliberately selects one:
The organization must remain inside the credential’s allowed scope. Omit this parameter for store-scoped keys.

Reuse a safe JavaScript client

bily-api.ts

Browse all endpoints

Open the generated endpoint reference, including GET /context, in the Bily API tab.