Event schemas

Relay only accepts events that match a schema you selected. Each schema is a fixed list of events and fields, and nothing outside it is stored.

The event envelope

The SDK wraps every event in the same envelope. You only supply the type and payload.

FieldDescription
eventIdUUID, generated by the SDK. Used for deduplication.
typeEvent type in area.action form, for example edit.undo.
occurredAtISO 8601 timestamp with offset.
sessionIdOptional UUID, set by startSession().
taskIdOptional UUID, set by startTask(). Groups the events of one task.
sequenceOptional position within the session, set by session.track().
payloadThe event's fields. At most 32 keys.
example event
{
  "eventId": "6f1c2a0e-6c1d-4a49-9a3b-0f1f5d0f6b21",
  "type": "edit.adjustment_changed",
  "occurredAt": "2026-10-08T03:00:00Z",
  "sessionId": "b0d1c7c4-3f0e-4d4a-8e8e-2f1d1c9a7e10",
  "sequence": 3,
  "payload": { "control": "contrast", "from": 0, "to": 18, "inputMethod": "slider" }
}

Strict validation

  • Unknown fields are stripped before storage and the event is quarantined for review.
  • Invalid values are rejected and not kept.
  • Batches are limited to 50 events and 64 KB.
Never send

Media, file names, free text, keystrokes, screenshots, cookies, passwords or device fingerprints. The schemas have no place for them.

Schemas built for specific apps

Detailed schemas designed around one kind of app. When you set up your app you select a schema and which of its optional fields to include; required fields are always included.

Photo editing activity photo_edit v1

Editing actions, parameter changes and the final selection made in a photo editor. No images or media.

edit.session_started An editing session began on an image.
FieldRequiredDescription
aspectRatioNoImage aspect ratio, rounded to two decimals (no pixels or dimensions)
initialYesStarting brightness, contrast and saturation values (−100 to 100)
edit.adjustment_changed A single control was changed.
FieldRequiredDescription
controlYesWhich control changed: brightness, contrast or saturation
fromYesValue before the change (−100 to 100)
inputMethodNoWhether the change came from the slider, a step button or a reset
msSinceStartNoMilliseconds since the editing session began
toYesValue after the change (−100 to 100)
edit.preset_applied A named preset was applied.
FieldRequiredDescription
msSinceStartNoMilliseconds since the editing session began
presetYesPreset name from a fixed list
resultingYesBrightness, contrast and saturation after applying the preset
edit.undo The previous action was undone.
FieldRequiredDescription
resultingYesBrightness, contrast and saturation after the undo
revertedYesWhich kind of action was undone
edit.final_selected The user explicitly confirmed a final edit.
FieldRequiredDescription
actionCountYesNumber of edit actions in the session
durationMsNoSession duration in milliseconds
finalYesConfirmed brightness, contrast and saturation
presetYesLast preset applied, if any

Photo selection photo_cull v1

Picks, rejects and head-to-head choices when narrowing a set of photos, with reason codes. No images.

cull.set_opened A set of photos was opened for selection.
FieldRequiredDescription
burstNoWhether the set came from a burst
setSizeYesNumber of photos in the set
cull.photo_rated A photo was marked as a pick, reject or maybe.
FieldRequiredDescription
positionYesPosition in the set (not the photo)
ratingYesPick, reject or maybe
reasonNoReason from a fixed list
cull.compared Two photos were compared and one preferred.
FieldRequiredDescription
positionAYesPosition of the first photo
positionBYesPosition of the second photo
preferredYesWhich was preferred: a or b
cull.final_selected The selection was confirmed.
FieldRequiredDescription
durationMsNoTime spent selecting, in milliseconds
picksYesNumber of photos kept
rejectsYesNumber of photos rejected

Audio mixing activity audio_mix v1

Track adjustments, effects, A/B comparisons between mix versions and the final mix chosen. No audio.

mix.session_started A mixing session began.
FieldRequiredDescription
tempoBpmNoProject tempo in beats per minute
trackCountYesNumber of tracks in the project
mix.track_adjusted A control on one track was changed.
FieldRequiredDescription
controlYesWhich control: gain, pan, EQ band or reverb
fromYesValue before the change (−100 to 100)
msSinceStartNoMilliseconds since the session began
toYesValue after the change (−100 to 100)
trackYesTrack number (not its name)
mix.effect_toggled An effect was switched on or off.
FieldRequiredDescription
effectYesEffect from a fixed list
enabledYesWhether the effect is now on
trackYesTrack number (not its name)
mix.versions_compared Two mix versions were compared and one preferred.
FieldRequiredDescription
preferredYesWhich version was preferred: a or b
versionAYesFirst version number
versionBYesSecond version number
mix.final_selected A final mix version was chosen.
FieldRequiredDescription
actionCountYesNumber of actions in the session
durationMsNoSession duration in milliseconds
versionYesChosen version number

Assistant suggestion feedback suggestion_feedback v1

Which kinds of AI suggestion people accept, reject or edit, and how quickly. No text or content.

suggestion.shown The assistant showed a suggestion.
FieldRequiredDescription
kindYesKind of suggestion from a fixed list
lengthBucketNoRough size: short, medium or long
surfaceYesWhere it appeared: editor, sidebar or inline
suggestion.resolved The person responded to the suggestion.
FieldRequiredDescription
editMagnitudeNoIf edited: light or heavy changes
msToDecideYesMilliseconds between showing and responding
outcomeYesAccepted, rejected, edited or ignored

Learning activity learning_task v1

How practice questions are attempted: subject and difficulty, attempts, hints, feedback and the verified outcome. No questions, answers or text.

task.started A task began.
FieldRequiredDescription
answerFormatNoHow answers are given: multiple choice, numeric or expression
attemptLimitNoMaximum attempts allowed, if any
difficultyYesDifficulty level
subjectYesSubject area
taskTypeYesKind of task: practice_question, quiz_question, worked_example
topicNoTopic within the subject
task.action The user took a defined action within the task.
FieldRequiredDescription
actionYesWhich action: answer_submitted, hint_requested, solution_viewed
attemptNoAttempt number the action belongs to
correctNoWhether the app marked a submitted answer correct (not the answer itself)
msSinceStartNoMilliseconds since the task started
task.feedback The app gave the user feedback.
FieldRequiredDescription
attemptNoAttempt number the feedback responds to
feedbackTypeYesKind of feedback: correct_marker, incorrect_marker, hint, explanation, worked_solution
msSinceStartNoMilliseconds since the task started
task.error The task hit an error.
FieldRequiredDescription
errorTypeYesKind of error: invalid_input_format, timed_out, app_error
msSinceStartNoMilliseconds since the task started
task.retry The user tried again.
FieldRequiredDescription
attemptYesThe new attempt number (2 or more)
msSinceStartNoMilliseconds since the task started
task.completed The task finished. The outcome is the app's claim until its backend verifies it.
FieldRequiredDescription
attemptsYesNumber of attempts made
durationMsNoTask duration in milliseconds
outcomeYessuccess or failure
task.abandoned The task ended without being completed.
FieldRequiredDescription
attemptsYesNumber of attempts made
durationMsNoTask duration in milliseconds
reasonYesWhy: navigated_away, skipped, timed_out, closed

Task templates

43 templates cover common mobile app categories and the workflows inside business software. Each one uses the standard task events, with its own fixed list of task types and actions, so its schema is as strict as a hand-written one. They capture steps and outcomes only: never what someone typed, chose by name or looked at.

Shared fields

FieldOnValues
taskTypetask.startedThe template's task types, below
complexitytask.startedsimple, moderate, complex
entryPointtask.startedhome, search, notification, link, shortcut, other
userExperiencetask.startedfirst_time, returning, frequent
deviceClasstask.startedphone, tablet, desktop, web
actiontask.actionThe template's actions, plus option_selected, step_completed, back_navigated, help_opened, undo
feedbackTypetask.feedbacksuccess_message, error_message, validation_message, confirmation_shown, suggestion_shown, tip_shown
errorTypetask.errorvalidation_failed, network_error, timed_out, permission_denied, not_found, app_error
Sensitive categories

Categories such as personal finance, health and recruiting never collect the details listed for them, and those details are named in their consent copy. They need an extra review before collection is approved.

Mobile app categories

CategoryTask typesActions
Books & reading
app_books
find_book, reading_session, take_note, write_reviewsearch_run, filter_applied, title_opened, chapter_finished, bookmark_added, highlight_added
Business
app_business
create_invoice, approve_request, schedule_meeting, update_recordfield_completed, record_saved, approval_given, approval_rejected, attachment_added, sent
Video & streaming
app_entertainment
find_title, watch_session, build_watchlist, rate_titlesearch_run, title_opened, playback_started, playback_paused, skipped, added_to_list, rating_given
Personal finance
app_financeNever collects amounts, balances, account or card details, payees and transaction descriptions
set_budget, pay_bill, transfer_money, categorise_transactions, review_spendingfield_completed, category_chosen, payee_selected, confirmation_reviewed, submitted, cancelled
Food & drink
app_food_drink
order_food, follow_recipe, plan_meals, book_tableitem_added, item_removed, option_customised, recipe_step_done, checkout_started, order_placed
Games
app_games
complete_level, tutorial, match, purchase_decisionlevel_started, objective_completed, hint_used, retry_chosen, setting_changed, item_used
Health & fitness
app_health_fitnessNever collects measurements, weights, heart rate or other biometric data, health conditions and locations
log_workout, follow_plan, log_meal, set_goalexercise_completed, set_completed, rest_taken, plan_adjusted, entry_logged, goal_updated
Lifestyle
app_lifestyle
plan_routine, home_project, browse_ideas, save_inspirationsearch_run, filter_applied, item_saved, list_item_checked, reminder_set
Medical
app_medicalNever collects symptoms, diagnoses, conditions, medications, providers and any health information
book_appointment, complete_intake_form, request_refill, telehealth_setupfield_completed, slot_selected, document_added, confirmation_reviewed, submitted, cancelled
Music listening
app_music
find_music, listening_session, build_playlistsearch_run, track_played, track_skipped, track_liked, added_to_playlist, playlist_reordered
Navigation & transport
app_navigationNever collects locations, addresses, routes and journey times
plan_route, book_ride, find_parking, transit_journeyroute_requested, route_option_chosen, stop_added, ride_option_chosen, trip_started, trip_ended
News
app_news
read_article, follow_topic, customise_feedarticle_opened, article_finished, topic_followed, topic_muted, saved_for_later
Productivity
app_productivity
manage_tasks, write_document, organise_files, plan_scheduleitem_created, item_completed, item_moved, item_deleted, shortcut_used, search_run
Shopping
app_shopping
find_product, compare_products, checkout, return_itemsearch_run, filter_applied, product_viewed, added_to_cart, removed_from_cart, coupon_applied, order_placed
Social & community
app_socialNever collects posts, messages, profiles, contacts and who people interact with
create_post, join_community, moderate_content, set_privacydraft_started, media_attached, post_published, setting_changed, report_submitted, notification_opened
Sports
app_sports
follow_team, check_scores, fantasy_lineup, book_sessionteam_followed, match_opened, lineup_changed, player_compared, booking_confirmed
Travel
app_travelNever collects destinations, travel dates, traveller details and payment details
search_trip, book_stay, book_flight, manage_booking, plan_itinerarysearch_run, filter_applied, option_compared, date_changed, booking_confirmed, booking_changed, booking_cancelled
Utilities & tools
app_utilities
configure_setting, scan_document, convert_file, set_remindersetting_changed, tool_opened, file_selected, conversion_run, result_saved
Design & creative
app_graphics_design
create_design, edit_template, export_assetlayer_added, element_moved, style_changed, template_applied, asset_exported
Developer tools
app_developer_tools
debug_issue, deploy_change, review_code, configure_projectcommand_run, test_run, build_started, build_failed, error_inspected, change_committed
Property search
app_real_estate
search_listings, book_viewing, apply_for_rentalsearch_run, filter_applied, listing_saved, listing_compared, viewing_requested, application_submitted

Industry and business software

CategoryTask typesActions
Software & internet
app_saasSoftware & technology
onboard_account, configure_feature, resolve_ticket, build_reportsetting_changed, integration_connected, filter_applied, report_generated, teammate_invited
Telecommunications
app_telecommunicationsSoftware & technology
provision_service, troubleshoot_connection, handle_outage, change_plandiagnostic_run, ticket_updated, service_activated, escalated, resolved
Managed IT services
app_mspSoftware & technology
triage_ticket, patch_devices, onboard_user, respond_alertticket_assigned, script_run, device_restarted, escalated, resolved
Marketing agencies
app_marketing_agencySoftware & technology
build_campaign, approve_creative, schedule_posts, analyse_resultsaudience_selected, asset_attached, variant_created, campaign_launched, report_exported
DTC e-commerce
app_ecommerce_opsSoftware & technology
fulfil_order, manage_inventory, handle_return, update_listingorder_picked, stock_adjusted, refund_issued, listing_published, label_printed
Financial services
app_financial_servicesFinancial, legal & insuranceNever collects amounts, account numbers, client identities and document contents
review_application, reconcile_accounts, run_compliance_check, prepare_reportdocument_checked, exception_flagged, approval_given, escalated, completed
Insurance brokerage
app_insuranceFinancial, legal & insuranceNever collects premiums, policyholder details, claim details and document contents
quote_policy, process_claim, renew_policy, compare_carriersfield_completed, carrier_selected, document_requested, quote_sent, claim_status_changed
Legal & compliance
app_legal_complianceFinancial, legal & insuranceNever collects document text, case details, parties and findings
review_document, complete_checklist, file_report, assess_riskclause_flagged, checklist_item_done, evidence_attached, approved, escalated
Law firms
app_law_firmFinancial, legal & insuranceNever collects client and matter details, document text and billing amounts
draft_document, review_contract, log_time, manage_mattertemplate_selected, clause_inserted, redline_accepted, redline_rejected, time_entry_saved
Healthcare & life sciences
app_healthcareHealthcare & scienceNever collects patient information, clinical details, codes chosen and any health data
schedule_patient, process_referral, code_visit, prior_authorisationslot_selected, form_completed, code_selected, submitted, denied, resubmitted
Scientific research
app_researchHealthcare & science
run_experiment, analyse_dataset, review_protocol, record_observationparameter_set, sample_logged, analysis_run, result_flagged, protocol_approved
Manufacturing & robotics
app_manufacturingIndustrial, energy & logistics
run_production, quality_inspection, machine_setup, maintenanceparameter_adjusted, inspection_passed, inspection_failed, line_stopped, line_restarted
Energy & utilities
app_energy_utilitiesIndustrial, energy & logisticsNever collects locations, addresses and customer details
dispatch_crew, outage_response, inspect_asset, process_connectionwork_order_created, crew_assigned, asset_inspected, issue_logged, resolved
Equipment rental
app_equipment_rentalIndustrial, energy & logistics
book_rental, check_out_equipment, check_in_inspection, schedule_maintenanceitem_selected, availability_checked, condition_recorded, damage_flagged, completed
Freight brokerage & 3PL
app_freightIndustrial, energy & logistics
book_shipment, match_carrier, track_exception, reconcile_invoiceload_posted, carrier_selected, rate_accepted, exception_logged, delivered
Field services
app_field_servicesIndustrial, energy & logisticsNever collects customer details, addresses and prices
schedule_job, complete_job, quote_job, follow_upjob_assigned, status_updated, part_used, checklist_item_done, invoice_sent
Public sector & education
app_public_sectorPublic, services & consumerNever collects the identities and details of citizens, applicants or students
process_application, manage_enrolment, handle_service_request, publish_noticeform_reviewed, document_checked, approved, rejected, escalated
Business & professional services
app_professional_servicesPublic, services & consumer
scope_project, log_time, prepare_deliverable, client_reviewestimate_created, task_assigned, time_entry_saved, deliverable_submitted, approved
Retail & consumer
app_retailPublic, services & consumer
point_of_sale, stock_count, merchandising, customer_returnitem_scanned, discount_applied, count_recorded, variance_flagged, return_processed
Property management
app_property_managementPublic, services & consumerNever collects tenant details, addresses and rent amounts
handle_maintenance, lease_renewal, move_in_inspection, move_out_inspectionrequest_triaged, vendor_assigned, inspection_item_recorded, notice_sent, resolved
Staffing & recruiting
app_staffingPublic, services & consumerNever collects candidate identities, CVs, assessments and pay
screen_candidates, schedule_interviews, fill_shift, submit_placementcandidate_shortlisted, candidate_rejected, interview_scheduled, offer_sent, shift_filled
Hotels & hospitality
app_hospitalityPublic, services & consumerNever collects guest details, room numbers and payment details
check_in_guest, manage_reservation, housekeeping_turnover, handle_requestroom_assigned, upgrade_offered, task_completed, request_resolved, reservation_changed

Need a category that isn't here? Tell us what your app does and we can add one.