Skip to main content

Get Site Details

Returns full details about a specific site, including the complete file list.
GET /api/v1/publish/:slug

Path Parameters

slug
string
required
The site slug (e.g., bright-canvas-a7k2).

Headers

HeaderRequiredDescription
AuthorizationYesBearer sl_live_...

Example

curl -X GET https://supalink.dev/api/v1/publish/bright-canvas-a7k2 \
  -H "Authorization: Bearer sl_live_your_key_here"

Response (200)

{
  "slug": "bright-canvas-a7k2",
  "siteUrl": "https://bright-canvas-a7k2.supalink.dev/",
  "status": "active",
  "versionId": "01jm4abc123def456",
  "title": "My Project",
  "description": "A cool project",
  "ogImagePath": "og.png",
  "hasPassword": false,
  "createdAt": "2026-03-19T20:37:48.537Z",
  "updatedAt": "2026-03-19T20:50:57.655Z",
  "expiresAt": null,
  "files": [
    {
      "path": "index.html",
      "size": 1024,
      "contentType": "text/html",
      "hash": "a1b2c3d4e5f6..."
    },
    {
      "path": "style.css",
      "size": 512,
      "contentType": "text/css",
      "hash": "f6e5d4c3b2a1..."
    }
  ]
}

Errors

StatusCodeReason
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDSite not found or not owned by this user