Does anyone know if there is an API for CRAFT 3 where I can authenticate to and query (CRUD) all the elements (channels, etc.) I have created on it?
Thanks.
Does anyone know if there is an API for CRAFT 3 where I can authenticate to and query (CRUD) all the elements (channels, etc.) I have created on it?
Thanks.
You may have a look at the headless documentation which offers a few solutions / ways such as a GraphQL API, REST-API & a JSON API
Currently, neither the Element API plugin nor the native Craft GraphQL implementation supports writes or updates.
It is on the Craft 4.0 backlog to have mutations support in the native GraphQL implementation. https://github.com/craftcms/cms/issues/4835
There is a 3rd party CraftQL plugin that does support mutations.
If you want the ability to write in a REST context, I'd suggest watching this video: https://dotall.com/sessions/how-to-create-a-full-rest-api-with-craft-3