1. Authentication
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
    • Archive project
      POST
    • Unarchive project
      POST
  • Domains
    • List domains
      GET
    • Get domain
      GET
  • Workspaces
    • List workspaces
      GET
    • Create workspace
      POST
    • Rename workspace
      PATCH
    • Delete workspace
      DELETE
  • Authentication
    • Request OTP code
      POST
    • Verify OTP and get API key
      POST
  • Schemas
    • Project
    • Deployment
    • Domain
    • DomainDetail
    • WorkspaceSummary
    • ErrorResponse
    • SuccessResponse
  1. Authentication

Request OTP code

POST
/v1/auth/otp/request
Sends a 6-digit one-time password to the provided email address. Use this as the first step of the OTP sign-in flow — no existing account or dashboard access is required.
Rate limits: 3 requests per email per hour, 10 requests per IP per hour.
The code is valid for 10 minutes. Once consumed by POST /v1/auth/otp/verify it cannot be reused.

Request

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

Examples

Responses

🟢200
application/json
Code sent. The response is identical whether or not the email corresponds to an existing account — this prevents account enumeration.
Body

🟠400
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://connect.litehost.io/v1/auth/otp/request' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "you@example.com"
}'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "Verification code sent. Check your email."
}
Modified at 2026-04-03 00:38:55
Previous
Delete workspace
Next
Verify OTP and get API key
Built with