When an end-user starts a conversation in the Fin Messenger and there is no information about them in the third party we request a new record be created.
Security
BearerAuth
User's email (may not be known at creation time)
Example:"jane.doe@example.com"
attributesobject or null(CustomAttributes)
Attributes associated with the end-user
Example:
{ "plan_type": "enterprise", "signup_date": "2024-01-15", "is_premium": true }
POST
curl -i -X POST \
https://helpdesk.example.com/api/fin/create_user \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Jane Doe",
"email": "jane.doe@example.com",
"object_id": "123456",
"attributes": {
"plan_type": "enterprise",
"signup_date": "2024-01-15",
"is_premium": true
}
}'End-user created successfully
URL to user's avatar/profile picture (displayed in Fin Messenger)
Example:"https://example.com/avatars/jane.jpg"
attributesobject or null(CustomAttributes)
Attributes associated with the end-user
Example:
{ "plan_type": "enterprise", "signup_date": "2024-01-15", "is_premium": true }
Response
- End-user created successfully
- Bad Request
{ "data": { "id": "user_123456", "name": "Jane Doe", "email": "jane.doe@example.com", "photo_url": "https://example.com/avatars/jane.jpg", "user_type": "end_user", "attributes": { … } } }