Interacting with Secrets through the API?

Hi - I was looking through various docs, and I couldn’t seem to find a way to interact with Secrets using the API - https://app.swaggerhub.com/apis/deviantony/Portainer/1.23.0.

The user guides seem to only suggest that you can interact through the UI - https://membership.portainer.io/configs-and-secrets/.

Is there a method to interact with Secrets using the API that I am missing? Or is this something that is on the roadmap for future versions?

Thank you!

Actually, I figured this out using the network tools in chrome developer. You can do this using

/api/endpoints/1/docker/secrets/create to create, and

/api/endpoints/1/docker/secrets to get