how i can get through api get the user profile properties
Hi Emanuel F., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> π
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To get user profile properties through the Mixpanel API, you can use the Engage API. Here's how you can do it:
1. Use the Engage API endpoint: The Engage API allows you to query user profiles and retrieve their properties.
2. Make a POST request: Send a POST request to the following URL: https://mixpanel.com/api/query/engage
3. Include necessary parameters:
- project_id: Your Mixpanel project ID
- Authorization header: Include your Mixpanel API credentials
4. Specify output properties (optional): You can use the output_properties parameter to specify which profile properties you want to retrieve.
Here's a sample curl request:
```
curl --request POST --url 'https://mixpanel.com/api/query/engage?project_id=1234567' --header 'accept: application/json' --header 'authorization: Basic YOUR_TOKEN' --header 'content-type: application/x-www-form-urlencoded'
LBKSThe response will be a JSON object containing the user profiles and their properties in the `results` key.
For more detailed information and examples, you can refer to the [Mixpanel Developer Reference](https://developer.mixpanel.com/reference/engage-query) and [Mixpanel Documentation on Exporting Profiles](https://docs.mixpanel.com/docs/export-methods#exporting-profiles).
kapa.ai is still learning and improving, please let me know how I did by reacting below.
βΉοΈΒ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
