Get account and credit information

Read account identity and current credit/subscription indicators.

{
    "title": "Get account and credit information",
    "description": "",
    "method": "GET",
    "baseUrl": "https://app.docuwriter.ai",
    "endpoint": "/api/user-info",
    "headers": [
        {
            "key": "Authorization",
            "value": "Bearer YOUR_API_TOKEN",
            "type": "string",
            "required": true
        },
        {
            "key": "Accept",
            "value": "application/json",
            "type": "string",
            "required": true
        }
    ],
    "queryParams": [],
    "pathParams": [],
    "bodyType": "none",
    "requestBody": "",
    "formData": [],
    "rawBody": "",
    "responses": {
        "200": {
            "description": "HTTP 200: success: true, with data.id, name, email, remaining_credits, subscription_status, trial_ends_at, is_on_trial, and team_role. Subscription fields may be null. Illustrative JSON example; sample values are fictional. Some optional or additional resource fields may be omitted.",
            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": 123,\n    \"name\": \"Alex Example\",\n    \"email\": \"[email protected]\",\n    \"remaining_credits\": 100,\n    \"subscription_status\": \"active\",\n    \"trial_ends_at\": null,\n    \"is_on_trial\": false,\n    \"team_role\": null\n  }\n}"
        },
        "401": {
            "description": "Missing or invalid account API token.Missing or invalid account API token. Example JSON response.",
            "body": "{\n  \"message\": \"Unauthenticated.\"\n}"
        }
    }
}

Usage notes

  • A valid token is required.
  • A credit count does not guarantee that every generator or feature is available; each operation evaluates its own entitlement.
  • Treat this as a current snapshot, not a reservation of credits.

API authentication.

Updated