Get the authenticated user

Check which account your API token authenticates.

{
    "title": "Get the authenticated user",
    "description": "",
    "method": "POST",
    "baseUrl": "https://app.docuwriter.ai",
    "endpoint": "/api/user",
    "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 returns a plain JSON object: id, name, email, email_verified_at, created_at, updated_at. There is no success or data wrapper on this endpoint. Illustrative JSON example; sample values are fictional. Some optional or additional resource fields may be omitted.",
            "body": "{\n  \"id\": 123,\n  \"name\": \"Alex Example\",\n  \"email\": \"[email protected]\",\n  \"email_verified_at\": \"2026-09-28T10:00:00.000000Z\",\n  \"created_at\": \"2026-09-28T10:00:00.000000Z\",\n  \"updated_at\": \"2026-09-28T10:00:00.000000Z\"\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 account token is required.
  • Use Account and credits for plan and credit details.
  • This endpoint does not modify your profile despite using POST.
  • No name, email or other profile update fields are accepted by this route.

API authentication.

Updated