---
title: "Start a new tenant session"
method: POST
path: "/tenant/session"
---

# Start a new tenant session

`POST /tenant/session`

## Request

- Base URL: `https://api.drymerge.com`
- URL: `https://api.drymerge.com/tenant/session`
- Auth: HTTP bearer

Creates a new tenant session and returns a session key.

## Request body

- StartTenantSessionEndpointApiArgs
  - `public_key` string: Your organization's public key.
  - `tenant_id` string, required: The unique identifier of the tenant.
  - `tenant_metadata` Metadata: Arbitrary metadata about the tenant as a key-value store, where each value can be of any type.

## Response `200`

Successful response

- StartTenantSessionEndpointApiResponse
  - `session_key` string: The session key for the new tenant session.

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/drymerge/apis/tenant-session-api.md) - [All operations](https://skmtc.dev/drymerge/apis/tenant-session-api/llms.txt) - [OpenAPI document](https://skmtc.dev/drymerge/apis/tenant-session-api/revisions/b161aa26c15a?raw)
