# Event types

Source: https://swapcard.dev/webhooks/webhooks-events


Choose which changes Swapcard notifies you about. Each event type is a value you pass in <code>hooks</code> when you create or update a subscription.

## Available event types
| Object | Event types (`hooks` values) | Object reference |
| ------ | ---------------------------- | ---------------- |
| People | `PROFILE_CREATE`, `PROFILE_UPDATE`, `PROFILE_DELETE` | [People](/webhooks/reference/people), sent in `event_profile` |
| Exhibitor | `EXHIBITOR_CREATE`, `EXHIBITOR_UPDATE`, `EXHIBITOR_DELETE` | [Exhibitor](/webhooks/reference/exhibitor), sent in `event_exhibitor` |
| Session (`planning` in the API) | `PLANNING_CREATE`, `PLANNING_UPDATE`, `PLANNING_DELETE` | [Planning](/webhooks/reference/planning), sent in `planning` |
| Session attendee | `PLANNING_ATTENDEE_CREATE`, `PLANNING_ATTENDEE_DELETE` | [Planning attendee](/webhooks/reference/planning-attendee) |
| Meeting | `MEETING_CREATE`, `MEETING_UPDATE` | [Meeting](/webhooks/reference/meetings) |

These values come from the [`HookTypes`](../content-api/graphql-event-api-schema/types/enums/hook-types.mdx) enum of the Content API. In Studio, you pick the same events from the grid in the **Create a webhook** dialog.

The `action` field of the payload tells you which change triggered the request, for example `profile_update` or `exhibitor_create`. See [Payload and signature](/webhooks/webhooks-payload#delivery-payload-fields) for the documented values.

### Not available yet

Webhooks for products and documents (create, update and delete) are planned but not available yet.

## Example payloads
### People
Sent for `PROFILE_UPDATE` when an attendee's profile changes. The profile is in `event_profile`.

```json title="profile_update"
{
  "context":{
    "event_id":"RXZlbnRfMjA2OTg=",
    "user_id":"VXNlcl8xNjk2OQ=="
  },
  "event_profile":{
    "id":"RXZlbnRQZW9wbGVfMTI4MTQw",
    "event_id":"RXZlbnRfMjA2OTg=",
    "community_profile":{
      "id":"Q29tbXVuaXR5UHJvZmlsZV84MTI2",
      "user":{
        "id":"VXNlcl8yNzAwMA==",
        "email":"jane.doe@example.com"
      },
      "first_name":"Jane",
      "last_name":"Doe",
      "email":"jane.doe@example.com",
      "is_active":true,
      "is_visible":true,
      "engagement_score":0.75,
      "community_id":"Q29tbXVuaXR5XzU0OA==",
      "source":"UNKNOWN",
      "biography":"specific bio 2",
      "community_groups":[
        {
          "id":"Q29tbXVuaXR5R3JvdXBfODkxOQ==",
          "name":"Members"
        },
        {
          "id":"Q29tbXVuaXR5R3JvdXBfMTcxMDk=",
          "name":"Exhibitors"
        }
      ],
      "created_at":"2021-09-07T12:44:08Z",
      "updated_at":"2024-07-18T09:07:07Z"
    },
    "event_groups":[
      {
        "id":"RXZlbnRHcm91cF8xMTk1MA==",
        "name":"Attendees",
        "event_id":"RXZlbnRfMjA2OTg=",
        "community_group_id":"Q29tbXVuaXR5R3JvdXBfODkxOQ=="
      },
      {
        "id":"RXZlbnRHcm91cF8xMTk1Mg==",
        "name":"Exhibitors",
        "event_id":"RXZlbnRfMjA2OTg=",
        "community_group_id":"Q29tbXVuaXR5R3JvdXBfMTcxMDk="
      },
      {
        "id":"RXZlbnRHcm91cF8yNDE0MzM=",
        "name":"my custom group",
        "event_id":"RXZlbnRfMjA2OTg=",
        "community_group_id":"Q29tbXVuaXR5R3JvdXBfMTcxMDk="
      }
    ],
    "created_at":"2021-09-07T12:44:08Z",
    "updated_at":"2024-07-18T09:07:07Z"
  },
  "action":"profile_update",
  "datetime":"2024-07-18T09:07:07.638Z"
}
```

### Exhibitor
Sent for `EXHIBITOR_UPDATE` when an exhibitor changes. The exhibitor is in `event_exhibitor`.

```json title="exhibitor_update"
{
  "context":{
    "event_id":"RXZlbnRfMjA2OTg=",
    "user_id":"VXNlcl8xNjk2OQ=="
  },
  "event_exhibitor":{
    "event_id":"RXZlbnRfMjA2OTg=",
    "exhibitor":{
      "id":"RXhoaWJpdG9yXzU0MzIz",
      "logo":{
        "id":"TWVkaWFfMzM4MzUy",
        "content_type":"image/png",
        "public_url":"https://cdn.dev.corp.swapcard.com/public/images/f464d059485348f79d7539f8c27c9ff9.png",
        "original_url":"https://cdn.dev.corp.swapcard.com/public/images/f464d059485348f79d7539f8c27c9ff9.png",
        "created_at":"2024-07-17T12:33:41Z",
        "updated_at":"2024-07-17T12:33:41Z",
        "deleted_at":"1970-01-01T00:00:00Z"
      },
      "name":"EXHIB",
      "description":"<p>Let's add a description 4</p>",
      "website_url":"https://swapcard.com",
      "social_networks":[
        {
          "type":"LINKEDIN",
          "profile":"swapcard"
        }
      ],
      "features":{
        
      },
      "banner_video_url":"{\"data\":{\"videoId\":\"ENw5pbmpy64\",\"type\":0}}",
      "banner_image":{
        "id":"TWVkaWFfMzM4MzUx",
        "content_type":"image/png",
        "public_url":"https://cdn.dev.corp.swapcard.com/public/images/394dc634841e45df9d3178720d9e69d7.png",
        "original_url":"https://cdn.dev.corp.swapcard.com/public/images/394dc634841e45df9d3178720d9e69d7.png",
        "created_at":"2024-07-17T12:33:35Z",
        "updated_at":"2024-07-17T12:33:35Z",
        "deleted_at":"1970-01-01T00:00:00Z"
      },
      "background_image":{
        "id":"TWVkaWFfMzM4MzUz",
        "content_type":"image/png",
        "public_url":"https://cdn.dev.corp.swapcard.com/public/images/3253232b451c40f696dda5b0a93dd631.png",
        "original_url":"https://cdn.dev.corp.swapcard.com/public/images/3253232b451c40f696dda5b0a93dd631.png",
        "created_at":"2024-07-17T12:33:52Z",
        "updated_at":"2024-07-17T12:33:52Z",
        "deleted_at":"1970-01-01T00:00:00Z"
      },
      "exhibitor_documents":[
        {
          "document":{
            "id":"RG9jdW1lbnRfMzg3OTI3",
            "name":"document test",
            "url":"IMAGE",
            "public_url":"https://cdn.dev.corp.swapcard.com/public/images/09ed5c1b35df45ea853085b4c25e3cdb.png",
            "created_at":"2024-07-17T12:31:59Z",
            "updated_at":"2024-07-17T12:31:59Z"
          },
          "created_at":"2024-07-17T12:31:59Z"
        }
      ],
      "exhibitor_members":[
        {
          "id":"RXhoaWJpdG9yUGVyc29uXzMzNDgw",
          "community_profile_id":"Q29tbXVuaXR5UHJvZmlsZV84MTI2",
          "created_at":"2024-07-17T12:37:41Z",
          "updated_at":"2024-07-17T12:37:41Z"
        },
        {
          "id":"RXhoaWJpdG9yUGVyc29uXzMzNDgx",
          "community_profile_id":"Q29tbXVuaXR5UHJvZmlsZV8xODI2MzQ=",
          "created_at":"2024-07-17T12:37:47Z",
          "updated_at":"2024-07-17T12:37:47Z"
        }
      ],
      "exhibitor_products":[
        {
          "product":{
            "id":"UHJvZHVjdF82NDg2NA==",
            "name":"My product",
            "created_at":"2024-07-17T12:45:45Z",
            "updated_at":"2024-07-17T12:45:45Z"
          },
          "created_at":"2024-07-17T12:45:50Z",
          "updated_at":"2024-07-17T12:45:50Z"
        }
      ],
      "created_at":"2022-02-02T15:18:23Z",
      "updated_at":"2024-07-17T12:46:12Z"
    },
    "community_id":"Q29tbXVuaXR5XzU0OA==",
    "document_limit":5,
    "features":{
      "can_export_contacts":true,
      "can_export_meetings_confirmed":true,
      "can_export_chats":true,
      "can_export_exhibitor_pages":true,
      "can_export_exhibitor_items":true,
      "can_export_advertisements":true,
      "can_export_registrations":true,
      "can_export_watched_exhibitor_plannings":true,
      "can_export_documents":true,
      "generate_api_key":true
    },
    "advertisements":[
      {
        "id":"QWR2ZXJ0aXNlbWVudF81MjY=",
        "image":{
          "id":"TWVkaWFfMzM4MzQ5",
          "content_type":"image/png",
          "public_url":"https://cdn.dev.corp.swapcard.com/public/images/511126fa16ae45209b8b3553685adf62.png",
          "original_url":"https://cdn.dev.corp.swapcard.com/public/images/511126fa16ae45209b8b3553685adf62.png",
          "created_at":"2024-07-17T12:26:28Z",
          "updated_at":"2024-07-17T12:26:28Z",
          "deleted_at":"1970-01-01T00:00:00Z"
        },
        "mobile_image":{
          "id":"TWVkaWFfMzM4MzUw",
          "content_type":"image/png",
          "public_url":"https://cdn.dev.corp.swapcard.com/public/images/b8c00cdae34448c696a7f4ff09e9a407.png",
          "original_url":"https://cdn.dev.corp.swapcard.com/public/images/b8c00cdae34448c696a7f4ff09e9a407.png",
          "created_at":"2024-07-17T12:26:28Z",
          "updated_at":"2024-07-17T12:26:28Z",
          "deleted_at":"1970-01-01T00:00:00Z"
        },
        "created_at":"1970-01-01T00:00:00Z",
        "updated_at":"1970-01-01T00:00:00Z"
      }
    ],
    "booths":[
      {
        "id":"RXZlbnRFeGhpYml0b3JMb2NhdGlvbl8yMDUz",
        "position_on_location":"0",
        "position_on_exhibitor":"0",
        "location":{
          "id":"TWVldGluZ1BsYWNlXzIwMDk0",
          "name":"test1545414",
          "capacity":3,
          "created_at":"2022-05-13T14:12:21Z",
          "updated_at":"2022-05-13T14:12:21Z"
        }
      }
    ],
    "event_groups":[
      {
        "id":"RXZlbnRHcm91cF8yNDE0MzM=",
        "name":"my custom group",
        "event_id":"RXZlbnRfMjA2OTg=",
        "community_group_id":"Q29tbXVuaXR5R3JvdXBfMTcxMDk="
      }
    ],
    "created_at":"2022-02-02T15:18:23Z",
    "updated_at":"2022-02-02T15:18:23Z"
  },
  "action":"exhibitor_update",
  "datetime":"2024-07-17T12:46:12.889Z"
}
```
