1. Authentication
Litehost Connect API
  • System
    • Health check
      GET
    • API info
      GET
  • Authentication
    • Request OTP code
      POST
    • Verify OTP and get API key
      POST
    • Check the current API key
      GET
  • User
    • Get current user
      GET
  • Projects
    • List projects
      GET
    • Create project
      POST
    • Create temporary project
      POST
    • Claim anonymous project
      POST
    • Get project
      GET
    • Push new version
      PUT
    • Update project settings
      PATCH
    • Delete project
      DELETE
    • Get deployment history
      GET
    • Archive project
      POST
    • Unarchive project
      POST
    • Link opens
      GET
  • 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
    • FreeTierRestricted
  1. Authentication

Check the current API key

GET
/v1/auth/session
Returns who the key belongs to, the plan, and when the key expires. No side effects — call it at the start of a session to decide whether a saved key still works before ever signing in again.

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
The key works.
Bodyapplication/json

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://connect.litehost.io/v1/auth/session' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "status": "success",
    "data": {
        "email": "you@example.com",
        "plan": "pro",
        "apiKey": {
            "expiresAt": "2026-12-27T12:00:00.000Z",
            "renewsWhileInUse": true
        }
    }
}
Modified at 2026-09-28 17:10:55
Previous
Verify OTP and get API key
Next
Get current user
Built with