Skip to main content
POST
/
api
/
v1
/
user
/
create_live_agent
Create Live Agent
curl --request POST \
  --url 'https://api.example.com/api/v1/user/create_live_agent?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "[email protected]",
  "password": "<string>",
  "is_active": true,
  "is_superuser": false,
  "birthdate": "2023-11-07T05:31:56Z",
  "is_enterprise": false,
  "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phone": "<string>",
  "state": "<string>",
  "country": "<string>",
  "address": "<string>",
  "active_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "next_billing_plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "stripe_customer_id": "<string>",
  "stripe_subscription_id": "<string>",
  "stripe_subscription_status": "<string>",
  "stripe_has_payment_method": false,
  "is_trial": false,
  "used_trial": false,
  "is_paying": false,
  "stripe_last_payment_date": "2023-11-07T05:31:56Z",
  "billing_updated_at": "2023-11-07T05:31:56Z",
  "last_credits_refresh": "2023-11-07T05:31:56Z",
  "next_credits_refresh": "2023-11-07T05:31:56Z"
}
'
{
  "message": "Data created successfully",
  "meta": {},
  "data": "<unknown>"
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Body

application/json
first_name
string
required
last_name
string
required
email
string<email>
required
password
string
required
is_active
boolean
default:true
is_superuser
boolean
default:false
birthdate
string<date-time> | null
is_enterprise
boolean | null
default:false
role_id
string<uuid> | null
phone
string | null
state
string | null
country
string | null
address
string | null
active_billing_plan_id
string<uuid> | null
next_billing_plan_id
string<uuid> | null
stripe_customer_id
string | null
stripe_subscription_id
string | null
stripe_subscription_status
string | null
stripe_has_payment_method
boolean | null
default:false
is_trial
boolean | null
default:false
used_trial
boolean | null
default:false
is_paying
boolean | null
default:false
stripe_last_payment_date
string<date-time> | null
billing_updated_at
string<date-time> | null
last_credits_refresh
string<date-time> | null
next_credits_refresh
string<date-time> | null

Response

Successful Response

message
string | null
default:Data created successfully
meta
Meta · object
data
unknown