GET /v1/account

Retrieve your account profile, credit balance, and active subscription info.

Request

GET /v1/account

Requires Authorization: Bearer vch_... header. No request body or query parameters.

Response

FieldTypeDescription
user_idstringYour account ID.
emailstringAccount email.
namestring | nullAccount display name.
created_atstring (ISO 8601)When the account was created.
credits_balanceintegerCurrent credit balance.
api_keyobjectid and environment of the key used to authenticate this request.
subscriptionobject | nullActive subscription details (id, plan, status, current_period_end), or null if no active plan.

Example

Request
curl https://api.vouchley.getrevlio.com/v1/account \
  -H "Authorization: Bearer $VOUCHLEY_API_KEY"
Response 200
{
  "user_id": "usr_abc123",
  "email": "dev@acme.com",
  "name": "Alice Smith",
  "created_at": "2026-03-15T10:00:00+00:00",
  "credits_balance": 2065,
  "api_key": {
    "id": "key_xyz789",
    "environment": "live"
  },
  "subscription": {
    "id": "sub_def456",
    "plan": "pro",
    "status": "active",
    "current_period_end": "2026-05-15T00:00:00+00:00"
  }
}