L1NK API

L1NK API as documented publicly: 14 operations. Contract generated from the documentation by API Evangelist (2026-11-14); not the provider's own document.

GitHub OpenAPI

Operations 14

GET /api/analytics/daily Clicks por día #
GET /api/analytics/dimensions Por país, dispositivo, navegador y origen #
GET /api/analytics/export.csv GET /api/analytics/export.csv #
GET /api/analytics/overview GET /api/analytics/overview #
POST /api/shorten POST /api/shorten #
GET /api/stats/{shortcode} Estadísticas de un enlace #
GET /api/urls GET /api/urls #
GET /api/urls/export.csv GET /api/urls/export.csv #
DELETE /api/urls/{shortcode} Borrar un enlace #
GET /api/webhooks Tus endpoints, su estado y sus últimas entregas #
POST /api/webhooks Crear un webhook #
DELETE /api/webhooks/{id} Borrar un webhook #
POST /api/webhooks/{id}/probar Envía un webhook.test y devuelve {ok, status, error, duracionMs} #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/l1nk-website:l1nk-website-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

l1nk-website-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: L1NK API
  version: '2026-11-14'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-14: 14 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; L1NK has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 8
    documentation: 6
    pages-with-code: 3
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-14'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://l1nk.website/api/docs
  - https://l1nk.website/en/help/api
  - https://l1nk.website/en/solutions/developers
  - https://l1nk.website/en/help/destination-rules
paths:
  /api/analytics/daily:
    get:
      operationId: get_api_analytics_daily
      tags:
      - Api
      summary: Clicks por día
      description: Muestra el número de clicks por día.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
        description: Días hacia atrás
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAnalyticsDailyResponse'
      x-evidence:
        kind: documentation
  /api/analytics/dimensions:
    get:
      operationId: get_api_analytics_dimensions
      tags:
      - Api
      summary: Por país, dispositivo, navegador y origen
      description: Analítica segmentada por dimensiones.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
        description: Días hacia atrás
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAnalyticsDimensionsResponse'
      x-evidence:
        kind: documentation
  /api/analytics/export.csv:
    get:
      operationId: get_api_analytics_export_csv
      tags:
      - Api
      summary: GET /api/analytics/export.csv
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -OJ \"https://l1nk.website/api/analytics/export.csv?days=90\" -H \"Authorization: Bearer $L1NK_TOKEN\" \n UTF-8 con BOM\
          \ y saltos CRLF, para que Excel lo abra bien. En Free responde 403 . \n Convenciones \n Base: https://l1nk.website/api . Solo HTTPS.\
          \ Cuerpos en JSON ( Content-Type: application/json ). \n Fechas en ISO 8601, UTC. \n Un enlace se nombra siempre por su shortCode (o\
          \ su alias), nunca por u"
  /api/analytics/overview:
    get:
      operationId: get_api_analytics_overview
      tags:
      - Api
      summary: GET /api/analytics/overview
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \"https://l1nk.website/api/analytics/overview?days=30\" -H \"Authorization: Bearer $L1NK_TOKEN\" \n Devuelve total , averagePerDay\
          \ , bots , buckets (clicks por día),\nlos enlaces con más clicks y los filtros aplicados. \n GET /api/analytics/daily — Clicks por día\
          \ \n { \"days\": 7, \"total\": 0, \"bots\": 0, \"truncated\": false, \"capped\": false,\n \"buckets\": [ { \"date\": \"2026-09-10\"\
          , \"count\": 0 }, … ] } \n GET"
  /api/links/{shortcode}:
    patch:
      operationId: patch_api_links_shortcode
      tags:
      - Api
      summary: Editar un enlace
      description: Actualiza los campos especificados de un enlace existente.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: shortcode
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchApiLinksShortcodeRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchApiLinksShortcodeResponse'
      x-evidence:
        kind: documentation
  /api/shorten:
    post:
      operationId: post_api_shorten
      tags:
      - Api
      summary: POST /api/shorten
      x-source: https://l1nk.website/api/docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiShortenRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://l1nk.website/api/shorten  -H \"Authorization: Bearer $L1NK_TOKEN\"  -H \"Content-Type: application/json\"\
          \  -d '{\"originalUrl\": \"https://ejemplo.com/pagina\"}' \n {\n \"shortUrl\": \"https://l1nk.website/B5Mlak\",\n \"shortCode\": \"\
          B5Mlak\",\n \"originalUrl\": \"https://ejemplo.com/pagina\",\n \"name\": null, \"customAlias\": null, \"customDomainId\": null, \"shortDomain\"\
          : null,\n \"clicks\": 0, \"createdAt\":"
  /api/stats/{shortcode}:
    get:
      operationId: get_api_stats_shortcode
      tags:
      - Api
      summary: Estadísticas de un enlace
      description: Obtiene estadísticas detalladas de un enlace corto.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: shortcode
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiStatsShortcodeResponse'
      x-evidence:
        kind: documentation
  /api/urls:
    get:
      operationId: get_api_urls
      tags:
      - Api
      summary: GET /api/urls
      x-source: https://l1nk.website/api/docs
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://l1nk.website/api/urls -H \"Authorization: Bearer $L1NK_TOKEN\" \n [\n {\n \"id\": 288, \"name\": \"Doc\", \"shortcode\"\
          : \"guvovW\", \"customalias\": null,\n \"originalurl\": \"https://ejemplo.com/doc\", \"clicks\": 0,\n \"createdat\": \"2026-09-16T20:49:56.931+00:00\"\
          , \"expiresat\": null, \"lastclicked\": null,\n \"custom_domain_id\": null, \"shortDomain\": null, \"tieneContrasena\": false,\n \"\
          isExpired\": false, \"daysUntil"
  /api/urls/export.csv:
    get:
      operationId: get_api_urls_export_csv
      tags:
      - Api
      summary: GET /api/urls/export.csv
      x-source: https://l1nk.website/api/docs
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -OJ https://l1nk.website/api/urls/export.csv -H "Authorization: Bearer $L1NK_TOKEN"'
  /api/urls/{shortcode}:
    delete:
      operationId: delete_api_urls_shortcode
      tags:
      - Api
      summary: Borrar un enlace
      description: Elimina el enlace y sus estadísticas.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: shortcode
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiUrlsShortcodeResponse'
      x-evidence:
        kind: documentation
  /api/webhooks:
    get:
      operationId: get_api_webhooks
      tags:
      - Api
      summary: Tus endpoints, su estado y sus últimas entregas
      description: Lista los webhooks configurados.
      x-source: https://l1nk.website/api/docs
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_webhooks
      tags:
      - Api
      summary: Crear un webhook
      description: Registra un nuevo webhook y devuelve su secreto.
      x-source: https://l1nk.website/api/docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiWebhooksRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiWebhooksResponse'
      x-evidence:
        kind: documentation
  /api/webhooks/{id}:
    delete:
      operationId: delete_api_webhooks_id
      tags:
      - Api
      summary: Borrar un webhook
      description: Elimina el webhook especificado.
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/webhooks/{id}/probar:
    post:
      operationId: post_api_webhooks_id_probar
      tags:
      - Api
      summary: Envía un webhook.test y devuelve {ok, status, error, duracionMs}
      x-source: https://l1nk.website/api/docs
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiWebhooksIdProbarResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiAnalyticsDailyResponse:
      type: object
      properties:
        days:
          type: integer
        total:
          type: integer
        bots:
          type: integer
        truncated:
          type: boolean
        capped:
          type: boolean
        buckets:
          type: array
          description: Objetos con date y count
    GetApiAnalyticsDimensionsResponse:
      type: object
      properties:
        dias:
          type: integer
        total:
          type: integer
        bots:
          type: integer
        tope:
          type: integer
        recortado:
          type: boolean
        truncado:
          type: boolean
        dimensiones:
          type: object
          description: Contiene pais, dispositivo, navegador, referente
    PatchApiLinksShortcodeRequest:
      type: object
      properties:
        originalUrl:
          type: string
          description: Cambia el destino
        password:
          type: string
          description: Pone o cambia la contraseña (Pro). "" o null la quita.
        expiresInDays:
          type: integer
          description: 1‑365, caduca en esos días desde hoy (Pro)
        quitarExpiracion:
          type: boolean
          description: El enlace deja de caducar (gratis)
        activoDesde:
          type: string
          description: Fecha ISO 8601, no redirige antes (Pro)
        zonaHoraria:
          type: string
          description: Zona IANA, null = UTC
        maxClics:
          type: integer
          description: Máximo de clics (Pro)
        paginaNoDisponible:
          type: object
          description: Página mostrada cuando no redirige (Pro)
    PatchApiLinksShortcodeResponse:
      type: object
      properties:
        shortCode:
          type: string
        originalUrl:
          type: string
        tieneContrasena:
          type: boolean
        expiresAt:
          type: string
    PostApiShortenRequest:
      type: object
      properties:
        originalUrl:
          type: string
    GetApiStatsShortcodeResponse:
      type: object
      properties:
        shortCode:
          type: string
        customAlias:
          type: string
        originalUrl:
          type: string
        clicks:
          type: integer
        lastClicked:
          type: string
        createdAt:
          type: string
        expiresAt:
          type: string
        isExpired:
          type: boolean
        daysUntilExpiration:
          type: integer
        clickHistory:
          type: array
          description: Lista de objetos con timestamp, referer, userAgent, ip
    DeleteApiUrlsShortcodeResponse:
      type: object
      properties:
        message:
          type: string
    PostApiWebhooksRequest:
      type: object
      properties:
        url:
          type: string
          description: URL del endpoint
        eventos:
          type: array
          description: Lista de eventos a suscribir
      required:
      - url
      - eventos
    PostApiWebhooksResponse:
      type: object
      properties:
        secret:
          type: string
          description: Secreto único para firma
    PostApiWebhooksIdProbarResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Indica si la prueba fue exitosa
        status:
          type: integer
          description: Código HTTP devuelto por el endpoint
        error:
          type: string
          description: Mensaje de error si la prueba falló
        duracionMs:
          type: integer
          description: Duración de la entrega en milisegundos
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api