Tarsana docsDashboardMenu

See your profile

Read · GET /v1/profile · MCP tool profile

Shows who you are signed in as, the tenants you belong to and your role in each. If you do not have a tenant yet, onboarded is false and the answer suggests an organisation name and a tenant ID for create-tenant, made from your email address. You need to be signed in with a session.

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

Parameters

This operation takes no parameters.

Returns

A JSON object with these keys: login, tenants, memberships, onboarded, organisation_suggestion, tenant_suggestion, guarantee, caller_authenticated.

Example request

curl https://api.tarsana.io/v1/profile \
  -H "X-Tarsana-Session: $SESSION"

Example response

{
  "login": "you@example.com",
  "tenants": [],
  "memberships": [],
  "onboarded": false,
  "organisation_suggestion": "Acme",
  "tenant_suggestion": "acme",
  "guarantee": "namespaces are separated, callers are not authenticated",
  "caller_authenticated": false
}

Errors

CodeHTTPWhat it means
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