> ## Documentation Index
> Fetch the complete documentation index at: https://docs.urban-things.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Tenant

## Overview

Create a new tenant (organization). The authenticated user will automatically be added as an ADMIN of the new tenant.

## Authorization

* User must be authenticated with a valid Bearer token

## Automatic Admin Assignment

When you create a tenant, you are automatically assigned as an ADMIN, giving you full control over the organization.

## Example Usage

```bash theme={null}
curl -X POST \
  https://faisalshop.mvp-apps.ae/api/v2/admin/tenants \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "My New Store"
  }'
```

```javascript theme={null}
await axios.post(
  '/api/v2/admin/tenants',
  {
    name: 'My New Store'
  },
  {
    headers: {
      Authorization: `Bearer ${token}`
    }
  }
);
```

## Next Steps

After creating a tenant:

1. Add team members using the team member endpoints
2. Create categories for your products
3. Add products to your catalog
4. Configure webhooks for integrations


## OpenAPI

````yaml POST /api/v2/admin/tenants
openapi: 3.1.0
info:
  title: Urban Things API
  description: Multi-tenant e-commerce platform API
  version: 2.0.0
  contact:
    email: info@faisalkc.com
servers:
  - url: https://faisalshop.mvp-apps.ae
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /api/v2/admin/tenants:
    post:
      tags:
        - Tenants
      summary: Create new tenant
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  example: My Store
      responses:
        '201':
          description: Tenant created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tenant'
components:
  schemas:
    Tenant:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````