Is there an API for the "Custom user properties"?

Hi there, i am developing a serverless custom app for freshchat, and i wanted to know if there is an API to add values on the custom user properties field.

That is the field.

Is there a way to use this field?

Thanks!

Hey @Lucas_de_Lagos_Pando.

Yes, you can use the User endpoint.
On post or put, you can pass an array of properties, take a look.

curl -X POST \ https://api.freshchat.com/v2/users \ -H ‘Authorization: Bearer eyJhbGciOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxImNsa’ \ -H ‘Content-Type: application/json’ \ -d ‘{ “email”: “abc@example.com”, “avatar”: { “url”: “https://web.freshchat.com/img/johndoe.png” }, “phone”: “123456789”, “properties”: [ { “name”: “orderId”, “value”: “#1242” } ], “first_name”: “ABC”, “last_name”: “XYZ” }’

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.