Create or update business
https://whatsapp.paaltech.org/api/v1/businesses
Token ability:
businesses.write
ยท Authentication
Creates the business, or updates it when the external_id already exists. Call it when
a customer signs up and whenever their name or contact details change. Safe to repeat.
Body parameters
external_id
string
required
Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.
name
string
required
Max 255 characters.
email
string | null
Max 255 characters. Format email.
phone
string | null
Max 32 characters.
timezone
string
IANA time zone (default Africa/Accra), used for quiet hours.
Example Africa/Accra.
quiet_hours
object | null
Non-urgent business-initiated messages wait until the end (local time of the contact, else the business). null switches them off.
start
string
quiet_hours.start
Pattern ^[0-2][0-9]:[0-5][0-9]$. Example 22:00.
end
string
quiet_hours.end
Pattern ^[0-2][0-9]:[0-5][0-9]$. Example 06:00.
retention
object | null
How long PaalChat keeps message content, notes and media files for this business (7-3650 days; null = the default, 365).
message_content_days
integer
retention.message_content_days
Responses
Updated - the external_id already existed.
Created.
unauthenticated - missing, invalid, revoked or expired token
missing_ability, product_suspended or product_token_required
validation_failed - fields are invalid; see errors.
rate_limited - over 300 requests/minute for this product
Errors always look like {"error": {"code", "message"}} - see Errors and status codes.