Sharing information in a truly secure way is harder than you'd think. You can only guarantee confidentiality with end-to-end encryption. In other words, the information you want to transmit has to be encrypted and decrypted on the client. This means you can't just create a secure server infrastructure and offer a public API - you also need code executed on the client. The good news is, we have you covered.
We just published https://www.npmjs.com/package/scrt-link-core - This package allows you to use scrt.link programmatically - whenever you need to share a secret.