---
title: "Pobierz link z historią kliknięć"
method: GET
path: "/v1/links/{token}"
tags: ["Linki"]
---

# Pobierz link z historią kliknięć

`GET /v1/links/{token}`

## Request

- Base URL: `https://api.przypominamy.com`
- URL: `https://api.przypominamy.com/v1/links/{token}`
- Auth: HTTP bearer

Jeden śledzony link wraz z `click_log` - do 50 ostatnich kliknięć (czas i `user_agent`; adres IP nie jest zwracany). Wymaga zakresu `read`.

## Path parameters

- `token` string, required

## Response `200`

Link

- object: Śledzony link utworzony z `{{link:https://…}}` - jeden na parę (odbiorca, adres).
  - `token` string: 8 znaków, część adresu `/l/{token}`
  - `short_url` string, uri: Pełny krótki adres; w SMS-ie idzie bez `https://`, żeby oszczędzić znaki
  - `url` string, uri: Adres docelowy z placeholdera
  - `message_id` string, nullable
  - `to` string, nullable: Odbiorca, który dostał ten link
  - `clicks` integer
  - `first_click_at` string, date-time, nullable
  - `last_click_at` string, date-time, nullable
  - `created_at` string, date-time
  - `click_log` object[]
    - `clicked_at` string, date-time
    - `user_agent` string, nullable

## Other responses

- `401`: Brak lub nieprawidłowy klucz API
- `403`: Klucz bez wymaganego zakresu (albo konto zawieszone / testowe wysyła na niezweryfikowany numer)
- `404`: Nie znaleziono

---

[API](https://skmtc.dev/przypominamy/apis/przypominamy-com-sms-api.md) · [All operations](https://skmtc.dev/przypominamy/apis/przypominamy-com-sms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/przypominamy/apis/przypominamy-com-sms-api/revisions/c20f9cfc2a7d?raw)
