WarpLink Keys API
The Keys API from WarpLink, for keys.
The Keys API from WarpLink, for keys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/warplink-app:warplink-app-keys-api"
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.
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: 3.2.0
info:
title: WarpLink Keys 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: Keys
paths:
/keys:
post:
operationId: createApiKey
summary: Create a key
description: 'The new key belongs to the environment of the key that made the call: a `wl_live_` key creates `wl_live_` keys and a `wl_test_` key creates `wl_test_` keys. The request has no environment field, and a key keeps its environment for its whole life.'
tags:
- Keys
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
type:
type: string
enum:
- api
- sdk
default: api
description: '`sdk` creates a mobile SDK key with fixed scopes that never expires. `api` is the default.'
name:
type: string
minLength: 1
maxLength: 100
app_id:
type:
- string
- 'null'
format: uuid
description: Only for `sdk` keys. Ties the key to one app of your organization, so it works only with the SDK and only for that app. Omit or send null for a key that works for any app. An `api` key cannot be tied to an app. An id that is not an app of your organization is a validation error.
scopes:
description: Required for `api` keys. Ignored for `sdk` keys, whose scopes are fixed.
type: array
minItems: 1
items:
type: string
enum:
- links:read
- links:write
- apps:read
- apps:write
- analytics:read
- analytics:write
- referrals:read
- referrals:write
- keys:read
- keys:write
- domains:read
- domains:write
- org:read
- team:read
- team:write
expires_at:
type: string
format: date-time
description: Must be in the future.
responses:
'201':
description: Key created. The `raw_key` field is only returned once.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/ApiKey'
- type: object
properties:
raw_key:
type: string
example: wl_live_abc123def456
'400':
description: Validation error
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'
get:
operationId: listApiKeys
summary: List keys
tags:
- Keys
responses:
'200':
description: List of API keys
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ApiKeyListItem'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/keys/{id}:
get:
operationId: getApiKey
summary: Get a key
tags:
- Keys
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: API key details
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKey'
'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'
delete:
operationId: deleteApiKey
summary: Delete a key
tags:
- Keys
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'204':
description: Deleted
'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'
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.'
ApiKey:
type: object
properties:
id:
type: string
format: uuid
type:
type: string
enum:
- api
- sdk
key_prefix:
type: string
description: '`wl_live_` for a Production key or `wl_test_` for a Test key.'
example: wl_live_
name:
type: string
app_id:
type:
- string
- 'null'
format: uuid
description: The app an `sdk` key is tied to. Null for `api` keys and for `sdk` keys that work for any app.
scopes:
type: array
items:
type: string
last_used_at:
type:
- string
- 'null'
format: date-time
expires_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
ApiKeyListItem:
allOf:
- $ref: '#/components/schemas/ApiKey'
- type: object
properties:
created_via:
type:
- string
- 'null'
enum:
- dashboard
- api_key
- mcp_oauth
- null
description: 'How the key was created: in the dashboard, with an API key, or by an AI assistant connected over OAuth. Null when no creation record names the key.'
created_via_label:
type:
- string
- 'null'
description: Who created it, for example `Claude (dev@example.com)` for an assistant. Null when there is none.
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.'