curl --request GET \
--url https://api.signuprisk.com/v1/admin/accounts/{accountID} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.signuprisk.com/v1/admin/accounts/{accountID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.signuprisk.com/v1/admin/accounts/{accountID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.signuprisk.com/v1/admin/accounts/{accountID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"account": {
"id": "<string>",
"name": "<string>",
"status": "active",
"account_type": "<string>",
"owner_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"clerk_user_id": "<string>",
"status": "active",
"personal_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"entitlement": {
"plan": "Basic",
"billing_interval": "<string>",
"source": "none",
"reason": "<string>",
"subscription_status": "incomplete",
"stripe_subscription_id": "<string>",
"current_period_start": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"cancel_at_period_end": true,
"grace_until": "2023-11-07T05:31:56Z",
"effective_flag": true,
"effective": true,
"updated_at": "2023-11-07T05:31:56Z"
},
"billing": {
"plan": "<string>",
"billing_interval": "<string>",
"subscription_status": "incomplete",
"checkout_state": "none",
"cancel_at_period_end": true,
"has_stripe_customer": true,
"local": true,
"current_period_start": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"effective_plan": "<string>",
"access_state": "active",
"grace_until": "2023-11-07T05:31:56Z",
"entitlement_reason": "<string>"
},
"usage": {
"plan": "<string>",
"billing_interval": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"window_version": 123,
"requests_used": 123,
"requests_remaining": 123,
"explanations_used": 123,
"explanations_remaining": 123,
"monthly_units_committed": 123,
"rate_limit_per_minute": 123,
"requests_limit": 123,
"explanations_limit": 123
},
"api_key_count": 123,
"manual_grant_warning": true
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}Subject overview (account, user, entitlement, billing, usage)
Single support-subject view: the account, its owning user (when
resolved), the DIRECT-007 entitlement snapshot, billing/usage summaries
(dashboard shapes), the API key count, and the manual-grant warning
flag. Roles: admin, support. Errors: 404 ACCOUNT_NOT_FOUND.
curl --request GET \
--url https://api.signuprisk.com/v1/admin/accounts/{accountID} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.signuprisk.com/v1/admin/accounts/{accountID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.signuprisk.com/v1/admin/accounts/{accountID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.signuprisk.com/v1/admin/accounts/{accountID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"account": {
"id": "<string>",
"name": "<string>",
"status": "active",
"account_type": "<string>",
"owner_reference": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"clerk_user_id": "<string>",
"status": "active",
"personal_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"entitlement": {
"plan": "Basic",
"billing_interval": "<string>",
"source": "none",
"reason": "<string>",
"subscription_status": "incomplete",
"stripe_subscription_id": "<string>",
"current_period_start": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"cancel_at_period_end": true,
"grace_until": "2023-11-07T05:31:56Z",
"effective_flag": true,
"effective": true,
"updated_at": "2023-11-07T05:31:56Z"
},
"billing": {
"plan": "<string>",
"billing_interval": "<string>",
"subscription_status": "incomplete",
"checkout_state": "none",
"cancel_at_period_end": true,
"has_stripe_customer": true,
"local": true,
"current_period_start": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"effective_plan": "<string>",
"access_state": "active",
"grace_until": "2023-11-07T05:31:56Z",
"entitlement_reason": "<string>"
},
"usage": {
"plan": "<string>",
"billing_interval": "<string>",
"window_start": "<string>",
"window_end": "<string>",
"window_version": 123,
"requests_used": 123,
"requests_remaining": 123,
"explanations_used": 123,
"explanations_remaining": 123,
"monthly_units_committed": 123,
"rate_limit_per_minute": 123,
"requests_limit": 123,
"explanations_limit": 123
},
"api_key_count": 123,
"manual_grant_warning": true
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}{
"error": {
"code": "MISSING_API_KEY",
"message": "<string>",
"type": "authentication_error",
"request_id": "<string>",
"retryable": true,
"details": {},
"action": {
"type": "upgrade_plan",
"url": "<string>",
"label": "<string>",
"required_plan": "<string>"
},
"field_errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"retry_after_seconds": 123,
"upgrade_required": true,
"required_plan": "<string>",
"recommended_plan": "<string>"
}
}Authorizations
Clerk dashboard session JWT. Used on dashboard, billing, playground, and admin console routes only:
Authorization: Bearer <Clerk session JWT>
These are human-session credentials, not API keys. The dashboard
frontend must never send authoritative account IDs, plan values, quota
counters, Stripe IDs, or API-key actor fields — the server derives
ownership from the session. Admin console routes additionally require
the custom admin_role claim (admin or support) on the same
verified session JWT; writes require admin.
Path Parameters
Response
Subject overview.
Support subject overview. billing and usage reuse the dashboard
BillingSummary / UsageSummaryResponse shapes computed for the target
account; both are null when unavailable (never partially invented).
Show child attributes
Show child attributes
PII-free user view. It NEVER includes email fields — no address and no hash; the users table stores keyed hashes only and email lookup is resolved server-side.
Show child attributes
Show child attributes
DIRECT-007 entitlement snapshot view. The snapshot — not the Stripe status — is the runtime plan authority.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
True when the current entitlement is a manual grant that a Stripe webhook or reconciler pass may overwrite (DIRECT-007).