PPylon Developers

Pushing items

Send your events and other items to the Pylon pool, and withdraw them.

A partner with a push source sends its items straight to the pool instead of being crawled. Every site that shows the pool's items of that kind can show yours, with your attribution, and stops showing an item once you withdraw it.

Before you push

  • A push source. Pylon registers it for your account and gives you its id. It names the kinds it takes (for example event), its language and its time zone.
  • An API key of the same account, with the role api.pool-publisher. See Authentication.

Push items

POST /api/partner/v1/sources/<source id>/items HTTP/1.1
Authorization: Bearer pyk_live_…
Content-Type: application/json

{
  "items": [
    {
      "externalId": "evt-1042",
      "url": "https://agenda.example.pt/evt-1042",
      "values": {
        "title": { "pt-pt": "Noite de Fado" },
        "startsAt": "2026-12-20T21:00:00+00:00",
        "place": { "address": { "city": "Lisboa" } },
        "offerUrl": "https://agenda.example.pt/evt-1042/tickets"
      }
    }
  ]
}
  • externalId (required, 1–200 characters): your id for the item. Pushing the same id again updates it.
  • type (optional): one of the kinds the source takes. Leave it out when the source takes only one.
  • url (optional): the item's page on your site. Visitors follow it from the item.
  • values: the item's fields in the pool vocabulary of its kind. Text fields that have a language carry the source's language as their key. Date-times are ISO 8601 with an offset. Send "status": "cancelled" for a cancelled event. Pylon converts nothing.

A request carries 1 to 100 items and at most 1 MiB. Each item is checked on its own, and the answer says which were accepted and why any were refused:

{
  "acceptedAt": "2026-11-11T10:15:00Z",
  "accepted": ["evt-1042"],
  "refused": [
    { "externalId": "evt-1043", "code": "Ingestion.Push.Values.Invalid",
      "message": "Item 'evt-1043' is refused at 'startsAt': …", "args": { "field": "startsAt" } }
  ]
}

Accepted items reach the pool within moments. An item you push again with the same values changes nothing.

Withdraw an item

DELETE /api/partner/v1/sources/<source id>/items/<externalId> HTTP/1.1
Authorization: Bearer pyk_live_…

The answer is 202 with acceptedAt. The item leaves every site within a minute: sites cache the pool for up to 60 seconds. Pushing it again brings it back. An id Pylon never received is accepted and does nothing.

When a push and a withdrawal of the same item cross, the one Pylon accepted last wins, whatever order they are processed in.

Refusals

StatusWhen
400The body is not this shape: no items, more than 100, or one externalId twice
401No key, or an unknown or revoked key
403The key's role may not push
404The source does not exist for your key's account
409The source takes no pushes now: it is paused or archived
413The body is larger than 1 MiB

Every refusal carries a code and its args, so your client can act on it without reading the message.

On this page