curl --request DELETE \
--url https://core.cyberun.cloud/api/v1/credentials/{credentialId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Team-ID: <x-team-id>'import requests
url = "https://core.cyberun.cloud/api/v1/credentials/{credentialId}"
headers = {
"X-Team-ID": "<x-team-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Team-ID': '<x-team-id>', Authorization: 'Bearer <token>'}
};
fetch('https://core.cyberun.cloud/api/v1/credentials/{credentialId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.cyberun.cloud/api/v1/credentials/{credentialId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Team-ID: <x-team-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.cyberun.cloud/api/v1/credentials/{credentialId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Team-ID", "<x-team-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://core.cyberun.cloud/api/v1/credentials/{credentialId}")
.header("X-Team-ID", "<x-team-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/credentials/{credentialId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Team-ID"] = '<x-team-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}Revoke a credential
Permanently revokes the credential. Revoked credentials cannot be reactivated. In-flight requests using this credential fail on the next authentication check.
Auth: JWT only (see POST /credentials for the rationale on why
dk- is rejected on credential management).
curl --request DELETE \
--url https://core.cyberun.cloud/api/v1/credentials/{credentialId} \
--header 'Authorization: Bearer <token>' \
--header 'X-Team-ID: <x-team-id>'import requests
url = "https://core.cyberun.cloud/api/v1/credentials/{credentialId}"
headers = {
"X-Team-ID": "<x-team-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Team-ID': '<x-team-id>', Authorization: 'Bearer <token>'}
};
fetch('https://core.cyberun.cloud/api/v1/credentials/{credentialId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.cyberun.cloud/api/v1/credentials/{credentialId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Team-ID: <x-team-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.cyberun.cloud/api/v1/credentials/{credentialId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Team-ID", "<x-team-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://core.cyberun.cloud/api/v1/credentials/{credentialId}")
.header("X-Team-ID", "<x-team-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/credentials/{credentialId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Team-ID"] = '<x-team-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Required on all team-scoped JWT endpoints because a user may belong to multiple teams.
"019abc12-4567-7890-abcd-ef1234567891"
Path Parameters
UUID of the credential row — the id field returned by
POST /credentials (CreateCredentialResponse) or GET /credentials
(CredentialListItem).
This is not the raw secret (the sk- / ak- / dk- string
returned once at creation) and not the key_prefix (the first
12 characters of that secret). Passing either of those produces
a 400; we never accept the secret itself in a URL.
"019abc12-7890-7890-abcd-ef1234567894"
Response
Credential revoked successfully. No content returned.
