v1 stable

    Reference docs
    for the machine‑auth
    link API.

    Operator-first surface for API-key auth, endpoint behavior, request schemas, error codes, and same-origin live testing.

    4 endpoints
    <50ms p99
    Bearer auth
    OpenAPI-backed
    POST /api/v1/links/shorten
    # Request
    curl -X POST \
    "https://1get.site/api/v1/links/shorten" \
    -H "Authorization: Bearer 1gt_live_••••••••" \
    -H "Content-Type: application/json" \
    -d '{ "url": "https://example.com/very-long-path"}'
    # 201 Created
    {
    "data": {
    "id": "lnk_01jf8x2a4m...",
    "short_url": "https://1get.site/my-link",
    "clicks": 0
    }
    }
    Current page
    Fetch QR metadata for a link

    Fetch QR metadata for a link

    Read QR metadata for a link owned by the authenticated organization.

    Route
    GET
    /api/v1/links/{id}/qr
    Auth

    Scoped API key

    Required scopes

    qr:read

    Plan lane

    Requires an API-enabled paid plan.

    Response envelope

    `{ data: ... }` with stable error codes on failures

    Why this page exists

    Returns the absolute QR asset URL plus format and styling metadata. This endpoint is useful when an integration needs the QR details without re-fetching the full link payload.

    Request reference

    Headers

    FieldTypeRequiredDescriptionExample
    Authorization
    string
    Optional
    Preferred authentication header. Send a scoped API key using the Bearer scheme.
    Bearer 1gt_live_1234567890abcdef
    X-API-Key
    string
    Optional
    Alternative authentication header. Use this only when Authorization headers are difficult to inject.
    1gt_live_1234567890abcdef
    X-Request-Id
    string
    Optional
    Optional caller-provided correlation ID. When omitted, 1get generates one and echoes it back in responses.
    req_a1f7f4bf

    Path parameters

    FieldTypeRequiredDescriptionExample
    id
    string
    Required
    1get link UUID.
    ecb3ec1f-ae2e-4c30-b7d6-c47b4c671f7b

    Request discipline

    • Use the same link UUID returned by shorten or stored from prior calls.
    • This route is useful when your UI needs QR details without re-fetching the whole link object.
    Rate limits and metering
    • QR metadata reads count toward api_calls like other external routes.
    • If you already have qr_code metadata from a recent shorten response, prefer caching that value instead of re-reading immediately.
    Error model
    • NOT_FOUND means the QR record is not available for that link in the current organization.
    • API_SCOPE_FORBIDDEN means the key does not include qr:read.
    API_KEY_MISSING
    API_KEY_INVALID
    API_SCOPE_FORBIDDEN
    API_ACCESS_DISABLED
    RATE_LIMITED
    NOT_FOUND
    Next surface

    Create or rotate keys from the authenticated portal

    Use the dashboard portal when you need scoped key lifecycle management, entitlement visibility, and request activity history.