Thank you for that ,I have another question I want to get all my communities that I create them or joined them ?
and How can Know that I already admin or moderator in this community or not and How can know if I joined this community or Not ?
To verify whether you created the community, you can utilize this API: Amity API. From its response, you can determine if you’re an admin or a moderator based on the permissions.
To check if you’re a member or have joined, you can use this query to fetch communities based on available filters: Amity API. Apply ‘filter=member’ to do so.
So How can know the file for every community and the users for every community ?
I see that the API give me every users for the all communities and every files for all communities so how can specify it
and I want when I create community to invite users , so the users is already added or not and how can make it and send to this user that he added? @SocialPlus_Support
Unfortunately, there isn’t a comprehensive API to fetch all files across all communities. Files within posts can only be accessed by querying posts using this API: Amity API, where you can filter for files with dataTypes = file . Therefore, you may need to query files per community and then aggregate them later.
Communities undergo soft deletion. When querying communities here, you can filter out the deleted ones using the isDeleted filter.
The invitation feature is currently unavailable in our product. However, to add users to communities, you can utilize this API: Community Users API.
Regarding deleted communities, as previously mentioned, the delete action is soft-deleted, meaning all data remains accessible. You can use filters to exclude it, ensuring it doesn’t affect operations.