Swapcard¶
The Swapcard integration imports an event's sessions and their speakers through Swapcard's event-admin GraphQL API. Create the event with Add Event → API → SwapCard; rooms are matched by title (see Room identity and renames). This page covers the credentials, how Onlit works out the room of a session, and the data that reaches your templates.
Event settings¶
| Field | Value |
|---|---|
| API Username | The Swapcard event ID |
| API Password | A Swapcard API key with access to that event |
| API URL | Not used — the integration always talks to Swapcard's event-admin GraphQL endpoint — but the field must not be empty, so enter any placeholder such as https://developer.swapcard.com/ |
| Additional API Headers | Not sent by this integration |
The key is sent as the Authorization header exactly as entered. Onlit finds the
community the event belongs to by itself.
What is imported¶
Each sync fetches the event's sessions in pages, then the people linked to them, and keeps only the sessions that overlap the event's dates in Onlit (a session outside the event period is left out, so check the event's start and end date if a day is missing). Each session becomes one scheduled item with:
| Field | Taken from |
|---|---|
title, description, format, type, place, categories |
the session as Swapcard returns it |
time_start, time_end |
the session's beginsAt and endsAt, read in the event's time zone |
room |
the first session custom field whose label contains room, location, stage, venue, hall, theatre, auditorium or space (the keywords as the integration spells them) — the English translation of its value |
roomSlug, roomFieldLabel |
which custom field supplied the room, for reference |
| every other session custom field | flattened to a top-level key named after the field's label in lowerCamelCase (Track Name → trackName) |
presenters |
the session's speakers, see below |
The room comes from a custom field, not from Swapcard's place
Give sessions a custom field whose label contains one of the words above and put the
room name in it; Swapcard's built-in place is imported but not used as the room. A
session without such a field has no room and is rejected as bad data.
Speaker data¶
Swapcard sessions are imported with a presenters array holding the full profile of every
speaker linked to that session. Alongside the standard profile fields (name, job title,
organization, photo, biography), each presenter carries the speaker's custom fields from
their Swapcard profile, named in camelCase after the field label — a field labeled
Credentials arrives as credentials, NPI Number as npiNumber. Where Swapcard holds an
event-specific value for a field, that value is used in preference to the profile-wide one.
A template reads them like any other JSON value, for example presenters[0].credentials, or
credentials inside a loop over presenters. Fields added in Swapcard after the event was
set up appear on the next sync — no configuration change is needed.
All custom-field types currently exposed by Swapcard are supported. Number fields remain JSON numbers; text, URL, media, multiple-text, and date fields use their source values; select and tree fields use their English display value when available.
One thing to know about the names: the key is the field label with the first word lowercased and the
rest joined up, so Cadmium UserID becomes cadmiumUserid. Check the item's JSON page for the exact
spelling rather than guessing.
Related¶
- Syncing and API health
- API event settings
- Field rules — dropping profile fields you do not want stored
- Troubleshooting integrations