Skip to main content

API key

Every request to the TenantCore API must include your API key in the Authorization header:
Authorization: Bearer tc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your key is available at app.tenantcore.io/api. Reveal it, copy it, and store it in a secure location — treat it exactly like a password.

Example request

curl https://api.tenantcore.io/v1/tenants \
  -H "Authorization: Bearer tc_live_your_key_here" \
  -H "Accept: application/json"

Key format

All TenantCore API keys follow this format:
tc_live_<48 hex characters>
Keys that do not match this format will be rejected with 401 Unauthorized.

Plan scoping

Your API key is tied to your active API plan. Two things are enforced on every authenticated request:
  1. Plan check — if your API plan has lapsed or been cancelled, all requests return 402 Payment Required
  2. Tenant ceiling — write operations that would exceed your plan’s tenant limit return 402 Payment Required
PlanTenant ceiling
API Starter25 tenants
API Growth50 tenants
API Scale100 tenants

Rotating your key

You can rotate your key at any time from the API page in the app. The old key is invalidated immediately — update all integrations before rotating. You can also rotate via the API itself (authenticated with your current key):
curl -X POST "https://api.tenantcore.io/api-key/rotate?user_email=you@example.com" \
  -H "Accept: application/json"

Error responses

StatusCodeMeaning
401invalid_auth_headerAuthorization header missing or malformed
401missing_api_keyBearer token is empty
401invalid_api_keyKey not found or does not exist
402no_api_planNo active API plan on this account
402tenant_limit_reachedWrite operation would exceed plan ceiling