Create a sandbox
curl --request POST \
--url https://api.useplinth.com/sandbox/createimport requests
url = "https://api.useplinth.com/sandbox/create"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.useplinth.com/sandbox/create', 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://api.useplinth.com/sandbox/create",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useplinth.com/sandbox/create"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.useplinth.com/sandbox/create")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useplinth.com/sandbox/create")
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{
"object": "sandbox",
"tenant_id": "ten_01JXYZ...",
"api_key": "sk_test_a1b2c3d4e5f6...",
"expires_at": "2026-06-19T12:00:00Z",
"plans": [
{
"id": "pln_01JAA...",
"name": "Starter",
"amount_minor": "200000",
"currency": "NGN",
"interval": "month"
},
{
"id": "pln_01JAB...",
"name": "Pro",
"amount_minor": "500000",
"currency": "NGN",
"interval": "month"
},
{
"id": "pln_01JAC...",
"name": "Max",
"amount_minor": "1200000",
"currency": "NGN",
"interval": "month"
}
],
"customer": {
"id": "cus_01JAD...",
"name": "Sandbox Customer",
"email": "customer@sandbox.ng"
}
}Sandbox
Create a sandbox
Provisions an isolated sandbox tenant pre-seeded with three plans (Starter, Pro, Max) and one test customer. Returns a private API key. No authentication required. The sandbox expires after 24 hours.
POST
/
sandbox
/
create
Create a sandbox
curl --request POST \
--url https://api.useplinth.com/sandbox/createimport requests
url = "https://api.useplinth.com/sandbox/create"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.useplinth.com/sandbox/create', 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://api.useplinth.com/sandbox/create",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useplinth.com/sandbox/create"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.useplinth.com/sandbox/create")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useplinth.com/sandbox/create")
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{
"object": "sandbox",
"tenant_id": "ten_01JXYZ...",
"api_key": "sk_test_a1b2c3d4e5f6...",
"expires_at": "2026-06-19T12:00:00Z",
"plans": [
{
"id": "pln_01JAA...",
"name": "Starter",
"amount_minor": "200000",
"currency": "NGN",
"interval": "month"
},
{
"id": "pln_01JAB...",
"name": "Pro",
"amount_minor": "500000",
"currency": "NGN",
"interval": "month"
},
{
"id": "pln_01JAC...",
"name": "Max",
"amount_minor": "1200000",
"currency": "NGN",
"interval": "month"
}
],
"customer": {
"id": "cus_01JAD...",
"name": "Sandbox Customer",
"email": "customer@sandbox.ng"
}
}Response
201 - application/json
Sandbox created
Available options:
sandbox Example:
"ten_01JXYZ..."
Your private API key. Store it — it cannot be retrieved again.
Example:
"sk_test_a1b2c3d4e5f6..."
Sandbox tenants are automatically deleted after 24 hours.
Show child attributes
Show child attributes
Show child attributes
Show child attributes