We have additional moderation and checking to do when a user adds a post to a community. Thus we ideally want to create the post in amity through our server-side API once validation has succeeded.
Though there isn’t anything at https://docs.amity.co/ about your API we did find another community post pointing to the swagger docs for the Amity API at Swagger UI.
Is the above link the correct location for the API docs and if so, are they the latest?
Are we meant to be using the API directly?
from what we can gather, we need to create a user token first before being able to POST a post. Is that correct?
Straight to your questions
yes, the link is up to date.
no, you’re not supposed to call these endpoints on your own. the main reason being it’s our “consumer” api.
the token you’d generate would be for one of your users, hence the answer in #2.
For administration of posts you’d need to do with from our console (asc.amity.co).
Let me know if that helps,
In case anyone reads this in the future, the swagger docs are mentioned at https://docs.amity.co/console/api-reference/api-usage . You can find the swagger docs at Swagger UI