API REFERENCE
List Account Sandboxes (Admin)
On this page
/api/admins/sandboxesReturns a list of all accounts and their sandbox usage statistics. Each item includes the account email, total number of sandboxes created, and the timestamp of the most recently created sandbox. Requires the authenticated account to be a Recoup admin. Authentication via x-api-key or Authorization Bearer token.
Authentication
x-api-key in header
bearerAuth bearer
Request
curl --request GET \
--url 'https://api.recoupable.dev/api/admins/sandboxes' \
--header 'x-api-key: YOUR_API_KEY'Responses
200Account sandbox statistics retrieved successfully+
application/json
statusstring · enumrequiredStatus of the request
Values: "success", "error"
accountsarray<AccountSandboxRow>requiredList of accounts with their sandbox statistics, ordered by most recently active first
Item properties for accounts
account_idstringrequiredThe unique identifier of the account
format: uuid
total_sandboxesintegerrequiredTotal number of sandboxes created for this account
last_created_atstringrequiredISO 8601 timestamp of the most recently created sandbox for this account
format: date-time
account_emailstringnullableThe email address of the account. Null if the account has no email set.
401Unauthorized - missing or invalid credentials+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
403Forbidden - authenticated account is not a Recoup admin+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
500Internal server error+
application/json
statusstring · enumrequiredStatus of the request
Values: "error"
messagestringrequiredError message describing what went wrong
Full specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download accounts.jsonView operation source
{
"description": "Returns a list of all accounts and their sandbox usage statistics. Each item includes the account email, total number of sandboxes created, and the timestamp of the most recently created sandbox. Requires the authenticated account to be a Recoup admin. Authentication via x-api-key or Authorization Bearer token.",
"parameters": [],
"security": [
{
"apiKeyAuth": []
},
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Account sandbox statistics retrieved successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AdminSandboxesResponse"
}
}
}
},
"401": {
"description": "Unauthorized - missing or invalid credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountErrorResponse"
}
}
}
},
"403": {
"description": "Forbidden - authenticated account is not a Recoup admin",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountErrorResponse"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountErrorResponse"
}
}
}
}
}
}