TANITARDevelopers
WebhooksEvent catalogevent

event.event.unpublished

Version 1 of the event.event.unpublished webhook event.

The event.event.unpublished event.

Event typeevent.event.unpublished
Schema version1
Routing keyevent.event.event.unpublished.v1
Produced byevent-management-service
Schemaurn:defendr:contract:event:event-unpublished:1

data fields

FieldTypeRequiredDescription
eventIdstringyes
accountIdstringyes
publicationState"unpublished"yes
phase"upcoming", "live", "ended"yes
revisionintegeryes
createdAtstring (date-time)yes
updatedAtstring (date-time)yes

Some fields are required only in particular states. The JSON Schema below is authoritative.

Example delivery

Signed with the example secret whsec_placeholder_example_webhooks_signing_secret, so you can check your verifier against it. See Verifying signatures.

POST /your/webhook/endpoint HTTP/1.1
content-type: application/json
webhook-id: whd_00000000-0000-4000-8000-000000000004
webhook-timestamp: 1800000000
webhook-signature: v1,ZbJfbbERRjtK/KOgW1yrbZNFeYB+3WWjnAvPcekvATg=
tanitar-event-type: event.event.unpublished
tanitar-schema-version: 1
tanitar-delivery-attempt: 1

{"messageId":"evt_00000000-0000-4000-8000-000000000004","kind":"event","type":"event.event.unpublished","schemaVersion":1,"occurredAt":"2027-01-15T10:00:00.000Z","producer":"event-management-service","accountId":"acc_11111111-1111-4111-8111-111111111111","correlationId":"corr_00000000-0000-4000-8000-000000000004","data":{"eventId":"evt_123","accountId":"acc_123","publicationState":"unpublished","phase":"upcoming","revision":4,"createdAt":"2029-12-01T10:00:00.000Z","updatedAt":"2029-12-04T10:00:00.000Z"}}

The same body, formatted:

{
  "messageId": "evt_00000000-0000-4000-8000-000000000004",
  "kind": "event",
  "type": "event.event.unpublished",
  "schemaVersion": 1,
  "occurredAt": "2027-01-15T10:00:00.000Z",
  "producer": "event-management-service",
  "accountId": "acc_11111111-1111-4111-8111-111111111111",
  "correlationId": "corr_00000000-0000-4000-8000-000000000004",
  "data": {
    "eventId": "evt_123",
    "accountId": "acc_123",
    "publicationState": "unpublished",
    "phase": "upcoming",
    "revision": 4,
    "createdAt": "2029-12-01T10:00:00.000Z",
    "updatedAt": "2029-12-04T10:00:00.000Z"
  }
}

JSON Schema

urn:defendr:contract:event:event-unpublished:1
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:defendr:contract:event:event-unpublished:1",
  "type": "object",
  "required": [
    "eventId",
    "accountId",
    "publicationState",
    "phase",
    "revision",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "eventId": {
      "type": "string"
    },
    "accountId": {
      "type": "string"
    },
    "publicationState": {
      "const": "unpublished"
    },
    "phase": {
      "enum": [
        "upcoming",
        "live",
        "ended"
      ]
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}

On this page