Listar API keys del usuario
curl --request GET \
--url https://veripay.datagora.mx/api/keys \
--cookie sb-access-token=import requests
url = "https://veripay.datagora.mx/api/keys"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://veripay.datagora.mx/api/keys', 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"
req, _ := http.NewRequest("GET", 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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;
}{
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prefix": "vk_live_aB3xQ91p",
"per_minute": 60,
"monthly_quota": 1000,
"revoked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}API keys
Listar API keys del usuario
Devuelve las API keys del usuario autenticado vía cookie de Supabase. Esta ruta no acepta x-api-key, está pensada para el dashboard.
GET
/
keys
Listar API keys del usuario
curl --request GET \
--url https://veripay.datagora.mx/api/keys \
--cookie sb-access-token=import requests
url = "https://veripay.datagora.mx/api/keys"
headers = {"cookie": "sb-access-token="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sb-access-token='}};
fetch('https://veripay.datagora.mx/api/keys', 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"
req, _ := http.NewRequest("GET", 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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;
}{
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prefix": "vk_live_aB3xQ91p",
"per_minute": 60,
"monthly_quota": 1000,
"revoked_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}⌘I