Revocar API key
curl --request DELETE \
--url https://veripay.datagora.mx/api/keys/{id} \
--cookie sb-access-token=import requests
url = "https://veripay.datagora.mx/api/keys/{id}"
headers = {"cookie": "sb-access-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-access-token='}};
fetch('https://veripay.datagora.mx/api/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "sb-access-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://veripay.datagora.mx/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_COOKIE => "sb-access-token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}API keys
Revocar API key
Marca la key como revocada (revoked_at). No la elimina físicamente.
DELETE
/
keys
/
{id}
Revocar API key
curl --request DELETE \
--url https://veripay.datagora.mx/api/keys/{id} \
--cookie sb-access-token=import requests
url = "https://veripay.datagora.mx/api/keys/{id}"
headers = {"cookie": "sb-access-token="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'sb-access-token='}};
fetch('https://veripay.datagora.mx/api/keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "sb-access-token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://veripay.datagora.mx/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_COOKIE => "sb-access-token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}⌘I