Skip to main content
POST
https://sendazi.com/api/v1
/
api-keys
Generate API Key
curl --request POST \
  --url https://sendazi.com/api/v1/api-keys
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://sendazi.com/api/v1/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import requests

url = "https://sendazi.com/api/v1/api-keys"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://sendazi.com/api/v1/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
HttpResponse<String> response = Unirest.post("https://sendazi.com/api/v1/api-keys")
.asString();
const url = 'https://sendazi.com/api/v1/api-keys';
const options = {method: 'POST'};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));
require 'uri'
require 'net/http'

url = URI("https://sendazi.com/api/v1/api-keys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
{
  "success": true,
  "data": {
    "id": 3,
    "uuid": "4b6406ff-e2e4-4343-8879-44374e8552fe",
    "key": "pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "status": "active",
    "last_used_at": null,
    "created_at": "2026-01-15T15:00:00.000000Z"
  },
  "message": "API key generated successfully. Please copy and store it securely."
}
The full API key is only shown once when generated. Make sure to copy and store it securely.
{
  "success": true,
  "data": {
    "id": 3,
    "uuid": "4b6406ff-e2e4-4343-8879-44374e8552fe",
    "key": "pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "status": "active",
    "last_used_at": null,
    "created_at": "2026-01-15T15:00:00.000000Z"
  },
  "message": "API key generated successfully. Please copy and store it securely."
}