API REFERENCE
Check Admin Status
On this page
GET
/api/adminsCheck if the authenticated account is a Recoup admin. An account is considered an admin if it is a member of the Recoup organization. No input parameters required — authentication is performed via the x-api-key or Authorization header.
Authentication
x-api-key in header
bearerAuth bearer
Request
cURL
curl --request GET \
--url 'https://api.recoupable.dev/api/admins' \
--header 'x-api-key: YOUR_API_KEY'Responses
200Admin status retrieved successfully+
application/json
statusstring · enumrequiredStatus of the request
Values: "success"
isAdminbooleanrequiredWhether the authenticated account is a Recoup admin
401Unauthorized - missing or invalid credentials+
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
json
{
"description": "Check if the authenticated account is a Recoup admin. An account is considered an admin if it is a member of the Recoup organization. No input parameters required — authentication is performed via the x-api-key or Authorization header.",
"parameters": [],
"security": [
{
"apiKeyAuth": []
},
{
"bearerAuth": []
}
],
"responses": {
"200": {
"description": "Admin status retrieved successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CheckAdminResponse"
}
}
}
},
"401": {
"description": "Unauthorized - missing or invalid credentials",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountErrorResponse"
}
}
}
}
}
}