Claim an Anonymous Site
Transfer ownership of an anonymous site to your account, making it permanent. When you publish without an API key, the site is anonymous and expires in 24 hours. The response includes aclaimToken that you can use later to claim the site.
Path Parameters
The slug of the anonymous site to claim.
Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
Authorization | Yes | Bearer sh_live_... — you must be authenticated to claim a site |
Request Body
The claim token from the original anonymous publish response.
Example
Response (200)
- No longer expires
- Appears in your site list
- Can be updated and managed like any other site
Errors
| Status | Code | Reason |
|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API key |
| 404 | NOT_FOUND | Site not found |
| 400 | INVALID_REQUEST | Invalid claim token |
| 400 | INVALID_REQUEST | Site has already been claimed |
| 400 | INVALID_REQUEST | Site has expired |