# Nile Tenants API

**Canonical:** https://apis.io/apis/thenile/thenile-tenants-api/  
**Provider:** Nile — https://apis.io/providers/thenile/  
**Base URL:** https://global.thenile.dev  
**Documentation:** https://www.thenile.dev/docs/api-reference/post-oauth2token

Nile Tenants API is one of 10 APIs that [Nile](https://apis.io/providers/thenile/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 17 JSON Schema definitions. Tagged areas include Tenants. The published artifact set on APIs.io includes an OpenAPI specification and 17 JSON Schemas.

The tenants API from Nile — 7 operation(s) for tenants.

## Operations (14)

| Method | Path | Summary |
|---|---|---|
| GET | `/workspaces/{workspaceSlug}/databases/{databaseName}/tenants/{tenantId}` | Get a tenant |
| PUT | `/workspaces/{workspaceSlug}/databases/{databaseName}/tenants/{tenantId}` | Update a tenant |
| DELETE | `/workspaces/{workspaceSlug}/databases/{databaseName}/tenants/{tenantId}` | Deletes a tenant |
| GET | `/databases/{databaseId}/tenants/{tenantId}` | Get a tenant |
| PUT | `/databases/{databaseId}/tenants/{tenantId}` | Update a tenant |
| DELETE | `/databases/{databaseId}/tenants/{tenantId}` | Deletes a tenant |
| DELETE | `/v2/databases/{database}/me` | delete the current user |
| POST | `/v2/databases/{database}/tenants/{tenantId}/invite` | Invite a user to a tenant |
| PUT | `/v2/databases/{database}/tenants/{tenantId}/invite` | Accepts a tenant invite |
| GET | `/v2/databases/{database}/tenants/{tenantId}/invites` | List pending invites for a tenant |
| PUT | `/v2/databases/{database}/tenants/{tenantId}` | update a tenant |
| DELETE | `/v2/databases/{database}/tenants/{tenantId}` | delete a tenant |
| GET | `/v2/databases/{database}/tenants/{tenantId}` | get a tenant |
| POST | `/v2/databases/{database}/tenants` | creates a tenant |

## Machine-readable artifacts (18)

- **OpenAPI** — https://artifacts.apis.io/thenile/openapi/thenile-tenants-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-apierror-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-create-database-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-get-database-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-dedicated-compute-instance-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-unauthenticated-provision-database-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-workspace-usage-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-oidcprovider-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-user-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-tenant-ssoregistration-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-logical-database-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-oidcrelying-party-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-create-basic-user-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-mfa-setup-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-mfa-disable-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-tenant-user-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-mfa-verify-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/thenile/json-schema/thenile-mfa-verify-response-schema.json

## Other Nile APIs (9)

- [Nile Auth API](https://apis.io/apis/thenile/thenile-auth-api/)
- [Nile Authentication API](https://apis.io/apis/thenile/thenile-authentication-api/)
- [Nile Compute API](https://apis.io/apis/thenile/thenile-compute-api/)
- [Nile Credentials API](https://apis.io/apis/thenile/thenile-credentials-api/)
- [Nile Databases API](https://apis.io/apis/thenile/thenile-databases-api/)
- [Nile Developers API](https://apis.io/apis/thenile/thenile-developers-api/)
- [Nile Internal API](https://apis.io/apis/thenile/thenile-internal-api/)
- [Nile Users API](https://apis.io/apis/thenile/thenile-users-api/)
- [Nile Workspaces API](https://apis.io/apis/thenile/thenile-workspaces-api/)

## Tags

Tenants

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/thenile/thenile-tenants-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/thenile/.
