Delete a secret
curl --request DELETE \
--url https://developer.creao.ai/v1/secrets/{name} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/secrets/{name}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true
}Secrets
Delete a secret
Delete an account secret by name.
DELETE
/
v1
/
secrets
/
{name}
Delete a secret
curl --request DELETE \
--url https://developer.creao.ai/v1/secrets/{name} \
--header 'Authorization: Bearer <token>'const url = 'https://developer.creao.ai/v1/secrets/{name}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://developer.creao.ai/v1/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"deleted": true
}Authorizations
bearerAuthapiKeyQuery
Account API key from Developer Console. Keys start with cr_sk_.
Path Parameters
Maximum string length:
255Pattern:
^[A-Z_][A-Z0-9_]*$Response
Secret deleted.
Available options:
true