WarpLink Exports API

The Exports API from WarpLink, for exports.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /exports Start a click export #
GET /exports/{id} Get an export job #
GET /exports/{id}/download Download an export file #

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/warplink-app:warplink-app-exports-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

warplink-app-exports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WarpLink Exports API
  version: 1.0.0
  description: 'Link infrastructure API for developers and small teams: deep linking, install attribution, and analytics.'
servers:
- url: https://api.warplink.app/v1
  description: Production
- url: http://localhost:3000/api/v1
  description: Development
security:
- bearerAuth: []
tags:
- name: Exports
paths:
  /exports:
    post:
      operationId: createExport
      summary: Start a click export
      description: 'Starts a background job that exports click rows for the organization, or for one link. The export is a snapshot: it holds the clicks committed when the job was cut. Requires an API key with the analytics:read or links:read scope. SDK keys are refused. Poll the job with GET /exports/{id}, then download the file.'
      tags:
      - Exports
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - since
              - until
              properties:
                since:
                  type: string
                  format: date-time
                  description: Start of the window, inclusive.
                until:
                  type: string
                  format: date-time
                  description: End of the window, exclusive. Must be after since.
                link_id:
                  type: string
                  format: uuid
                  description: Export the clicks of one link. Omit to export the whole organization.
                ai_assistant:
                  type: string
                  enum:
                  - chatgpt
                  - perplexity
                  - claude
                  - gemini
                  - copilot
                  - meta_ai
                  - grok
                  - deepseek
                  - le_chat
                  - you
                  - phind
                  - any
                  description: 'Export only the clicks an AI assistant sent: one assistant id, or `any` for every assistant. Combines with `link_id`. Omit to export every click.'
                job_id:
                  type: string
                  format: uuid
                  description: A job id you generate. Repeating the request with the same id and body returns the same job.
      responses:
        '202':
          description: The job was created
          content:
            application/json:
              schema:
                type: object
                required:
                - job
                properties:
                  job:
                    $ref: '#/components/schemas/ExportJob'
        '400':
          description: Invalid request, including a body that is not valid JSON
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden. A Free organization that asks for an export starting before its last 30 days gets LOOKBACK_EXCEEDED, with details.earliest_allowed, and no job is created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The job_id was already used for a different request (code EXPORT_JOB_ID_CONFLICT), the organization already has an export running (code EXPORT_IN_PROGRESS), or its stored exports are at their size limit (code EXPORT_QUOTA_EXCEEDED)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: No part of the requested window is within your plan's data retention (code RETENTION_WINDOW_UNAVAILABLE). No job is created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Exports are turned off for this deployment (code EXPORTS_UNAVAILABLE). Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /exports/{id}:
    get:
      operationId: getExport
      summary: Get an export job
      description: Returns the job status and manifest. A job that does not exist and a job in another organization both return 404.
      tags:
      - Exports
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The export job
          content:
            application/json:
              schema:
                type: object
                required:
                - job
                properties:
                  job:
                    $ref: '#/components/schemas/ExportJob'
        '400':
          description: Invalid ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Exports are turned off for this deployment (code EXPORTS_UNAVAILABLE). Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /exports/{id}/download:
    get:
      operationId: downloadExport
      summary: Download an export file
      description: Streams the CSV file of a complete export. Every download returns identical bytes. The error body of a refusal carries the manifest in details.manifest. A job past its expires_at returns 410 whatever its status.
      tags:
      - Exports
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The CSV file
          headers:
            ETag:
              description: The SHA-256 of the file, quoted.
              schema:
                type: string
            Content-Length:
              schema:
                type: integer
          content:
            text/csv:
              schema:
                type: string
                format: binary
        '400':
          description: Invalid ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden. A Free organization cannot download an export that covers days before its last 30, even one made on a paid plan (LOOKBACK_EXCEEDED, with details.earliest_allowed)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The export failed (code export_failed) or is not ready yet (code export_not_ready)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: The export has expired (code export_expired)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The stored file is temporarily unavailable, or exports are turned off for this deployment (code EXPORTS_UNAVAILABLE). Retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: 'A stable machine-readable code. 403 `SDK_KEY_ROUTE_FORBIDDEN` means an SDK key was used on an endpoint that is not an SDK endpoint, or on the MCP server. Use an API key for that request. 400 `RECOVERY_TOKEN_INVALID` and `RECOVERY_TOKEN_EXPIRED` mean the referral token sent to `POST /v1/attribution/match` was refused. 503 `RECOVERY_TOKEN_PENDING` means the token is genuine but was issued moments ago and its invitation has not arrived yet: retry after the `Retry-After` delay.'
              example: NOT_FOUND
            message:
              type: string
              example: Link not found
            details:
              type: object
              properties:
                fields:
                  type: array
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                      message:
                        type: string
                subject:
                  type: string
                  enum:
                  - range
                  - comparison
                  description: 'On LOOKBACK_EXCEEDED: whether the requested range or its comparison period starts too early.'
                lookback_days:
                  type: integer
                  description: 'On LOOKBACK_EXCEEDED: how many days back the plan reads.'
                earliest_allowed:
                  type: string
                  format: date-time
                  description: 'On LOOKBACK_EXCEEDED: the first instant the plan may read.'
                fix:
                  type: string
                  description: What to do next, in one imperative sentence. Present on every code in the error reference. Apply it before you retry.
                docs_url:
                  type: string
                  format: uri
                  description: The code's row in the error reference, for example `https://warplink.app/docs/errors#sdk_key_route_forbidden`.
                retry_after:
                  type: integer
                  description: 'On AGENT_SIGNUP_RATE_LIMITED: seconds to wait before the next call. The `Retry-After` header carries the same number.'
    ExportJob:
      type: object
      description: A click export job and its manifest. The same object is returned when the job is created, while it runs, and after it completes.
      properties:
        job_id:
          type: string
          format: uuid
        snapshot_id:
          type: string
          format: uuid
          description: Equal to job_id.
        org_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - created
          - cut
          - running
          - complete
          - failed
          description: 'There is no expired status: a job is expired once expires_at has passed.'
        error:
          type:
          - string
          - 'null'
          enum:
          - too_large
          - assumption_violated
          - attempts_exhausted
          - storage_unavailable
          - abandoned
          - null
          description: Set when status is failed.
        scope:
          type:
          - string
          - 'null'
          enum:
          - org
          - own_links
          - null
          description: The role scope applied to the rows.
        filters:
          type:
          - object
          - 'null'
          description: Request filters, such as linkId for a single-link export.
        window_requested_from:
          type: string
          format: date-time
        window_requested_to:
          type: string
          format: date-time
        window_from:
          type: string
          format: date-time
          description: The window actually exported, after the plan's data retention was applied.
        window_to:
          type: string
          format: date-time
        retention_days:
          type:
          - integer
          - 'null'
        clipped:
          type: boolean
          description: True when the requested window was narrowed to the plan's data retention.
        clipped_reason:
          type:
          - string
          - 'null'
          enum:
          - retention
          - null
        cut_snapshot:
          type:
          - string
          - 'null'
          description: The database snapshot the export was cut at. Rows committed after it are never in this export.
        cut_at:
          type:
          - string
          - 'null'
          format: date-time
        server_version_num:
          type:
          - integer
          - 'null'
        membership_max_rows:
          type: integer
          description: The most rows one export may hold. A larger request fails as too_large.
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
        expires_at:
          type: string
          format: date-time
          description: Downloads stop working at this time.
        expired_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the stored file was removed after expiry.
        completeness:
          type: string
          enum:
          - unmeasured
          - measured
        complete_through:
          type:
          - string
          - 'null'
          format: date-time
        rows_in_cut:
          type:
          - integer
          - 'null'
        rows_written:
          type:
          - integer
          - 'null'
          description: Data rows in the file.
        deletions_observed:
          type:
          - integer
          - 'null'
          description: Rows in the cut that were deleted before their page was read. rows_written plus deletions_observed equals rows_in_cut.
        first_id:
          type:
          - string
          - 'null'
        last_id:
          type:
          - string
          - 'null'
        order:
          type: string
          enum:
          - id asc
        columns:
          type: array
          items:
            type: string
        schema_version:
          type: integer
        page_width:
          type:
          - integer
          - 'null'
        page_count:
          type:
          - integer
          - 'null'
        pages:
          type: array
          items:
            type: object
            properties:
              page:
                type: integer
              seq_from:
                type: integer
              seq_to:
                type: integer
              rows:
                type: integer
              bytes:
                type: integer
              sha256:
                type: string
              first_id:
                type:
                - string
                - 'null'
              last_id:
                type:
                - string
                - 'null'
              unknown_counts:
                type: object
                additionalProperties:
                  type: integer
        sha256:
          type:
          - string
          - 'null'
          description: SHA-256 of the whole file. Every download of a complete job returns identical bytes with this checksum.
        unknown_counts:
          type: object
          additionalProperties:
            type: integer
          description: Per column, the number of empty cells.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key for the REST endpoints, or an SDK key for the SDK and attribution endpoints. Both are `wl_live_` for Production or `wl_test_` for Test mode, followed by 32 alphanumeric characters. The prefix decides the environment: a `wl_test_` key reads and writes Test data only, and a `wl_live_` key reads and writes Production data only. A Production id sent with a Test key answers 404 `NOT_FOUND`. A Test key on an endpoint that manages the organization itself answers 403 `ENVIRONMENT_NOT_SUPPORTED`. Only an SDK key can record install attribution. An SDK key can call only `GET /v1/sdk/validate`, `GET /v1/links/resolve/{slug}`, `POST /v1/attribution/match`, and `POST /v1/referrals/claims`. Any other endpoint answers it with 403 `SDK_KEY_ROUTE_FORBIDDEN`: use an API key for that request.'