Get the authenticated account
Use this as the first call to verify organization, environment, and API key metadata.
GET
/accountAuthorization
X-API-KeyAPI key · headerrequiredAPI key in format `sk_*`. Scoped to your partner account; server-side use only.
Responses
200Authenticated account metadata.
api_keyApiKeyMetadatarequiredShow propertiesHide properties
created_atstring<date-time>requiredexpires_atstring<date-time> | nullrequirednamestringrequiredenvironmentstringrequiredAllowed:
livesandboxorganization_namestringrequired401Missing, invalid, expired, or environment-mismatched API key.
codeErrorCoderequiredStable machine-readable error vocabulary for v1.
Allowed:
validation_errorstate_conflictenvironment_mismatchunsupported_destinationinvalid_api_keynot_foundrate_limitedextraobjectrequiredStructured details such as field errors or SKU availability.
messagestringrequiredHuman-readable summary.
429Rate limit exceeded for this API key.
codeErrorCoderequiredStable machine-readable error vocabulary for v1.
Allowed:
validation_errorstate_conflictenvironment_mismatchunsupported_destinationinvalid_api_keynot_foundrate_limitedextraobjectrequiredStructured details such as field errors or SKU availability.
messagestringrequiredHuman-readable summary.
Try it
Server
Authorization
Request
curl -X GET "https://api.vault.stashtab.gg/v1/account" \
-H "X-API-Key: YOUR_API_KEY"const response = await fetch("https://api.vault.stashtab.gg/v1/account", {
method: "GET",
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});Response
{
"api_key": {
"created_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"name": "string"
},
"environment": "live",
"organization_name": "string"
}{
"code": "validation_error",
"extra": {},
"message": "string"
}{
"code": "validation_error",
"extra": {},
"message": "string"
}