Revoke API Key
curl --request DELETE \
--url https://{brand_domain}/api/v1/api-keys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Super-Admin-Email: <x-super-admin-email>'import requests
url = "https://{brand_domain}/api/v1/api-keys/{id}"
headers = {
"X-Super-Admin-Email": "<x-super-admin-email>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'X-Super-Admin-Email': '<x-super-admin-email>',
Authorization: 'Bearer <token>'
}
};
fetch('https://{brand_domain}/api/v1/api-keys/{id}', 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://{brand_domain}/api/v1/api-keys/{id}",
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-Super-Admin-Email: <x-super-admin-email>"
],
]);
$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://{brand_domain}/api/v1/api-keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Super-Admin-Email", "<x-super-admin-email>")
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://{brand_domain}/api/v1/api-keys/{id}")
.header("X-Super-Admin-Email", "<x-super-admin-email>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{brand_domain}/api/v1/api-keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Super-Admin-Email"] = '<x-super-admin-email>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"message": "Key revoked"
}
}{
"success": false,
"error": "Payment not found",
"errors": [
{
"code": "PAYMENT_NOT_FOUND",
"message": "Payment not found",
"field": null
}
],
"request_id": "8f5a2e9b0c7d4e5f"
}{
"success": false,
"error": "Payment not found",
"errors": [
{
"code": "PAYMENT_NOT_FOUND",
"message": "Payment not found",
"field": null
}
],
"request_id": "8f5a2e9b0c7d4e5f"
}Revoke API Key
Revokes an API key, rendering it immediately inactive.
Requires special admin authorization: API key must possess write and admin scopes, and the X-Super-Admin-Email header
must identify an active superadmin.
DELETE
/
api-keys
/
{id}
Revoke API Key
curl --request DELETE \
--url https://{brand_domain}/api/v1/api-keys/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Super-Admin-Email: <x-super-admin-email>'import requests
url = "https://{brand_domain}/api/v1/api-keys/{id}"
headers = {
"X-Super-Admin-Email": "<x-super-admin-email>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'X-Super-Admin-Email': '<x-super-admin-email>',
Authorization: 'Bearer <token>'
}
};
fetch('https://{brand_domain}/api/v1/api-keys/{id}', 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://{brand_domain}/api/v1/api-keys/{id}",
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-Super-Admin-Email: <x-super-admin-email>"
],
]);
$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://{brand_domain}/api/v1/api-keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Super-Admin-Email", "<x-super-admin-email>")
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://{brand_domain}/api/v1/api-keys/{id}")
.header("X-Super-Admin-Email", "<x-super-admin-email>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{brand_domain}/api/v1/api-keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Super-Admin-Email"] = '<x-super-admin-email>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"message": "Key revoked"
}
}{
"success": false,
"error": "Payment not found",
"errors": [
{
"code": "PAYMENT_NOT_FOUND",
"message": "Payment not found",
"field": null
}
],
"request_id": "8f5a2e9b0c7d4e5f"
}{
"success": false,
"error": "Payment not found",
"errors": [
{
"code": "PAYMENT_NOT_FOUND",
"message": "Payment not found",
"field": null
}
],
"request_id": "8f5a2e9b0c7d4e5f"
}Authorizations
Provide the Bearer API Key generated for your brand.
Headers
Email of an active platform super-administrator.
Path Parameters
The integer ID of the API key to revoke.
Last modified on July 12, 2026
Related topics
Laravel SDK - Fluent Payment Integration for PHP AppsGenerate API KeyList API KeysDeveloper Quickstart - Build Your First Payment IntegrationDeveloper Hub - API Keys, Webhooks, and Rate LimitsWas this page helpful?
⌘I