# Changelog

Source: https://swapcard.dev/leads-api/changelog


The GraphQL schema changelog is a list of recent and upcoming changes to our GraphQL API schema. It includes backwards-compatible changes, schema previews, and upcoming breaking changes.

Every entry is labelled so you can scan for what affects you. **Breaking** changes can break existing queries or change runtime behaviour; **Deprecated** items keep working until the removal date announced in the entry, following the [versioning and deprecation policy](/deprecation-policy).

## `leads` and `scanBadges` return `EventPerson`
_2026-01-26 · Breaking_

⚠️ **Breaking Change:** The `leads` query and `scanBadges` mutation now return `EventPerson` instead of `User`.
Previously, `Connection.target` returned `User` for scanned participants. Now it returns `EventPerson`, which contains event-specific profile data.

**The `... on User` fragment will no longer match and return null.**
**Action required:**

Replace `... on User` with `... on EventPerson` in your queries:

```graphql
# Before
target {
  ... on User {
    id
    firstName
    lastName
  }
}

# After
target {
  ... on EventPerson {
    id
    firstName
    lastName
  }
}
```
- **Query:** [<code style={{ fontWeight: 'normal' }}>leads</code>](/content-api/examples/leads)
- **Mutation:** [<code style={{ fontWeight: 'normal' }}>scanBadges</code>](/content-api/examples/scan-badges)
