Yungle Webhooks API
Events pushed to your URL, signed with `Yungle-Signature`, or kept for you to pull. See the Webhooks guide.
Events pushed to your URL, signed with `Yungle-Signature`, or kept for you to pull. See the Webhooks guide.
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/yungle-co:yungle-co-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: Yungle Webhooks API
version: 1.0.0
description: 'Send transfers, build collections and sync contacts from your own systems. Every account can use it: transfers and contacts on the free plan, collections on a paid one.
Lists that can grow without bound (transfers, collection files) take `limit` and `cursor` and return `nextCursor`; pass it back unchanged for the next page, and stop when it is null.
Any POST accepts an `Idempotency-Key` header (1–255 printable characters; a UUID). A retry with the same key and body within 24 hours replays the original success with `Idempotent-Replayed: true` and creates nothing.
File bytes never travel through this API: endpoints that accept files return a tus endpoint and a per-file upload token, and you stream to that. See https://docs.yungle.co/guides/upload-large-files.
The vault and end-to-end encrypted transfers are not reachable here, and cannot be: their keys are derived in the client and never sent to us.
**Errors** are JSON with a stable `error.code` (the `Error` schema); `error.docs` links to the explanation. See https://docs.yungle.co/errors.
**Rate limits** are reported on every metered response in the IETF draft `RateLimit` and `RateLimit-Policy` headers, per key per minute and per workspace per day. A 429 carries `Retry-After` in seconds. See https://docs.yungle.co/limits.
**Versioning.** The version is in the path. `/api/v1` changes additively only: new endpoints, optional fields and response fields may appear; nothing existing is removed, renamed or made required. A breaking change ships as `/api/v2`. An operation that is going away is marked `deprecated: true` here, answers with a `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) giving its last day, and is announced in the changelog at least six months before that day: https://docs.yungle.co/changelog. No v1 operation is deprecated.'
contact:
name: Yungle
url: https://docs.yungle.co
license:
name: MIT
identifier: MIT
termsOfService: https://yungle.co/legal/terms
servers:
- url: https://yungle.co/api/v1
security:
- apiKey: []
tags:
- name: Webhooks
description: Events pushed to your URL, signed with `Yungle-Signature`, or kept for you to pull. See the Webhooks guide.
paths:
/webhooks:
get:
tags:
- Webhooks
summary: List webhook endpoints
responses:
'200':
description: Endpoints.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
webhooks:
type: array
items:
$ref: '#/components/schemas/Webhook'
required:
- webhooks
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: listWebhooks
x-mint:
metadata:
description: List your webhook endpoints, the events each one receives, and whether it is active or paused.
post:
tags:
- Webhooks
summary: Create an endpoint
description: 'The response carries the signing `secret`, once. Free: one endpoint, transfer events.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
description: 'https URL to POST events to. null makes a pull endpoint: read its events from GET /webhooks/{id}/events.'
events:
type: array
items:
type: string
enum:
- transfer.ready
- transfer.downloaded
- transfer.expiring
- transfer.expired
- collection.file_uploaded
- request.submitted
minItems: 1
maxItems: 20
description: Event types to receive. Collection events need a paid plan.
description:
type: string
maxLength: 200
description: A note for yourself.
required:
- url
- events
additionalProperties: false
$schema: http://json-schema.org/draft-07/schema#
responses:
'201':
description: The endpoint and its secret.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
webhook:
$ref: '#/components/schemas/Webhook'
secret:
type: string
description: The signing secret. Shown once; store it now.
required:
- webhook
- secret
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: createWebhook
x-mint:
metadata:
description: Add a webhook endpoint and choose its events. Every delivery is signed so you can verify it came from Yungle.
/webhooks/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
get:
tags:
- Webhooks
summary: Get an endpoint
responses:
'200':
description: The endpoint.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
webhook:
$ref: '#/components/schemas/Webhook'
required:
- webhook
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: getWebhook
x-mint:
metadata:
description: 'Get one webhook endpoint: its URL, the events it receives and its recent delivery health.'
patch:
tags:
- Webhooks
summary: Change, pause or resume an endpoint
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
events:
type: array
items:
type: string
enum:
- transfer.ready
- transfer.downloaded
- transfer.expiring
- transfer.expired
- collection.file_uploaded
- request.submitted
minItems: 1
maxItems: 20
description: Event types to receive. Collection events need a paid plan.
description:
anyOf:
- type: string
maxLength: 200
- type: 'null'
enabled:
type: boolean
description: false pauses deliveries; true resumes and resets the failure count.
additionalProperties: false
$schema: http://json-schema.org/draft-07/schema#
responses:
'200':
description: The endpoint.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
webhook:
$ref: '#/components/schemas/Webhook'
required:
- webhook
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: updateWebhook
x-mint:
metadata:
description: Change a webhook endpoint’s URL or events, or pause and resume deliveries to it.
delete:
tags:
- Webhooks
summary: Delete an endpoint
responses:
'200':
description: Deleted.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
deleted:
type: boolean
const: true
required:
- deleted
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: deleteWebhook
x-mint:
metadata:
description: Delete a webhook endpoint. Nothing more is sent to it; events already delivered are unaffected.
/webhooks/{id}/rotate-secret:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
post:
tags:
- Webhooks
summary: Replace the signing secret
responses:
'200':
description: The new secret, once.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
secret:
type: string
description: The new secret. Shown once.
required:
- secret
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: rotateWebhookSecret
x-mint:
metadata:
description: Replace a webhook endpoint’s signing secret. The old secret stops verifying new deliveries at once.
/webhooks/{id}/test:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
post:
tags:
- Webhooks
summary: Send a webhook.test event
responses:
'202':
description: The delivery id.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
deliveryId:
type: string
required:
- deliveryId
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: testWebhook
x-mint:
metadata:
description: Send a test event to a webhook endpoint to check that your server receives it and verifies the signature.
/webhooks/{id}/deliveries:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
get:
tags:
- Webhooks
summary: Recent delivery attempts
responses:
'200':
description: The latest 50, newest first.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
deliveries:
type: array
items:
$ref: '#/components/schemas/WebhookDelivery'
required:
- deliveries
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: listWebhookDeliveries
x-mint:
metadata:
description: 'See recent delivery attempts to a webhook endpoint: status codes, timing and errors, newest first.'
/webhooks/{id}/deliveries/{deliveryId}/retry:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
- name: deliveryId
in: path
required: true
schema:
type: string
description: Delivery id.
post:
tags:
- Webhooks
summary: Redeliver an event
responses:
'202':
description: Queued.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
queued:
type: boolean
const: true
required:
- queued
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: retryWebhookDelivery
x-mint:
metadata:
description: Send a failed webhook delivery again, with the same event and a fresh signature.
/webhooks/{id}/events:
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Webhook endpoint id.
get:
tags:
- Webhooks
summary: Read events (pull)
description: Oldest first, after `cursor`. `nextCursor` is returned even on the last page, so a poller resumes from it. Kept 30 days.
parameters:
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 500
description: Page size, 1–500. Defaults to 100.
- name: cursor
in: query
required: false
schema:
type: string
description: 'The `nextCursor` from the previous page, unchanged. Opaque: never build one.'
responses:
'200':
description: Events, each the same JSON a push delivery sends, plus `deliveryId`.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
type: object
properties:
events:
type: array
items:
$ref: '#/components/schemas/WebhookEvent'
nextCursor:
type:
- string
- 'null'
description: Returned even on the last page, so a poller resumes from it.
hasMore:
type: boolean
required:
- events
- nextCursor
- hasMore
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
operationId: listWebhookEvents
x-mint:
metadata:
description: Pull the events for an endpoint yourself, for scripts that cannot receive webhooks on a public URL.
components:
responses:
NotFound:
description: 'No such resource in this workspace. Codes: `not_found`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: 'The request was malformed or failed validation. Codes: `invalid_request`, `folder_error`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PaymentRequired:
description: 'Needs a paid plan, or prepaid credit for metered usage. Codes: `upgrade_required`, `out_of_credit`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalError:
description: 'Our fault. `details.requestId` ties it to our logs. Codes: `internal_error`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: 'Rate limit or email budget exhausted. Wait for `Retry-After`. Codes: `rate_limited`, `email_budget_exhausted`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: 'The credential lacks a required scope, or a shared link refused access. Codes: `insufficient_scope`, `password_required`, `wrong_password`, `guests_only`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: 'Missing or invalid credential. Codes: `unauthorized`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Conflict:
description: 'Already exists, an Idempotency-Key conflict, or end-to-end encrypted content the server cannot serve. Codes: `conflict`, `e2ee_unsupported`.'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
WebhookEvent:
type: object
properties:
deliveryId:
type: string
description: Pass the last one back as `cursor`.
id:
type: string
type:
type: string
createdAt:
type: string
format: date-time
data:
type: object
additionalProperties: {}
description: Shaped per event type; see the Webhooks guide.
required:
- deliveryId
- id
- type
- createdAt
- data
description: The same JSON a push delivery sends, plus `deliveryId`.
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- unauthorized
- insufficient_scope
- upgrade_required
- out_of_credit
- not_found
- invalid_request
- folder_error
- conflict
- not_editable
- quota_exceeded
- transfer_too_large
- rate_limited
- email_budget_exhausted
- password_required
- wrong_password
- guests_only
- link_unavailable
- e2ee_unsupported
- internal_error
description: 'Stable and machine-readable: branch on this. New codes may be added within an existing status.'
message:
type: string
description: For a human reading a log. May change; do not parse it.
details:
type: object
additionalProperties: true
description: Present only when there is something actionable, and shaped per code.
docs:
type: string
format: uri
description: The page that explains this code and what to do about it.
Webhook:
type: object
properties:
id:
type: string
url:
anyOf:
- type: string
format: uri
- type: 'null'
description: Null for a pull endpoint.
mode:
type: string
enum:
- push
- pull
description:
type:
- string
- 'null'
events:
type: array
items:
type: string
enabled:
type: boolean
disabledReason:
type:
- string
- 'null'
lastSuccessAt:
anyOf:
- type: string
format: date-time
- type: 'null'
lastFailureAt:
anyOf:
- type: string
format: date-time
- type: 'null'
createdAt:
type: string
format: date-time
required:
- id
- url
- mode
- description
- events
- enabled
- disabledReason
- lastSuccessAt
- lastFailureAt
- createdAt
WebhookDelivery:
type: object
properties:
id:
type: string
eventId:
type: string
type:
type: string
status:
type: string
description: 'Currently one of: `pending`, `succeeded`, `failed`, and `available` for an event waiting to be pulled. Treat unknown values as unknown, not as an error.'
attempts:
type: integer
minimum: 0
nextAttemptAt:
anyOf:
- type: string
format: date-time
- type: 'null'
lastStatusCode:
anyOf:
- type: integer
- type: 'null'
lastError:
type:
- string
- 'null'
deliveredAt:
anyOf:
- type: string
format: date-time
- type: 'null'
createdAt:
type: string
format: date-time
required:
- id
- eventId
- type
- status
- attempts
- nextAttemptAt
- lastStatusCode
- lastError
- deliveredAt
- createdAt
headers:
RateLimit:
description: What is left in each bucket this request was charged against, e.g. `"key";r=87;t=34, "workspace";r=19880;t=40211` (`r` remaining, `t` seconds until reset). draft-ietf-httpapi-ratelimit-headers.
schema:
type: string
RateLimit-Policy:
description: The buckets themselves, e.g. `"key";q=120;w=60, "workspace";q=20000;w=86400` (`q` quota, `w` window in seconds).
schema:
type: string
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'An API key from Settings → API keys, sent as `Authorization: Bearer yk_live_…`. Scopes: transfers:read, transfers:write, collections:read, collections:write, contacts:read, contacts:write, webhooks:read, webhooks:write. A write scope implies read of the same resource.'