1. Projects
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. Projects

Link opens

GET
/v1/projects/{projectId}/analytics
Whether and when the link was opened: totals, last opened time, the 10 latest opens (country, device, browser, OS, referrer) and top countries. Requires a paid plan (Starter or higher); Free returns FREE_TIER_RESTRICTED.

Request

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

Responses

🟢200
application/json
Opens for the project.
Bodyapplication/json

🟠401
🟠403
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://connect.litehost.io/v1/projects//analytics' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "status": "success",
    "data": {
        "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "analyticsEnabled": true,
        "opens": {
            "total": 2,
            "last24h": 1,
            "last7d": 2
        },
        "lastOpenedAt": "2026-09-28T16:20:00.000Z",
        "recentOpens": [
            {
                "at": "2026-09-28T16:20:00.000Z",
                "country": "PE",
                "device": "Desktop",
                "browser": "Chrome",
                "os": "macOS",
                "referrer": null
            }
        ],
        "topCountries": [
            {
                "country": "PE",
                "opens": 2
            }
        ]
    }
}
Modified at 2026-09-28 17:10:55
Previous
Unarchive project
Next
List domains
Built with