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 a link record

    Fetch a link record

    Read a single link record owned by the API key organization.

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

    Scoped API key

    Required scopes

    links:read

    Plan lane

    Requires an API-enabled paid plan.

    Response envelope

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

    Why this page exists

    Returns a stable developer-friendly link contract. Lookups are always scoped to the authenticated organization and never trust caller-provided tenant IDs.

    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

    • Provide the UUID path parameter exactly as returned by the shorten response.
    • links:read is enough for metadata retrieval; write scopes are not required.
    Rate limits and metering
    • GET reads still consume api_calls from the current billing window.
    • High-volume polling is usually the wrong pattern; store ids and fetch only when state matters.
    Error model
    • NOT_FOUND means the link does not exist or is not owned by the key's organization.
    • API_SCOPE_FORBIDDEN means the key does not include links: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.