PlatformXeDocs
Get API Key

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).

MethodPathScopePlanCaller
GET/api/v1/events/custom/marketplaceevents:readEvery planAny organisation
GET/api/v1/events/custom/marketplace/{id}events:readEvery planAny organisation (see visibility)
POST/api/v1/events/custom/marketplace/publishevents:managePro and EnterprisePublisher
DELETE/api/v1/events/custom/marketplace/{id}events:manageEvery planPublisher
POST/api/v1/events/custom/marketplace/{id}/republishevents:managePro and EnterprisePublisher
POST/api/v1/events/custom/marketplace/{id}/forkevents:managePro and EnterpriseAny 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 published and its source registration is not archived. A withdrawn, taken-down or orphaned listing answers 404 LISTING_NOT_FOUND to 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: publisherOrganizationId and publishedBy are null, and sourceCanonicalName is namespace.name@version without the organisation.
  • The publisher sees its own listings in every status, with its own ids.

Browse

GET /api/v1/events/custom/marketplace

QueryDescription
namespaceExact namespace
searchCase-insensitive substring of the title or description (at most 100 characters used; % and _ are literal)
minetrue: your own listings, every status
statuspublished; unpublished or archived only with mine=true
limit1 to 100, default 25
offsetDefault 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

FieldTypeRequiredDescription
registrationIdstringYesOne of your registrations, published
titlestringYes3 to 120 characters
descriptionstringNoAt most 2,000 characters
tagsstring[]NoAt most 10, each at most 32 characters (lower-cased, duplicates dropped)
payloadExampleobjectNoShown 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.

CodeStatusCause
BAD_REQUEST400Body not a JSON object, registrationId or title missing, a field out of bounds, or the example does not match the schema
EVENT_NOT_PUBLISHABLE400platformxe.generic, or a federated (fed-*) type
MARKETPLACE_PUBLISH_NOT_AVAILABLE402Free or Basic
REGISTRATION_NOT_FOUND404Not one of your registrations
REGISTRATION_NOT_PUBLISHED409The registration is draft or archived
EVENT_NOT_PUBLISHABLE409With an example: the event's schema no longer passes the current schema rules (register a new version first)
LISTING_ALREADY_EXISTS409That version is already listed (unpublish or republish it instead)
VALIDATION_UNAVAILABLE503The example could not be validated right now; retry
CONFLICT409A request with the same x-idempotency-key is still being processed
IDEMPOTENCY_UNAVAILABLE503The 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

FieldTypeRequiredDescription
namespacestringYesOne of your allowed namespaces
namestringYesYour name for the event
versionstringNoDefault 1.0.0
descriptionstringNoDefault: a line naming the listing it was forked from
statusstringNodraft (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.

CodeStatusCause
BAD_REQUEST400Body not JSON, namespace or name missing, a field of the wrong type
VALIDATION_FAILED400The registration checks refused the fork (naming, allow-list, schema rules, semver, compatibility)
MARKETPLACE_FORK_NOT_AVAILABLE402Free or Basic
REGISTRATION_QUOTA_EXCEEDED402Your plan's active-registration cap
LISTING_NOT_FOUND404Unknown, or not visible to you
NOT_FOUND404Your organisation was not found
LISTING_NOT_PUBLISHED409Your own listing that is not published, or whose source is archived
FORK_ALREADY_EXISTS409You already have a registration at that namespace.name@version
PAYLOAD_TOO_LARGE413Body over 16 KiB
DAILY_REGISTRATION_CAP_EXCEEDED429Your plan's daily registration cap
VALIDATION_UNAVAILABLE503The copied payloadExample could not be validated right now; retry
CONFLICT409A request with the same x-idempotency-key is still being processed
IDEMPOTENCY_UNAVAILABLE503The 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.