Tags and domains #
All endpoints need authentication.
Tags #
| Method | URL | Permission |
|---|---|---|
GET | /apiv2/tags | tags:read |
POST | /apiv2/tags | tags:write |
GET | /apiv2/tags/{id} | tags:read |
PATCH | /apiv2/tags/{id} | tags:write |
DELETE | /apiv2/tags/{id} | tags:delete |
Create a tag with name (1 to 100 characters) and optional color (#RRGGBB) and icon. A tag name that already exists answers 409 conflict. PATCH takes only the fields that change. Deleting a tag removes it from all links.
bash
curl -X POST https://api.revolink.link/apiv2/tags \
-H "Authorization: Bearer rvlnk_your_api_key_here" \
-H "X-Workspace-Id: your_workspace_id" \
-H "Content-Type: application/json" \
-d '{ "name": "spring", "color": "#29CC97" }'
Put tags on a link with tagIds when you create or update it.
Domains #
| Method | URL | Permission |
|---|---|---|
GET | /apiv2/domains | domains:read |
POST | /apiv2/domains | domains:write |
GET | /apiv2/domains/{id} | domains:read |
DELETE | /apiv2/domains/{id} | domains:delete |
POST takes { "domain": "go.example.com" }. The domain starts with status: "pending". Create the DNS record described in the verification field of the response, and the status becomes verified. Only then can links use it. Adding a domain the workspace already has returns it with 200; a domain that belongs to another workspace answers 409.
bash
curl -X POST https://api.revolink.link/apiv2/domains \
-H "Authorization: Bearer rvlnk_your_api_key_here" \
-H "X-Workspace-Id: your_workspace_id" \
-H "Content-Type: application/json" \
-d '{ "domain": "go.example.com" }'