Domains
Generated from LinkSnap's own code: every route in this area, what it takes and how to call it.
| Method | Path | What it does |
|---|---|---|
GET |
/api/v1/domains |
List custom domains |
POST |
/api/v1/domains |
Add custom domain |
DELETE |
/api/v1/domains/{id} |
Remove domain |
GET |
/api/v1/domains/{id} |
Get single domain |
POST |
/api/v1/domains/{id}/verify |
Verify domain DNS |
List custom domains
GET /api/v1/domains
Example
curl -X GET "https://linksnap.forjio.com/api/v1/domains" \
-H "Authorization: ApiKey lsk_live_<your API key>"
Add custom domain
POST /api/v1/domains
Body
| Field | Type | Required | Notes |
|---|---|---|---|
domain |
any | no |
Example
curl -X POST "https://linksnap.forjio.com/api/v1/domains" \
-H "Authorization: ApiKey lsk_live_<your API key>" \
-H "Content-Type: application/json" \
-d '{"domain":null}'
Remove domain
DELETE /api/v1/domains/{id}
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X DELETE "https://linksnap.forjio.com/api/v1/domains/:id" \
-H "Authorization: ApiKey lsk_live_<your API key>"
Get single domain
GET /api/v1/domains/{id}
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X GET "https://linksnap.forjio.com/api/v1/domains/:id" \
-H "Authorization: ApiKey lsk_live_<your API key>"
Verify domain DNS
POST /api/v1/domains/{id}/verify
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X POST "https://linksnap.forjio.com/api/v1/domains/:id/verify" \
-H "Authorization: ApiKey lsk_live_<your API key>"