Can you tell me which product you are trying to use the API for? Currently, your post is under the DTM section of this community. DTM does not have an API that can be used to make changes. Once I know which product you're trying to access, I can move your post to the correct section of the community.
I just wanted to ensure your question had the best visibility. Since you've already posted in the AEM forums, I'll just resolve this question here rather than move it. Thanks for stopping by the Activation community.