Custom Events Marketplace
Browse, publish, withdraw and fork shared custom event schemas over HTTP.
The marketplace shares event schemas between organisations (federation shares live traffic; see Federation groups). A publisher lists one of its published registrations; another organisation forks the listing, which registers a copy of the schema in its own organisation under its own name. A fork is independent from then on: a new version from the publisher never reaches it. SDK calls, wire shapes and the lifecycle events: Marketplace (SDK).
| Method | Path | Scope | Plan | Caller |
|---|---|---|---|---|
| GET | /api/v1/events/custom/marketplace | events:read | Every plan | Any organisation |
| GET | /api/v1/events/custom/marketplace/{id} | events:read | Every plan | Any organisation (see visibility) |
| POST | /api/v1/events/custom/marketplace/publish | events:manage | Pro and Enterprise | Publisher |
| DELETE | /api/v1/events/custom/marketplace/{id} | events:manage | Every plan | Publisher |
| POST | /api/v1/events/custom/marketplace/{id}/republish | events:manage | Pro and Enterprise | Publisher |
| POST | /api/v1/events/custom/marketplace/{id}/fork | events:manage | Pro and Enterprise | Any organisation |
{id} is a listing id (mkl_…). Every route needs a key bound to an organisation (403 FORBIDDEN otherwise).
Visibility
- Another organisation sees a listing only while it is
publishedand its source registration is not archived. A withdrawn, taken-down or orphaned listing answers404 LISTING_NOT_FOUNDto everyone but the publisher, the same as an id that does not exist. - Other organisations see the publisher's name (
publisherName), never its organisation id or caller label:publisherOrganizationIdandpublishedByarenull, andsourceCanonicalNameisnamespace.name@versionwithout the organisation. - The publisher sees its own listings in every status, with its own ids.
Browse
GET /api/v1/events/custom/marketplace
| Query | Description |
|---|---|
namespace | Exact namespace |
search | Case-insensitive substring of the title or description (at most 100 characters used; % and _ are literal) |
mine | true: your own listings, every status |
status | published; unpublished or archived only with mine=true |
limit | 1 to 100, default 25 |
offset | Default 0 |
curl "https://api.platformxe.com/api/v1/events/custom/marketplace?search=property&limit=10" \
-H "x-api-key: pxk_live_your_api_key_here"
{
"success": true,
"data": {
"listings": [
{
"id": "mkl_…",
"publisherName": "Acme Lettings",
"publisherOrganizationId": null,
"namespace": "lettings",
"name": "property.favorited",
"version": "1.0.0",
"sourceCanonicalName": "lettings.property.favorited@1.0.0",
"title": "Property favourited",
"description": "Fired when a customer favourites a property.",
"tags": ["lettings", "crm"],
"status": "published",
"forkCount": 3,
"publishedBy": null,
"publishedAt": "2026-11-01T10:00:00.000Z",
"unpublishedAt": null,
"createdAt": "2026-11-01T10:00:00.000Z",
"updatedAt": "2026-11-18T08:00:00.000Z"
}
],
"total": 1,
"limit": 10,
"offset": 0
}
}
Newest first. Errors: 400 BAD_REQUEST (an unknown status, a withdrawn status without mine=true, a limit or offset that is not a non-negative integer).
Read a listing
GET /api/v1/events/custom/marketplace/{id}
The listing (as above) plus payloadSchema and payloadExample (null unless the publisher supplied one). Errors: 404 LISTING_NOT_FOUND.
Publish
POST /api/v1/events/custom/marketplace/publish
| Field | Type | Required | Description |
|---|---|---|---|
registrationId | string | Yes | One of your registrations, published |
title | string | Yes | 3 to 120 characters |
description | string | No | At most 2,000 characters |
tags | string[] | No | At most 10, each at most 32 characters (lower-cased, duplicates dropped) |
payloadExample | object | No | Shown to every organisation; must match the schema; at most 16 KiB |
The registration's own payloadExample is never copied (it is often a captured real payload): pass one here only if you want an example shown. One listing per (namespace, name, version): list a new shape by registering and publishing a new version.
201 with the listing; emits MARKETPLACE_LISTING_PUBLISHED to you. An x-idempotency-key header replays the first answer to a retry.
| Code | Status | Cause |
|---|---|---|
BAD_REQUEST | 400 | Body not a JSON object, registrationId or title missing, a field out of bounds, or the example does not match the schema |
EVENT_NOT_PUBLISHABLE | 400 | platformxe.generic, or a federated (fed-*) type |
MARKETPLACE_PUBLISH_NOT_AVAILABLE | 402 | Free or Basic |
REGISTRATION_NOT_FOUND | 404 | Not one of your registrations |
REGISTRATION_NOT_PUBLISHED | 409 | The registration is draft or archived |
EVENT_NOT_PUBLISHABLE | 409 | With an example: the event's schema no longer passes the current schema rules (register a new version first) |
LISTING_ALREADY_EXISTS | 409 | That version is already listed (unpublish or republish it instead) |
VALIDATION_UNAVAILABLE | 503 | The example could not be validated right now; retry |
CONFLICT | 409 | A request with the same x-idempotency-key is still being processed |
IDEMPOTENCY_UNAVAILABLE | 503 | The request could not be checked for a repeat; nothing was processed. Retry after Retry-After |
Unpublish
DELETE /api/v1/events/custom/marketplace/{id}
Hides your listing from every other organisation; forks already made are unaffected. Open on every plan, so you can withdraw a listing after leaving Pro. The listing is kept, with its schema.
{ "success": true, "data": { "id": "mkl_…", "status": "unpublished", "unpublishedAt": "2026-11-20T11:00:00.000Z" } }
Emits MARKETPLACE_LISTING_UNPUBLISHED. Errors: 404 LISTING_NOT_FOUND (not yours), 409 ALREADY_UNPUBLISHED (not published).
Republish
POST /api/v1/events/custom/marketplace/{id}/republish
Makes an unpublished listing of yours visible again; answers the listing and emits MARKETPLACE_LISTING_REPUBLISHED.
Errors: 402 MARKETPLACE_PUBLISH_NOT_AVAILABLE, 404 LISTING_NOT_FOUND (not yours), 409 ALREADY_PUBLISHED, 409 ARCHIVED_LISTING (taken down by PlatformXe, or its source registration is archived: publish a new version instead).
Fork
POST /api/v1/events/custom/marketplace/{id}/fork
| Field | Type | Required | Description |
|---|---|---|---|
namespace | string | Yes | One of your allowed namespaces |
name | string | Yes | Your name for the event |
version | string | No | Default 1.0.0 |
description | string | No | Default: a line naming the listing it was forked from |
status | string | No | draft (default) or published |
The body is read up to 16 KiB (413 PAYLOAD_TOO_LARGE beyond). Like publish, fork takes an x-idempotency-key header, which replays the first answer to a retry. A fork is a registration in your organisation: every registration control applies (naming, your namespace allow-list, schema rules, semver and compatibility with your earlier versions of that name, your plan's active and daily registration caps), and the registration and its provenance are written together or not at all.
curl -X POST https://api.platformxe.com/api/v1/events/custom/marketplace/mkl_abc123/fork \
-H "Content-Type: application/json" \
-H "x-api-key: pxk_live_your_api_key_here" \
-d '{ "namespace": "acme", "name": "property.favorited", "status": "published" }'
201:
{
"success": true,
"data": {
"forkId": "mkf_…",
"forkRegistrationId": "cer_…",
"forkCanonicalName": "TENANT_CUSTOM:org_…:acme.property.favorited@1.0.0",
"sourceCanonicalName": "lettings.property.favorited@1.0.0"
}
}
The publisher's forkCount goes up and it receives MARKETPLACE_LISTING_FORKED with your organisation, registration and caller shown as redacted; your own copy names them. A fork the registration checks refuse emits MARKETPLACE_LISTING_FORK_FAILED to you; the route-level refusals (402, 404, 400 for the body, 413) emit nothing.
| Code | Status | Cause |
|---|---|---|
BAD_REQUEST | 400 | Body not JSON, namespace or name missing, a field of the wrong type |
VALIDATION_FAILED | 400 | The registration checks refused the fork (naming, allow-list, schema rules, semver, compatibility) |
MARKETPLACE_FORK_NOT_AVAILABLE | 402 | Free or Basic |
REGISTRATION_QUOTA_EXCEEDED | 402 | Your plan's active-registration cap |
LISTING_NOT_FOUND | 404 | Unknown, or not visible to you |
NOT_FOUND | 404 | Your organisation was not found |
LISTING_NOT_PUBLISHED | 409 | Your own listing that is not published, or whose source is archived |
FORK_ALREADY_EXISTS | 409 | You already have a registration at that namespace.name@version |
PAYLOAD_TOO_LARGE | 413 | Body over 16 KiB |
DAILY_REGISTRATION_CAP_EXCEEDED | 429 | Your plan's daily registration cap |
VALIDATION_UNAVAILABLE | 503 | The copied payloadExample could not be validated right now; retry |
CONFLICT | 409 | A request with the same x-idempotency-key is still being processed |
IDEMPOTENCY_UNAVAILABLE | 503 | The request could not be checked for a repeat; nothing was processed. Retry after Retry-After |
Takedown
A PlatformXe administrator can take down a listing (abusive text, an example holding personal data). It becomes archived: hidden from every other organisation and never republished. You see it with mine=true&status=archived; the MARKETPLACE_LISTING_UNPUBLISHED event names platform-admin as the actor.