Link shortener

Get a link

Retrieve a link by ID or code, including click counts and destination availability.

GEThttps://pqno.app/admin/api/encurtar-link/obterlink

Retrieves a link's details, its current-month and lifetime click counts, and the recorded availability of its destination.

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. For https://pqno.app/promo-outubro, the code is promo-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:

FieldDescription
cliques_no_mesClicks recorded during the current month.
total_cliquesTotal clicks recorded since creation.
destino_fora_do_arWhether the latest check classified the destination as unavailable.
fora_do_ar_desdeThe 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.