I’m trying to fetch all the users in a project, but I’m reading the API’s documentation and there isn’t an endpoint related to fetch all the users in an account. Does anyone know if there is something like that? Or is there a way to create an export or report with the API? Thanks!
Hi Luis,
Thanks so much for reaching out
You can export all users within a single project using the /api/export/data.csv endpoint.
https://api.iterable.com/api/docs#export_exportDataCsv
Under “dataType Name” select “user”, for range include “all” and under “onlyFields” add the user fields that you would like to export such as “email” or “userId”.
I hope this helps but please let me know if you have any follow-up questions.
Best,
Alejandra
Thanks a lot, both.
Hi Luis!
Thanks for the update! What range did you use when submitting the API request? Also, do users have a “userId” field in their profile? If this field isn’t set, it could explain why it’s appearing as empty. We can also explore this further in a support ticket, please feel free to submit a ticket to our support team if you’re still experiencing issues with the request
Best,
Alejandra
Hi
Sorry if I’m late to reply, I reach out to the support team, and the problem was more related with the anonymous users. I was trying to filter those, but support team guide me with another solution. But I think your answer it’s the correct one for this topic for future queries if anyone wants to know how to extract users using the API.
Thanks,
Luis Miguel
Reply
Create a new Iterable Plaza community account
Already have an account? Login
Login to the Iterable Plaza Community
Not a customer? Create an account
Log in to Iterable (SSO)
Iterable customers and employees login/create an accountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.