ModelKeys
Delete the workspace's own model key for a provider
Removes the key; runs go back to Lusor’s model key. 404 when the
workspace has no key for provider.
Retries: a repeat after success answers 404; the key is gone either way.
DELETE
/
v1
/
workspaces
/
{workspaceId}
/
model-keys
/
{provider}
Delete the workspace's own model key for a provider
curl --request DELETE \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider} \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
Delete the workspace's own model key for a provider
curl --request DELETE \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider} \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/model-keys/{provider}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
