WarpLink Webhooks API
The Webhooks API from WarpLink, for webhooks.
The Webhooks API from WarpLink, for webhooks.
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-webhooks-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 Webhooks 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: Webhooks
paths:
/apps/{id}/webhook-endpoints:
get:
operationId: listWebhookEndpoints
summary: List an app's webhook endpoints
description: Returns the endpoints of one app with the plan's limit per app. Needs the referrals:read scope. The masked secret appears only when the key's creator is an owner or admin.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The app ID.
schema:
type: string
format: uuid
responses:
'200':
description: The app's endpoints
content:
application/json:
schema:
type: object
required:
- data
- limit
- plan
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookEndpoint'
limit:
type: integer
description: 'Endpoints per app on the plan: 1 on Free, 5 on paid plans.'
plan:
type: string
'400':
description: INVALID_ID when the ID in the path is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:read scope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The app does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: createWebhookEndpoint
summary: Add a webhook endpoint
description: 'Adds an endpoint to an app. Needs the referrals:write scope, and the key''s creator must be an owner or admin. The full signing secret is in `secret` this once. Later reads show only a masked form. The address must be a public https address: localhost, private networks, addresses with a user name or password, and WarpLink''s own addresses are refused.'
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The app ID.
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- url
properties:
url:
type: string
maxLength: 2000
example: https://api.example.com/hooks/warplink
send_flagged:
type: boolean
default: true
description: Also send referral.flagged events.
responses:
'201':
description: The endpoint, with its signing secret shown once
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpointWithSecret'
'400':
description: VALIDATION_ERROR with fields.url when the address is refused, or INVALID_ID when the app ID is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The app does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: PLAN_LIMIT_EXCEEDED when the app already holds as many endpoints as the plan includes. details.limit is the limit and details.plan the plan. Paused and disabled endpoints count.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/webhook-endpoints/{id}:
patch:
operationId: updateWebhookEndpoint
summary: Update a webhook endpoint
description: Changes the address, turns the endpoint on or off, or sets referral.flagged delivery. Needs the referrals:write scope, and the key's creator must be an owner or admin. Send at least one field. Only a plan change pauses an endpoint, so status accepts active and disabled. keep_active makes this endpoint the active one and pauses the others the plan no longer covers.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The endpoint ID.
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
minProperties: 1
properties:
url:
type: string
maxLength: 2000
status:
type: string
enum:
- active
- disabled
send_flagged:
type: boolean
keep_active:
type: boolean
description: Cannot be combined with status disabled.
responses:
'200':
description: The updated endpoint
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpoint'
'400':
description: VALIDATION_ERROR for an empty body, a refused address, or keep_active with status disabled. INVALID_ID when the ID is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The endpoint does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: PLAN_LIMIT_EXCEEDED when enabling would pass the plan's limit of active endpoints. Disable another endpoint, or send keep_active.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: deleteWebhookEndpoint
summary: Delete a webhook endpoint
description: Removes the endpoint with its events and delivery log. Referrals stay recorded. Needs the referrals:write scope, and the key's creator must be an owner or admin.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The endpoint ID.
schema:
type: string
format: uuid
responses:
'204':
description: Deleted
'400':
description: INVALID_ID when the ID in the path is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The endpoint does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/webhook-endpoints/{id}/rotate:
post:
operationId: rotateWebhookEndpointSecret
summary: Rotate a webhook signing secret
description: Issues a new signing secret. The full signing secret is in `secret` this once. Later reads show only a masked form. The old secret keeps signing beside the new one until previous_secret_expires_at, 24 hours later, so the receiver can switch without a gap. A second rotation inside that window ends the first old secret at once. Needs the referrals:write scope, and the key's creator must be an owner or admin.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The endpoint ID.
schema:
type: string
format: uuid
responses:
'200':
description: The endpoint, with the new signing secret shown once
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEndpointWithSecret'
'400':
description: INVALID_ID when the ID in the path is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The endpoint does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/webhook-endpoints/{id}/test:
post:
operationId: testWebhookEndpoint
summary: Send a test event
description: Sends one signed webhook.test event to the saved address and answers with what the endpoint returned. It is sent once, never retried, and appears in the delivery log. The address is checked again before sending. Needs the referrals:write scope, and the key's creator must be an owner or admin. Takes no body.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The endpoint ID.
schema:
type: string
format: uuid
responses:
'200':
description: The result of the send. A failed send is still a 200 with success false.
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookTestResult'
'400':
description: VALIDATION_ERROR when the saved address no longer passes the address check, or INVALID_ID when the ID is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The endpoint does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/webhook-endpoints/{id}/deliveries:
get:
operationId: listWebhookDeliveries
summary: List an endpoint's deliveries
description: Returns the newest 100 events of the endpoint with every attempt, newest first. Needs the referrals:read scope.
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The endpoint ID.
schema:
type: string
format: uuid
responses:
'200':
description: The delivery log
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/WebhookDelivery'
'400':
description: INVALID_ID when the ID in the path is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:read scope.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The endpoint does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/webhook-events/{id}/resend:
post:
operationId: resendWebhookEvent
summary: Resend a webhook event
description: 'Sends a finished event again with the same event id and payload, so the receiver can drop a repeat by id. The event must have finished (delivered or failed) within the last 7 days, and its endpoint must be active: a disabled or paused endpoint is refused with 409 CONFLICT before anything is sent. Needs the referrals:write scope, and the key''s creator must be an owner or admin. Takes no body.'
tags:
- Webhooks
parameters:
- name: id
in: path
required: true
description: The delivery ID, the id field of a delivery in the log.
schema:
type: string
format: uuid
responses:
'202':
description: The event is queued again
content:
application/json:
schema:
type: object
required:
- id
- event_id
- status
properties:
id:
type: string
format: uuid
event_id:
type: string
status:
type: string
enum:
- pending
'400':
description: INVALID_ID when the ID in the path is not a UUID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized. The key is missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden. The key needs the referrals:write scope, and its creator must be an owner or admin.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: The event does not exist in this organization
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: CONFLICT when the event is still being delivered (resend it after the last attempt), or when its endpoint is disabled or paused (set it to active first).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: GONE when the event finished more than 7 days ago.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
WebhookDelivery:
type: object
required:
- id
- event_id
- type
- referral_id
- status
- attempts_used
- created_at
- final_at
- attempts
properties:
id:
type: string
format: uuid
description: The delivery row. Use it with POST /v1/webhook-events/{id}/resend.
event_id:
type: string
description: The event id the receiver sees. It stays the same across resends.
type:
type: string
enum:
- referral.claimed
- referral.flagged
- referral.updated
- webhook.test
referral_id:
type:
- string
- 'null'
pattern: ^ref_[0-9a-f]{32}$
description: The referral the event belongs to, as GET /v1/referrals/{id} takes it.
status:
type: string
enum:
- pending
- retrying
- delivered
- failed
attempts_used:
type: integer
minimum: 0
created_at:
type: string
format: date-time
final_at:
type:
- string
- 'null'
format: date-time
description: When the last attempt ended. Null while the event is pending or retrying.
attempts:
type: array
items:
type: object
required:
- attempt_no
- outcome
- status_code
- error
- duration_ms
- at
properties:
attempt_no:
type: integer
minimum: 1
outcome:
type: string
enum:
- ok
- error
- timeout
status_code:
type:
- integer
- 'null'
error:
type:
- string
- 'null'
duration_ms:
type:
- integer
- 'null'
at:
type: string
format: date-time
WebhookEndpointWithSecret:
allOf:
- $ref: '#/components/schemas/WebhookEndpoint'
- type: object
required:
- secret
properties:
secret:
type: string
description: The full signing secret, shown once. Store it now.
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.'
WebhookEndpoint:
type: object
required:
- id
- app_id
- url
- status
- send_flagged
- previous_secret_expires_at
- last_delivery_at
- created_at
- updated_at
properties:
id:
type: string
format: uuid
app_id:
type: string
format: uuid
url:
type: string
format: uri
description: The https address WarpLink sends events to.
status:
type: string
enum:
- active
- disabled
- paused
description: active delivers events. disabled was turned off by a person. paused was turned off by a plan change that allows fewer endpoints.
send_flagged:
type: boolean
description: Whether this endpoint also receives referral.flagged events.
secret:
type: string
description: The masked signing secret. Left out for a key whose creator is not an owner or admin. Create and rotate return the full secret once.
previous_secret_expires_at:
type:
- string
- 'null'
format: date-time
description: While set, the secret from before the last rotation still signs beside the current one.
last_delivery_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
WebhookTestResult:
type: object
required:
- event_id
- success
- outcome
- status_code
- error
- duration_ms
- tested_at
properties:
event_id:
type: string
description: The id of the webhook.test event, also in the X-WarpLink-Event-Id header.
success:
type: boolean
description: True when the endpoint answered with a 2xx status.
outcome:
type: string
enum:
- ok
- error
- timeout
status_code:
type:
- integer
- 'null'
description: The status the endpoint answered with, or null when it did not answer.
error:
type:
- string
- 'null'
duration_ms:
type: integer
tested_at:
type: string
format: date-time
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.'