Crear API key
curl --request POST \
--url https://veripay.datagora.mx/api/keys \
--header 'Content-Type: application/json' \
--cookie sb-access-token= \
--data '
{
"name": "Producción backend",
"env": "live"
}
'import requests
url = "https://veripay.datagora.mx/api/keys"
payload = {
"name": "Producción backend",
"env": "live"
}
headers = {
"cookie": "sb-access-token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'sb-access-token=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Producción backend', env: 'live'})
};
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/keys"
payload := strings.NewReader("{\n \"name\": \"Producción backend\",\n \"env\": \"live\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "sb-access-token=")
req.Header.Add("Content-Type", "application/json")
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Producción backend',
'env' => 'live'
]),
CURLOPT_COOKIE => "sb-access-token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prefix": "vk_live_aB3xQ91p",
"api_key": "vk_live_aB3xQ91p.SXXXXXXXXXXXXXXXXXXXXXX"
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}API keys
Crear API key
Crea una nueva API key. El campo api_key (clave en claro) sólo se devuelve una vez — guárdalo de inmediato.
POST
/
keys
Crear API key
curl --request POST \
--url https://veripay.datagora.mx/api/keys \
--header 'Content-Type: application/json' \
--cookie sb-access-token= \
--data '
{
"name": "Producción backend",
"env": "live"
}
'import requests
url = "https://veripay.datagora.mx/api/keys"
payload = {
"name": "Producción backend",
"env": "live"
}
headers = {
"cookie": "sb-access-token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'sb-access-token=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Producción backend', env: 'live'})
};
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://veripay.datagora.mx/api/keys"
payload := strings.NewReader("{\n \"name\": \"Producción backend\",\n \"env\": \"live\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "sb-access-token=")
req.Header.Add("Content-Type", "application/json")
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Producción backend',
'env' => 'live'
]),
CURLOPT_COOKIE => "sb-access-token=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prefix": "vk_live_aB3xQ91p",
"api_key": "vk_live_aB3xQ91p.SXXXXXXXXXXXXXXXXXXXXXX"
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}{
"error": "INVALID_API_KEY",
"message": "API key inválida",
"details": {}
}Authorizations
Sesión de Supabase emitida al iniciar sesión en el dashboard.
Body
application/json
⌘I