Link shortener
Get a link
Retrieve a link by ID or code, including click counts and destination availability.
https://pqno.app/admin/api/encurtar-link/obterlinkRetrieves a link's details, its current-month and lifetime click counts, and the recorded availability of its destination.
Identify the link
Send either id or codigo as a query parameter. Use only one:
id: the identifier returned when creating or listing links.codigo: the portion after the slash in the short URL. Forhttps://pqno.app/promo-outubro, the code ispromo-outubro.
Providing both parameters or neither returns HTTP 400. A personal token can retrieve the issuer's links; a company token can retrieve links created by anyone in that company. A link outside this scope returns 404.
Response fields
In addition to the fields described in Create a link, dados includes:
| Field | Description |
|---|---|
cliques_no_mes | Clicks recorded during the current month. |
total_cliques | Total clicks recorded since creation. |
destino_fora_do_ar | Whether the latest check classified the destination as unavailable. |
fora_do_ar_desde | The recorded start of the outage, or null when no outage is recorded. |
Destination availability
pqno.app checks destinations periodically and after visits to short links. These fields report the recorded check results; this request does not perform a live availability check.
Changing the destination with Update a link schedules a new check. Retrieve the link again after the check runs to monitor the new destination.
Parameters
Header
Authorizationstringrequired- Send Bearer followed by your API token, for example Authorization: Bearer YOUR_TOKEN.
Query parameters
idinteger- Link ID. Send either id or codigo, never both.
codigostring- Short URL code, without the domain or slash. Send either codigo or id, never both.

