Authorization: Bearer ********************
{
"business_id": "550e8400-e29b-41d4-a716-446655440000",
"platform_type": "avocado",
"platform_id": "1234567890",
"role": "admin",
"profile_name": "johndoe",
"display_name": "John Doe",
"profile_image_url": "https://example.com/profile.jpg"
}
curl --location --request POST 'https://api.mottasl.ai/v1/app/user.new.session?host_id=xyz' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"business_id": "550e8400-e29b-41d4-a716-446655440000",
"platform_type": "avocado",
"platform_id": "1234567890",
"role": "admin",
"profile_name": "johndoe",
"display_name": "John Doe",
"profile_image_url": "https://example.com/profile.jpg"
}'
{
"headers": {
"Authorization": "Bearer example-jwt-token",
"x-hasura-business-id": "550e8400-e29b-41d4-a716-446655440000",
"x-hasura-user-id": "12345",
"x-host-id": "67890"
},
"user_details": {
"id": "12345",
"name": "John Doe",
"display_name": "John",
"email": "johndoe@example.com",
"image": "https://example.com/profile.jpg",
"language": "en",
"role": "admin"
},
"channels": [
"WhatsApp"
],
"billing_source": "Stripe",
"success": true
}