Skip to Content
Omnibase

Create a tenant

POST
/api/v1/tenants

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
billing_email*string
name*string
Length1 <= length
type*string

Response Body

OK

application/json
  1. response
message*string
tenant*
token*string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/tenants' \  -H 'Content-Type: application/json' \  -d '{  "billing_email": "billing@test.example.com",  "name": "Test Organization",  "type": "organization"}'
Example Response
{  "message": "string",  "tenant": {    "created_at": "2019-08-24T14:15:22Z",    "enterprise_id": "string",    "enterprise_template": "string",    "id": "string",    "name": "string",    "stripe_customer_id": "string",    "type": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "token": "string"}