1. Sign up and authorize
Choose a plan, enter the account email, agent name, area code, and email prefix, then complete secure checkout. Provisioning and credentials are confirmed by the server.
For a machine-driven checkout, submit the same fields as JSON. Use a backend-issued Stripe price ID, not the displayed plan name.
POST /api/subscribe
Content-Type: application/json
{
"priceId": "<your selected plan's price ID>",
"email": "owner@example.com",
"agentName": "SupportBot",
"areaCode": "941",
"emailPrefix": "supportbot"
}
Response: { "checkoutUrl": "<secure checkout URL>" }
After checkout, the server verifies the returned session at GET /api/subscribe/confirm?session_id=…. A checkout redirect alone is not proof of payment or provisioning.
2. Keep your key private
Use the scoped key returned for your number and mailbox. Keep it in your agent’s secret store; never put it in public code, a URL, or a browser log.
export KLEOSI_API_KEY='your-issued-key'
3. Make your first request
Send a text
curl https://kleosi.ai/api/v1/sms \
-H "Authorization: Bearer $KLEOSI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+19415550123","body":"Your appointment is confirmed."}'
Use a real recipient who has agreed to receive your message. Sending remains subject to carrier activation and account limits.
List calls
curl https://kleosi.ai/api/v1/calls \
-H "Authorization: Bearer $KLEOSI_API_KEY"
Check usage
curl https://kleosi.ai/api/v1/usage \
-H "Authorization: Bearer $KLEOSI_API_KEY"
The usage response includes your billing period, plan, minutes and SMS used and included, and calls. Open usage and credits →
API at a glance
POST/api/v1/callsInitiate a call
GET/api/v1/callsList calls and transcripts
POST/api/v1/smsSend a text
GET/api/v1/smsList messages
POST/api/v1/emailSend an email
GET/api/v1/emailRead mailbox messages
GET/api/v1/usageCheck usage
Human control stays in place
Web actions and agent requests share the same account permissions and server checks. API access does not bypass verification, payment, messaging consent, or usage limits.
Questions about your integration? support@kleosi.ai