Use Full API Integration—the default approach—to keep diagnostic testing search, customer identity, consent when required, ordering, questionnaires, scheduling, and results in your product. Start in Staging (Sandbox) for API Partner testing before switching hosts and credentials for live traffic.
Use webhooks for appointment lifecycle changes and keep results polling separate.
Appointment lifecycle updates can be pushed to an API Partner-owned HTTPS endpoint. Explicitly authorized endpoints can also receive terminal API Partner evidence events. Results and evidence resources remain readable through their GET endpoints for reconciliation.
How webhook delivery works
1. Register an API Partner-owned callback URL with POST /v1/webhook-endpoints.
2. Persist the signing secret that is returned once at creation time.
3. Fitnescity Health queues webhook deliveries asynchronously when appointment state changes or an opted-in API Partner evidence resource reaches a terminal state.
4. Your endpoint verifies the signature, stores the event id and sequence, then updates your own member-facing appointment state.
5. If you ever need reconciliation, use GET /v1/appointments as the polling source of truth.
Subscribe explicitly to appointment.location_changed for opt-in notifications when an existing appointment moves between facilities. Existing subscriptions are not automatically expanded. An address edit to the facility itself is not an appointment reassignment. Creation and a save at the same facility do not emit this event.
The public status and local appointment clock time can stay unchanged. Each facility timezone determines its public UTC instant: 09:00 on November 27, 2026 in America/New_York is 14:00 UTC, while 09:00 in America/Chicago is 15:00 UTC. This facility-only move emits the location notification without an appointment.rescheduled event. An actual scheduling change can emit its applicable lifecycle event independently alongside the location event; scheduling eligibility events can coexist too.
previous_location and location contain address/timezone event-time snapshots. Individual address fields and timezone may be null. previous_scheduled_for uses the previous timezone, while scheduled_for agrees with the post-move appointment read. Later moves or facility edits do not rewrite these snapshots or retries.
Use previous_location.id and location.id for facility identity: each matches the id on discovery location records. Different facilities can have identical addresses, and address fields can be null. Both IDs are frozen with their event-time snapshots; appointment list/detail reads return the current location.id. An unassigned appointment read has id: null. These location IDs are distinct from the envelope delivery id, appointment_id, catalog_id and offering_id. Reconcile available offerings separately after a move; a location ID does not establish that an earlier offering is still applicable.
If an appointment read returns 502 because location identity is temporarily unavailable, retain the last known facility and retry the GET with capped exponential backoff and jitter. An unsuccessful read does not indicate that the appointment is unassigned. Only an explicit location.id: null in a successful appointment read represents an unassigned location.
Deduplicate deliveries by the envelope id and use sequence to detect gaps or out-of-order notifications. Callbacks can arrive out of order and retries retain the same id and body. Re-read GET /v1/appointments/{appointmentId} or the appointment list to reconcile the current location, time and status before updating your member experience.
appointment.scheduling_eligibility_changed is an opt-in notification for attributable asynchronous changes after questionnaire submission. Its payload includes the full appointment lifecycle object plus previous and current eligibility. The event prompts a fresh appointment read; it does not authorize scheduling by itself.
Lifecycle testing is support-assisted in staging. After registering your webhook endpoint and creating an appointment, send support the appointment ID, initial slot, replacement slot, and the scenarios you need: center confirmation, changed-time confirmation, and physician-order approval.
Center confirmation emits appointment.confirmed.
A direct confirmed-to-confirmed location time change emits appointment.rescheduled.
Physician-order approval can be completed as part of the support-assisted certification run. Physician rejection is not currently an API Partner self-service staging action.
Payload example
Every delivery includes a stable envelope plus an appointment lifecycle object under data.object. Persist the envelope id for idempotency and use payload_version to pin your parser.
Return any 2xx response once your consumer has durably accepted the event.
Fitnescity Health retries on 408, 409, 425, 429, 500, 502, 503, 504 and on network/connectivity failures.
Delivery uses up to 6 total attempts with backoff intervals of roughly 60, 120, 240, 480, and 960 seconds between retries.
Deduplicate by the stable envelope id. Retry attempts receive a fresh delivery timestamp and signature, but the event body remains immutable.
Non-retryable non-2xx responses are treated as terminal delivery failures, so reconcile with GET /v1/appointments if your consumer misses an event.
Signed-form availability
This event is emitted after the form is available for retrieval. Its data identifies the form_type, artifact_type, and retrieval_status; the PDF itself is never attached to the webhook.
In addition to webhooks, appointment-related emails sent to members will also carry API Partner branding. See the Communications page for details on co-branded email notifications.
API Partner evidence terminal events
These events are delivered only when the webhook endpoint sets partner_evidence_webhooks_enabled=true and subscribes to the event. Keep evidence GETs as the source of truth; webhook payloads do not include document bytes or upload capabilities.
customer_consent_evidence.accepted
API Partner-provided consent PDF evidence passed validation and can be selected on the order.
customer_consent_evidence.rejected
Customer-consent evidence was rejected; read the evidence resource for its safe reason code.
customer_consent_evidence.failed
Customer-consent evidence processing failed; reconcile the evidence resource before retrying.
physician_order_evidence.accepted
API Partner-provided physician-order PDF evidence passed validation for its appointment.
physician_order_evidence.rejected
Physician-order evidence was rejected; read the evidence resource for its safe reason code.
physician_order_evidence.failed
Physician-order evidence processing failed; reconcile the evidence resource before retrying.
Appointment events
appointment.created
The appointment record now exists, but scheduling has not progressed beyond the initial created state yet.
appointment.requested
A scheduling request has been submitted and the appointment is now awaiting confirmation from the test location. For appointments created through Full API Integration, this maps to pending_confirmation on appointment reads.
appointment.confirmed
The requested slot has been confirmed and the appointment now has a confirmed scheduled datetime.
appointment.rescheduled
A previously confirmed appointment changed to a different confirmed scheduled datetime.
appointment.canceled
The appointment was canceled and should be treated as no longer scheduled for the member.
appointment.no_show
The member did not attend the scheduled appointment at the test location.
appointment.results_in_progress
Downstream result processing has started, but finalized result payloads are not ready to retrieve yet.
appointment.results_ready
Finalized results are ready and can now be retrieved through GET /v1/results with sibling result_units metadata.
appointment.form_available
A signed form is available. Re-read the appointment, then use its signed-form endpoint to request a temporary download URL.
appointment.scheduling_eligibility_changed
Emitted only for recognized VO2 questionnaire-based eligibility changes that happen asynchronously after submission. A later Operations unlock of the physician-review gate can emit this event; the synchronous questionnaire submission outcome does not. Re-read the appointment before changing scheduling access.
appointment.location_changed
An existing appointment was reassigned to another facility. Includes frozen previous and current address/timezone snapshots, independently of applicable lifecycle or scheduling eligibility events. An address edit to the facility itself is not an appointment reassignment.
Headers to verify
X-Fitnescity-Event-Id
X-Fitnescity-Sequence
X-Fitnescity-Payload-Version
X-Fitnescity-Timestamp
X-Fitnescity-Signature
Signatures use HMAC-SHA256 over ${timestamp}.${rawBody} with the exact raw request body. X-Fitnescity-Timestamp is decimal Unix epoch seconds for that delivery attempt; reject timestamps more than five minutes from your local clock before checking the signature. Persist the signing secret securely on the API Partner side because it is shown only once at endpoint creation time.
If your webhook consumer is unavailable, or if you need to reconcile after deployment changes, poll the appointment resource by updated timestamp. Reconcile API Partner-provided consent PDF evidence with GET /v1/api-first/consent-evidence/{evidenceId} and API Partner-provided physician-order PDF evidence with GET /v1/api-first/physician-order-evidence/{evidenceId}.
curl -X GET "https://api-staging.engineeringfitnescity.com/v1/appointments?updated_after=2026-04-10T00:00:00.000Z&limit=25" \
-H "x-api-key: <staging-prefix>.<staging-secret>"