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.
| Field | Description |
|---|---|
| eventId | UUID, generated by the SDK. Used for deduplication. |
| type | Event type in area.action form, for example edit.undo. |
| occurredAt | ISO 8601 timestamp with offset. |
| sessionId | Optional UUID, set by startSession(). |
| taskId | Optional UUID, set by startTask(). Groups the events of one task. |
| sequence | Optional position within the session, set by session.track(). |
| payload | The event's fields. At most 32 keys. |
{
"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.
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.| Field | Required | Description |
|---|---|---|
| aspectRatio | No | Image aspect ratio, rounded to two decimals (no pixels or dimensions) |
| initial | Yes | Starting brightness, contrast and saturation values (−100 to 100) |
edit.adjustment_changed A single control was changed.| Field | Required | Description |
|---|---|---|
| control | Yes | Which control changed: brightness, contrast or saturation |
| from | Yes | Value before the change (−100 to 100) |
| inputMethod | No | Whether the change came from the slider, a step button or a reset |
| msSinceStart | No | Milliseconds since the editing session began |
| to | Yes | Value after the change (−100 to 100) |
edit.preset_applied A named preset was applied.| Field | Required | Description |
|---|---|---|
| msSinceStart | No | Milliseconds since the editing session began |
| preset | Yes | Preset name from a fixed list |
| resulting | Yes | Brightness, contrast and saturation after applying the preset |
edit.undo The previous action was undone.| Field | Required | Description |
|---|---|---|
| resulting | Yes | Brightness, contrast and saturation after the undo |
| reverted | Yes | Which kind of action was undone |
edit.final_selected The user explicitly confirmed a final edit.| Field | Required | Description |
|---|---|---|
| actionCount | Yes | Number of edit actions in the session |
| durationMs | No | Session duration in milliseconds |
| final | Yes | Confirmed brightness, contrast and saturation |
| preset | Yes | Last 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.| Field | Required | Description |
|---|---|---|
| burst | No | Whether the set came from a burst |
| setSize | Yes | Number of photos in the set |
cull.photo_rated A photo was marked as a pick, reject or maybe.| Field | Required | Description |
|---|---|---|
| position | Yes | Position in the set (not the photo) |
| rating | Yes | Pick, reject or maybe |
| reason | No | Reason from a fixed list |
cull.compared Two photos were compared and one preferred.| Field | Required | Description |
|---|---|---|
| positionA | Yes | Position of the first photo |
| positionB | Yes | Position of the second photo |
| preferred | Yes | Which was preferred: a or b |
cull.final_selected The selection was confirmed.| Field | Required | Description |
|---|---|---|
| durationMs | No | Time spent selecting, in milliseconds |
| picks | Yes | Number of photos kept |
| rejects | Yes | Number 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.| Field | Required | Description |
|---|---|---|
| tempoBpm | No | Project tempo in beats per minute |
| trackCount | Yes | Number of tracks in the project |
mix.track_adjusted A control on one track was changed.| Field | Required | Description |
|---|---|---|
| control | Yes | Which control: gain, pan, EQ band or reverb |
| from | Yes | Value before the change (−100 to 100) |
| msSinceStart | No | Milliseconds since the session began |
| to | Yes | Value after the change (−100 to 100) |
| track | Yes | Track number (not its name) |
mix.effect_toggled An effect was switched on or off.| Field | Required | Description |
|---|---|---|
| effect | Yes | Effect from a fixed list |
| enabled | Yes | Whether the effect is now on |
| track | Yes | Track number (not its name) |
mix.versions_compared Two mix versions were compared and one preferred.| Field | Required | Description |
|---|---|---|
| preferred | Yes | Which version was preferred: a or b |
| versionA | Yes | First version number |
| versionB | Yes | Second version number |
mix.final_selected A final mix version was chosen.| Field | Required | Description |
|---|---|---|
| actionCount | Yes | Number of actions in the session |
| durationMs | No | Session duration in milliseconds |
| version | Yes | Chosen 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.| Field | Required | Description |
|---|---|---|
| kind | Yes | Kind of suggestion from a fixed list |
| lengthBucket | No | Rough size: short, medium or long |
| surface | Yes | Where it appeared: editor, sidebar or inline |
suggestion.resolved The person responded to the suggestion.| Field | Required | Description |
|---|---|---|
| editMagnitude | No | If edited: light or heavy changes |
| msToDecide | Yes | Milliseconds between showing and responding |
| outcome | Yes | Accepted, 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.| Field | Required | Description |
|---|---|---|
| answerFormat | No | How answers are given: multiple choice, numeric or expression |
| attemptLimit | No | Maximum attempts allowed, if any |
| difficulty | Yes | Difficulty level |
| subject | Yes | Subject area |
| taskType | Yes | Kind of task: practice_question, quiz_question, worked_example |
| topic | No | Topic within the subject |
task.action The user took a defined action within the task.| Field | Required | Description |
|---|---|---|
| action | Yes | Which action: answer_submitted, hint_requested, solution_viewed |
| attempt | No | Attempt number the action belongs to |
| correct | No | Whether the app marked a submitted answer correct (not the answer itself) |
| msSinceStart | No | Milliseconds since the task started |
task.feedback The app gave the user feedback.| Field | Required | Description |
|---|---|---|
| attempt | No | Attempt number the feedback responds to |
| feedbackType | Yes | Kind of feedback: correct_marker, incorrect_marker, hint, explanation, worked_solution |
| msSinceStart | No | Milliseconds since the task started |
task.error The task hit an error.| Field | Required | Description |
|---|---|---|
| errorType | Yes | Kind of error: invalid_input_format, timed_out, app_error |
| msSinceStart | No | Milliseconds since the task started |
task.retry The user tried again.| Field | Required | Description |
|---|---|---|
| attempt | Yes | The new attempt number (2 or more) |
| msSinceStart | No | Milliseconds since the task started |
task.completed The task finished. The outcome is the app's claim until its backend verifies it.| Field | Required | Description |
|---|---|---|
| attempts | Yes | Number of attempts made |
| durationMs | No | Task duration in milliseconds |
| outcome | Yes | success or failure |
task.abandoned The task ended without being completed.| Field | Required | Description |
|---|---|---|
| attempts | Yes | Number of attempts made |
| durationMs | No | Task duration in milliseconds |
| reason | Yes | Why: 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
| Field | On | Values |
|---|---|---|
| taskType | task.started | The template's task types, below |
| complexity | task.started | simple, moderate, complex |
| entryPoint | task.started | home, search, notification, link, shortcut, other |
| userExperience | task.started | first_time, returning, frequent |
| deviceClass | task.started | phone, tablet, desktop, web |
| action | task.action | The template's actions, plus option_selected, step_completed, back_navigated, help_opened, undo |
| feedbackType | task.feedback | success_message, error_message, validation_message, confirmation_shown, suggestion_shown, tip_shown |
| errorType | task.error | validation_failed, network_error, timed_out, permission_denied, not_found, app_error |
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
| Category | Task types | Actions |
|---|---|---|
Books & readingapp_books | find_book, reading_session, take_note, write_review | search_run, filter_applied, title_opened, chapter_finished, bookmark_added, highlight_added |
Businessapp_business | create_invoice, approve_request, schedule_meeting, update_record | field_completed, record_saved, approval_given, approval_rejected, attachment_added, sent |
Video & streamingapp_entertainment | find_title, watch_session, build_watchlist, rate_title | search_run, title_opened, playback_started, playback_paused, skipped, added_to_list, rating_given |
Personal financeapp_financeNever collects amounts, balances, account or card details, payees and transaction descriptions | set_budget, pay_bill, transfer_money, categorise_transactions, review_spending | field_completed, category_chosen, payee_selected, confirmation_reviewed, submitted, cancelled |
Food & drinkapp_food_drink | order_food, follow_recipe, plan_meals, book_table | item_added, item_removed, option_customised, recipe_step_done, checkout_started, order_placed |
Gamesapp_games | complete_level, tutorial, match, purchase_decision | level_started, objective_completed, hint_used, retry_chosen, setting_changed, item_used |
Health & fitnessapp_health_fitnessNever collects measurements, weights, heart rate or other biometric data, health conditions and locations | log_workout, follow_plan, log_meal, set_goal | exercise_completed, set_completed, rest_taken, plan_adjusted, entry_logged, goal_updated |
Lifestyleapp_lifestyle | plan_routine, home_project, browse_ideas, save_inspiration | search_run, filter_applied, item_saved, list_item_checked, reminder_set |
Medicalapp_medicalNever collects symptoms, diagnoses, conditions, medications, providers and any health information | book_appointment, complete_intake_form, request_refill, telehealth_setup | field_completed, slot_selected, document_added, confirmation_reviewed, submitted, cancelled |
Music listeningapp_music | find_music, listening_session, build_playlist | search_run, track_played, track_skipped, track_liked, added_to_playlist, playlist_reordered |
Navigation & transportapp_navigationNever collects locations, addresses, routes and journey times | plan_route, book_ride, find_parking, transit_journey | route_requested, route_option_chosen, stop_added, ride_option_chosen, trip_started, trip_ended |
Newsapp_news | read_article, follow_topic, customise_feed | article_opened, article_finished, topic_followed, topic_muted, saved_for_later |
Productivityapp_productivity | manage_tasks, write_document, organise_files, plan_schedule | item_created, item_completed, item_moved, item_deleted, shortcut_used, search_run |
Shoppingapp_shopping | find_product, compare_products, checkout, return_item | search_run, filter_applied, product_viewed, added_to_cart, removed_from_cart, coupon_applied, order_placed |
Social & communityapp_socialNever collects posts, messages, profiles, contacts and who people interact with | create_post, join_community, moderate_content, set_privacy | draft_started, media_attached, post_published, setting_changed, report_submitted, notification_opened |
Sportsapp_sports | follow_team, check_scores, fantasy_lineup, book_session | team_followed, match_opened, lineup_changed, player_compared, booking_confirmed |
Travelapp_travelNever collects destinations, travel dates, traveller details and payment details | search_trip, book_stay, book_flight, manage_booking, plan_itinerary | search_run, filter_applied, option_compared, date_changed, booking_confirmed, booking_changed, booking_cancelled |
Utilities & toolsapp_utilities | configure_setting, scan_document, convert_file, set_reminder | setting_changed, tool_opened, file_selected, conversion_run, result_saved |
Design & creativeapp_graphics_design | create_design, edit_template, export_asset | layer_added, element_moved, style_changed, template_applied, asset_exported |
Developer toolsapp_developer_tools | debug_issue, deploy_change, review_code, configure_project | command_run, test_run, build_started, build_failed, error_inspected, change_committed |
Property searchapp_real_estate | search_listings, book_viewing, apply_for_rental | search_run, filter_applied, listing_saved, listing_compared, viewing_requested, application_submitted |
Industry and business software
| Category | Task types | Actions |
|---|---|---|
Software & internetapp_saasSoftware & technology | onboard_account, configure_feature, resolve_ticket, build_report | setting_changed, integration_connected, filter_applied, report_generated, teammate_invited |
Telecommunicationsapp_telecommunicationsSoftware & technology | provision_service, troubleshoot_connection, handle_outage, change_plan | diagnostic_run, ticket_updated, service_activated, escalated, resolved |
Managed IT servicesapp_mspSoftware & technology | triage_ticket, patch_devices, onboard_user, respond_alert | ticket_assigned, script_run, device_restarted, escalated, resolved |
Marketing agenciesapp_marketing_agencySoftware & technology | build_campaign, approve_creative, schedule_posts, analyse_results | audience_selected, asset_attached, variant_created, campaign_launched, report_exported |
DTC e-commerceapp_ecommerce_opsSoftware & technology | fulfil_order, manage_inventory, handle_return, update_listing | order_picked, stock_adjusted, refund_issued, listing_published, label_printed |
Financial servicesapp_financial_servicesFinancial, legal & insuranceNever collects amounts, account numbers, client identities and document contents | review_application, reconcile_accounts, run_compliance_check, prepare_report | document_checked, exception_flagged, approval_given, escalated, completed |
Insurance brokerageapp_insuranceFinancial, legal & insuranceNever collects premiums, policyholder details, claim details and document contents | quote_policy, process_claim, renew_policy, compare_carriers | field_completed, carrier_selected, document_requested, quote_sent, claim_status_changed |
Legal & complianceapp_legal_complianceFinancial, legal & insuranceNever collects document text, case details, parties and findings | review_document, complete_checklist, file_report, assess_risk | clause_flagged, checklist_item_done, evidence_attached, approved, escalated |
Law firmsapp_law_firmFinancial, legal & insuranceNever collects client and matter details, document text and billing amounts | draft_document, review_contract, log_time, manage_matter | template_selected, clause_inserted, redline_accepted, redline_rejected, time_entry_saved |
Healthcare & life sciencesapp_healthcareHealthcare & scienceNever collects patient information, clinical details, codes chosen and any health data | schedule_patient, process_referral, code_visit, prior_authorisation | slot_selected, form_completed, code_selected, submitted, denied, resubmitted |
Scientific researchapp_researchHealthcare & science | run_experiment, analyse_dataset, review_protocol, record_observation | parameter_set, sample_logged, analysis_run, result_flagged, protocol_approved |
Manufacturing & roboticsapp_manufacturingIndustrial, energy & logistics | run_production, quality_inspection, machine_setup, maintenance | parameter_adjusted, inspection_passed, inspection_failed, line_stopped, line_restarted |
Energy & utilitiesapp_energy_utilitiesIndustrial, energy & logisticsNever collects locations, addresses and customer details | dispatch_crew, outage_response, inspect_asset, process_connection | work_order_created, crew_assigned, asset_inspected, issue_logged, resolved |
Equipment rentalapp_equipment_rentalIndustrial, energy & logistics | book_rental, check_out_equipment, check_in_inspection, schedule_maintenance | item_selected, availability_checked, condition_recorded, damage_flagged, completed |
Freight brokerage & 3PLapp_freightIndustrial, energy & logistics | book_shipment, match_carrier, track_exception, reconcile_invoice | load_posted, carrier_selected, rate_accepted, exception_logged, delivered |
Field servicesapp_field_servicesIndustrial, energy & logisticsNever collects customer details, addresses and prices | schedule_job, complete_job, quote_job, follow_up | job_assigned, status_updated, part_used, checklist_item_done, invoice_sent |
Public sector & educationapp_public_sectorPublic, services & consumerNever collects the identities and details of citizens, applicants or students | process_application, manage_enrolment, handle_service_request, publish_notice | form_reviewed, document_checked, approved, rejected, escalated |
Business & professional servicesapp_professional_servicesPublic, services & consumer | scope_project, log_time, prepare_deliverable, client_review | estimate_created, task_assigned, time_entry_saved, deliverable_submitted, approved |
Retail & consumerapp_retailPublic, services & consumer | point_of_sale, stock_count, merchandising, customer_return | item_scanned, discount_applied, count_recorded, variance_flagged, return_processed |
Property managementapp_property_managementPublic, services & consumerNever collects tenant details, addresses and rent amounts | handle_maintenance, lease_renewal, move_in_inspection, move_out_inspection | request_triaged, vendor_assigned, inspection_item_recorded, notice_sent, resolved |
Staffing & recruitingapp_staffingPublic, services & consumerNever collects candidate identities, CVs, assessments and pay | screen_candidates, schedule_interviews, fill_shift, submit_placement | candidate_shortlisted, candidate_rejected, interview_scheduled, offer_sent, shift_filled |
Hotels & hospitalityapp_hospitalityPublic, services & consumerNever collects guest details, room numbers and payment details | check_in_guest, manage_reservation, housekeeping_turnover, handle_request | room_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.