Tarsana docsDashboardMenu

Check a tenant ID

Read · GET /v1/tenant-ids · MCP tool check-tenant-id

Tells you whether a tenant ID is available before you create your tenant. Send the ID you want, or your organisation's name and the ID is made from it. If the ID is taken, alternative suggests one that is free. You need to be signed in with a session.

Roles that can call it: viewer, builder, deployer.

Parameters

NameInRequiredDescription
organisation_namequerynoYour organisation's name, to make the tenant ID from
tenant_idquerynoThe tenant ID you want. If you send it, it is checked instead of one made from the name

Returns

A JSON object with these keys: tenant, available, unavailable_because, explanation, alternative, guarantee, caller_authenticated.

Example request

curl 'https://api.tarsana.io/v1/tenant-ids?organisation_name=Acme&tenant_id=acme' \
  -H "X-Tarsana-Session: $SESSION"

Example response

{
  "tenant": "acme",
  "available": false,
  "unavailable_because": "taken",
  "explanation": "That tenant ID is already taken. Choose another one.",
  "alternative": "acme-2",
  "guarantee": "namespaces are separated, callers are not authenticated",
  "caller_authenticated": false
}

Errors

CodeHTTPWhat it means
invalid_parameter400A value in your request does not have the expected format, for example a submission ID that is not a spec hash. Check the value against the field's description and try again.
unauthenticated401Your request has no credential, or one that Tarsana does not recognise. Sign in with login, or send a valid access token.
forbidden403Your role does not allow this operation. The response names the roles that do; ask for a credential with one of them.
sign_in_not_configured503Signing in with an email link is not available on this Tarsana deployment. Contact Tarsana support.
rate_limited429You sent too many requests in a short time. Wait for the number of seconds in retry_after_seconds, then try again.
surface_fault500Something went wrong on our side. Try again later, and contact Tarsana support if it keeps happening.

View this page as Markdown