Add Custom Attributes
POST https://api.botsi.com/v2/custom-attributesCustom attributes enrich a Profile with metadata. Provide as much as possible for better results with Botsi AI Pricing Models.
Request body#
curl -X POST "https://api.botsi.com/v2/custom-attributes" \
-H "Authorization: $BOTSI_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"profileId": "0072102a-c00c-4ea5-9271-1b6e975f2d63",
"custom": [
{ "key": "user_level", "value": "premium" },
{ "key": "subscription_type", "value": "annual" },
{ "key": "referral_source", "value": "facebook" }
]
}'Errors#
Response#
{
"ok": true,
"data": [
{ "id": "abc123", "key": "user_level", "value": "premium" },
{ "id": "def456", "key": "subscription_type", "value": "annual" },
{ "id": "ghi789", "key": "referral_source", "value": "facebook" }
]
}