Has this sandbox been claimed?
curl --request GET \
--url https://api.zinc.com/sandbox/status \
--header 'Authorization: <api-key>'import requests
url = "https://api.zinc.com/sandbox/status"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.zinc.com/sandbox/status', 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.zinc.com/sandbox/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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.zinc.com/sandbox/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zinc.com/sandbox/status")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/sandbox/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"claimed": true,
"hint": "<string>",
"claimed_by_email": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Agent Sandbox
Get Sandbox Status
Check whether the sandbox this key belongs to has been claimed into a real Zinc account yet.
GET
/
sandbox
/
status
Has this sandbox been claimed?
curl --request GET \
--url https://api.zinc.com/sandbox/status \
--header 'Authorization: <api-key>'import requests
url = "https://api.zinc.com/sandbox/status"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.zinc.com/sandbox/status', 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.zinc.com/sandbox/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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.zinc.com/sandbox/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zinc.com/sandbox/status")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/sandbox/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"claimed": true,
"hint": "<string>",
"claimed_by_email": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Reports whether the sandbox behind the calling key has been claimed yet.
An agent that hands its
Every response carries a
claim_url to a human has no other way to learn what happened. This endpoint closes that loop: poll it with your own key.
curl https://api.zinc.com/sandbox/status \
-H "Authorization: Bearer $ZINC_KEY"
Responses
claimed | Case | hint tells you |
|---|---|---|
false | Still provisional | Nobody has claimed it. Re-send the claim_url, or keep waiting. |
false | Ordinary account | This key belongs to a regular account, not a claimed sandbox. Nothing to claim. |
true | Claimed | The sandbox now belongs to a real account; claimed_by_email names it. |
hint in plain language, so an agent can act on the answer without special-casing each shape.
claimed: true is derived from the claim record on the account, not from the account merely being real — otherwise every ordinary account would report as claimed.The response never includes
claim_url. Only the token’s hash is stored, so the URL can’t be reproduced — keep the one from the mint response.Authorizations
Zinc API key (Bearer zn_...)
Headers
Response
Successful Response
Whether this sandbox has been claimed yet.
Lets an agent learn the outcome of a claim it can't see — the thing a device-code grant would give it for free (see issue #825).

