Skip to content
use-forever Docs
Esc
navigateopen⌘Jpreview

Create customer

Creates a customer for the authenticated user.

POST/v1/customers
Authorization
AuthorizationBearer token (JWT) · headerrequired
Request body
requiredapplication/json
namestringrequired
min length 1 · max length 120
phonestringrequired
matches ^\+?[0-9()\s-]{7,20}$
channelsstring[]required
min items 1
Responses
201Customer created successfully.
idstringrequired
namestringrequired
min length 1 · max length 120
phonestringrequired
matches ^\+?[0-9()\s-]{7,20}$
channelsstring[]required
min items 1
Request
curl -X POST "https://api.hackathon.space/v1/customers" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "phone": "string",
  "channels": [
    "telegram"
  ]
}'
Response
{
  "id": "cus_123",
  "name": "Jane Doe",
  "phone": "+60123456789",
  "channels": [
    "telegram",
    "twilio-sms"
  ]
}