1. User
Litehost Connect API
  • System
    • Health check
      GET
    • API info
      GET
  • User
    • Get current user
      GET
  • Projects
    • List projects
      GET
    • Create project
      POST
    • Get project
      GET
    • Push new version
      PUT
    • Update project settings
      PATCH
    • Delete project
      DELETE
    • Get deployment history
      GET
    • Toggle archive
      POST
  • Domains
    • List domains
      GET
    • Get domain
      GET
  • Workspaces
    • List workspaces
      GET
    • Create workspace
      POST
    • Rename workspace
      PATCH
    • Delete workspace
      DELETE
  • Schemas
    • Project
    • Deployment
    • Domain
    • DomainDetail
    • WorkspaceSummary
    • ErrorResponse
    • SuccessResponse
  1. User

Get current user

GET
/v1/user
Returns the authenticated user's email, plan tier, limits, and current quota usage. Quota only counts active (non-archived) projects. Archiving a project frees up both project slots and storage.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or

Responses

🟢200
application/json
User info with plan and quota
Body

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://connect.litehost.io/v1/user' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "status": "success",
    "data": {
        "email": "user@example.com",
        "plan": {
            "tier": "creator",
            "limits": {
                "maxProjects": 10,
                "maxStorageBytes": 2147483648,
                "maxFilesPerProject": 200,
                "maxVisitorsPerMonth": 100000
            }
        },
        "quota": {
            "projects": {
                "used": 3,
                "limit": 10,
                "unlimited": false
            },
            "storage": {
                "usedBytes": 52428800,
                "limitBytes": 2147483648,
                "unlimited": false
            }
        }
    }
}
Modified at 2026-04-01 05:58:58
Previous
API info
Next
List projects
Built with