Last updated 17 days ago
Was this helpful?
Save a secret for data sources/destinations usage
/secrets
curl -L \ --request POST \ --url 'http://api.bytenite.com/v1/auth/secrets' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"secret":{"secretType":"text","accessKey":"text","name":"text","params":{}},"secretKey":"text"}'
{ "ok": true, "requestId": "text", "message": "text", "error": { "code": 1, "message": "text", "description": "text" } }
List available secrets
curl -L \ --url 'http://api.bytenite.com/v1/auth/secrets' \ --header 'Authorization: YOUR_API_KEY'
{ "secrets": [ { "id": "text", "secretType": "text", "expiresAt": "2025-02-21T14:52:53.977Z", "accessKey": "text", "name": "text", "params": {} } ] }
Remove a secret
/secrets/{secretType}//{id}
curl -L \ --request DELETE \ --url 'http://api.bytenite.com/v1/auth/secrets/{secretType}/{id}' \ --header 'Authorization: YOUR_API_KEY'