Skip to content

Tenant invalid

The tenant slug on the register request resolves to no known tenant.

  • On POST /v1/agent/register, the requested tenant slug (defaulting to public when omitted) matches no row in the tenant table.
  • The agent is granted exactly one tenant membership at registration, so an unresolvable tenant aborts the whole registration.
  • Pass a tenant slug that exists in this deployment, or omit the field to accept the default public tenant.
  • If you believe the tenant should exist, an operator must seed it first.
  • Raised by: packages/identity/src/service/register.ts - register (tenant resolution).
  • Guard: if (!tenantRow) throw new RegisterError('tenant_invalid', \unknown tenant: ${tenantSlug}`); mapped to IDENTITY_ERR.tenant_invalid(422) inpackages/identity/src/router/register.ts`.
{
"type": "https://citizenry.id/errors/ERR-P01-IDT-2003",
"title": "Unprocessable",
"status": 422,
"code": "ERR-P01-IDT-2003",
"message": "unknown tenant: staging",
"method": "POST",
"instance": "/v1/agent/register",
"request_url": "https://api.citizenry.id/v1/agent/register",
"timestamp": "2026-05-17T07:00:00.000Z"
}
  • 0.1.0 - introduced.