Last updated 1 month ago
Was this helpful?
Save a secret for data sources/destinations usage
/secrets
Your data source's secret key.
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
curl -L \ --request POST \ --url 'http://api.bytenite.com/v1/auth/secrets' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "secret": { "id": "s3-secret", "secretType": "s3", "expiresAt": "2025-12-29T18:02:27.140Z", "accessKey": "AKIAIOSFODNN7EXAMPLE", "params": { "ANY_ADDITIONAL_PROPERTY": "text" }, "name": "My S3 Secret" }, "secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" }'
{ "ok": true, "requestId": "text", "message": "text", "error": { "code": 1, "message": "text", "description": "text" } }
List available secrets
The type of the secret
curl -L \ --url 'http://api.bytenite.com/v1/auth/secrets' \ --header 'Authorization: YOUR_API_KEY'
{ "secrets": [ { "id": "s3-secret", "secretType": "s3", "expiresAt": "2025-12-29T18:02:27.140Z", "accessKey": "AKIAIOSFODNN7EXAMPLE", "params": { "ANY_ADDITIONAL_PROPERTY": "text" }, "name": "My S3 Secret" } ] }
Remove a secret
/secrets/{secretType}//{id}
The ID of the secret
curl -L \ --request DELETE \ --url 'http://api.bytenite.com/v1/auth/secrets/{secretType}/{id}' \ --header 'Authorization: YOUR_API_KEY'