Account

Get your account information including username, credit balance, and subscription status.

Endpoint

GET /api/v1/account

Authentication

Requires a valid API key in the Authorization header.

Authorization: Bearer bw_your_api_key_here

Request

No request body required.

Example Request

curl https://betterwaifu.com/api/v1/account \
  -H "Authorization: Bearer bw_your_api_key_here"

Response

Success Response (200)

{
  "username": "your_username",
  "credits": 150,
  "subscription": {
    "status": "active",
    "plan": "pro",
    "endDate": "2026-04-30T00:00:00.000Z"
  }
}

Response Fields

FieldTypeDescription
usernamestringYour BetterWaifu username
creditsnumberCurrent credit balance
subscriptionobject | nullSubscription details (null if no subscription)
subscription.statusstringSubscription status (e.g., "active", "canceled")
subscription.planstringSubscription plan name
subscription.endDatestringISO 8601 date when subscription ends

Error Responses

401 Unauthorized

{
  "error": "Invalid or missing API key"
}

404 Not Found

{
  "error": "User not found"
}