---
title: "Get current tenant"
method: GET
path: "/tenants/current"
tags: ["Tenant"]
---

# Get current tenant

`GET /tenants/current`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/tenants/current`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/tenants/current/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the tenant the current user belongs to.

## Query parameters

- `cookie_name` string, nullable

## Response `200`

Successful Response

- TenantOut
  - `id` integer, required: Unique identifier of the tenant.
  - `created_at` string, date-time, required: UTC timestamp when the tenant was created.
  - `creator_user_id` integer, nullable: ID of the user who created the tenant, if known.
  - `name` string, required: Internal name of the tenant.
  - `slug` string, required: URL-safe unique identifier for the tenant.
  - `domain` string, nullable: Primary email/web domain associated with the tenant.
  - `parent_tenant_id` integer, nullable: ID of the parent tenant, when this is a child tenant.
  - `subtenants_enabled` boolean, required: Whether this tenant may create child tenants.
  - `timezone` string, required: Default IANA timezone for the tenant.
  - `locale` string, required: Default locale for the tenant.
  - `tarif_id` integer, nullable: ID of the tariff currently assigned to the tenant.
  - `max_users` integer, nullable: Maximum number of users allowed in the tenant.
  - `max_projects` integer, nullable: Maximum number of projects allowed in the tenant.
  - `licenses` integer, nullable: Number of seats/licenses for the tenant.
  - `display_name` string, nullable: Human-friendly display name shown in the UI.
  - `motto` string, nullable: Short tagline shown in the tenant's UI.
  - `logo_url` string, nullable: URL of the tenant's primary logo.
  - `square_logo_url` string, nullable: URL of the tenant's square logo variant.
  - `favicon_url` string, nullable: URL of the tenant's favicon.
  - `chat_square_logo_url` string, nullable: URL of the square logo shown in the chat UI.
  - `primary_color` string, nullable: Primary brand color (hex).
  - `secondary_color` string, nullable: Secondary brand color (hex).
  - `theme` string, nullable: Name of the UI theme applied.
  - `storage_limit_gb` integer, nullable: Storage limit for the tenant, in gigabytes.
  - `api_rate_limit` integer, nullable: API request rate limit for the tenant.
  - `state` string, nullable: Lifecycle state of the tenant.
  - `upstream_tenant_id` string, nullable: UUID of the upstream identity-provider tenant.
  - `upstream_oidc_issuer` string, nullable: OIDC issuer URL of the upstream identity provider.

## Other responses

- `401`: Missing or invalid authentication.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
