Documentation ›
Account & AI › Create AI account
POST
Create AI account
POSThttps://app.sendapp.ai/api/create_accounts
Create a new account/token for a custom AI model.
Parameters
apikey
required
Your API Key.
name
required
Name of the new account (3-255 characters).
greetings_message
optional
Greeting message shown by the AI.
no_info_message
optional
Message shown when no information is found.
Request
curl -X POST 'https://app.sendapp.ai/api/create_accounts' \
-H 'Content-Type: application/json' \
-d '{
"apikey": "YOUR_API_KEY",
"name": "Sales Assistant",
"greetings_message": "Hi! How can I help you?"
}'<?php
$ch = curl_init('https://app.sendapp.ai/api/create_accounts');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'apikey' => 'YOUR_API_KEY',
'name' => 'Sales Assistant',
'greetings_message' => 'Hi! How can I help you?',
]),
]);
echo curl_exec($ch);
curl_close($ch);const res = await fetch('https://app.sendapp.ai/api/create_accounts', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
apikey: 'YOUR_API_KEY',
name: 'Sales Assistant',
greetings_message: 'Hi! How can I help you?'
})
});
console.log(await res.json());Response (200 OK)
{
"status": "success",
"message": "Account token created successfully",
"data": {
"id": 42,
"ids": "a1b2c3d4e5",
"token": "trn_a1b2c3d4e5f6",
"name": "Assistente Vendite",
"greetings_message": "Ciao! Come posso aiutarti?",
"no_info_message": "Mi dispiace, non ho questa informazione.",
"created_at": "2026-07-13 10:00:00"
}
}Error
{
"status": "error",
"message": "You have reached the maximum number of accounts allowed"
}