The usual answer would be a pointer to the REST API docs. I find it's often more useful to start with the examples (with the rest of the docs available in the tree to the left) - https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.