Ir al contenido

Crear tenant

POST
/partner/tenants
curl --request POST \
--url https://api.overtaker.online/api/v1/partner/tenants \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "email": "hello@example.com", "bot_name": "example", "plan_id": "starter", "subdomain": "example" }'

Para qué sirve. Da de alta a un cliente nuevo del reseller: crea su espacio aislado, su usuario administrador y le aplica un plan. Es el primer paso del onboarding y el tenant queda asociado a tu cuenta de reseller.

Cuándo usarlo. Al incorporar un cliente nuevo, sea desde tu propio sistema o manualmente.

Notas. Body: name, email (del admin), plan_id y, opcional, bot_name/subdomain. Devuelve una contraseña temporal del admin que se muestra una sola vez — entrégala al cliente.

Media type application/json
PartnerTenantCreate
object
name
required
Name
string
email
required
Email
string format: email
bot_name
Any of:
string
plan_id
Any of:
string
subdomain
Any of:
string

Successful Response

Media type application/json
PartnerTenantResponse
object
tenant_id
required
Tenant Id
string
name
required
Name
string
subdomain
required
Subdomain
string
status
required
Status
string
plan_id
required
Plan Id
string
admin_email
Any of:
string
admin_temp_password
Any of:
string
Example generated
{
"tenant_id": "example",
"name": "example",
"subdomain": "example",
"status": "example",
"plan_id": "example",
"admin_email": "example",
"admin_temp_password": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}