---
title: "Create Live Agent"
method: POST
path: "/api/v1/user/create_live_agent"
tags: ["User"]
---

# Create Live Agent

`POST /api/v1/user/create_live_agent`

Creates a new user with role agent

Required roles:
- admin

## Request body

- IUserCreate
  - `first_name` string, required
  - `last_name` string, required
  - `email` string, email, required
  - `is_active` boolean
  - `is_superuser` boolean
  - `birthdate` string, date-time, nullable
  - `is_enterprise` boolean, nullable
  - `role_id` string, uuid, nullable
  - `phone` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `address` string, nullable
  - `active_billing_plan_id` string, uuid, nullable
  - `next_billing_plan_id` string, uuid, nullable
  - `stripe_customer_id` string, nullable
  - `stripe_subscription_id` string, nullable
  - `stripe_subscription_status` string, nullable
  - `stripe_has_payment_method` boolean, nullable
  - `stripe_card_brand` string, nullable
  - `stripe_card_last4` string, nullable
  - `is_trial` boolean, nullable
  - `used_trial` boolean, nullable
  - `is_paying` boolean, nullable
  - `stripe_last_payment_date` string, date-time, nullable
  - `billing_updated_at` string, date-time, nullable
  - `last_credits_refresh` string, date-time, nullable
  - `next_credits_refresh` string, date-time, nullable
  - `tutorial_completed_at` string, date-time, nullable
  - `password` string, required

## Response `200`

Successful Response

- IPostResponseBase
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/insighto/apis/ragify.md) · [All operations](https://skmtc.net/insighto/apis/ragify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insighto/ragify/revisions/cdca56191be9/schema)
