Links API
Links endpoints exposed by the Devotel CPaaS API Base path:/api/v1/links
Endpoint count: 12
List short links
GET /api/v1/links/string
Opaque cursor for the next page (from previous response meta.pagination.cursor)
integer
Number of items per page (1–200, default 25)
string
Filter links by the campaign they were attributed to.
Get link click stats
GET /api/v1/links/{id}/statsstring
required
Short link identifier.
Get link insights
GET /api/v1/links/insightsinteger
Trailing window in days to aggregate clicks over (1–90, default 7).
integer
Number of top links to return ranked by clicks (1–50, default 10).
string
Restrict insights to links attributed to this campaign.
List landing pages
GET /api/v1/links/landing-pagesstring (enum: draft|published|archived)
Filter by lifecycle status.
string
Opaque cursor for the next page (from previous response meta.pagination.cursor).
integer
Number of items per page (default 25; silently capped at 200).
Get a landing page
GET /api/v1/links/landing-pages/{id}string
required
Landing page identifier.
Get landing page analytics
GET /api/v1/links/landing-pages/{id}/analyticsstring
required
Landing page identifier.
integer
Max rows per breakdown (by campaign / by message), 1–50, default 10.
Create short link
POST /api/v1/links/string
required
Destination URL the short link redirects to. Must be a valid absolute URL.
string
Optional campaign to attribute clicks to for analytics roll-ups.
Create a landing page
POST /api/v1/links/landing-pagescontent is the builder block list, re-validated in depth by the service. The page starts in draft and only mints a trackable short URL once published.
string
required
Human-readable page title.
string
Optional URL slug. Auto-derived from the title when omitted; unique per tenant.
any
Builder block list (page structure). Validated in depth by the service.
string
Optional campaign to attribute visits/conversions to.
Publish a landing page
POST /api/v1/links/landing-pages/{id}/publishpublished and returns the page with short_url populated.
string
required
Landing page identifier.
Update a landing page
PATCH /api/v1/links/landing-pages/{id}content is re-validated in depth when present.
string
required
Landing page identifier.
string
Human-readable page title.
any
Builder block list (page structure). Validated in depth by the service.
string
Campaign to attribute visits/conversions to. Pass null to clear.
string (enum: draft|archived)
Move the page between
draft and archived.Delete short link
DELETE /api/v1/links/{id}string
required
Short link identifier.
Delete a landing page
DELETE /api/v1/links/landing-pages/{id}string
required
Landing page identifier.