Let your customers view their completed GOFA assessments without a second login.
GOFA hosts a My records page for completed Vital Scan and AI Nutrition assessments. Customers stay signed in to your application; they do not create a GOFA account. Your backend authorizes access to their records.
The page is scoped to one enterprise, environment, and exact referenceId.
Customers can filter by service and open a saved result. GOFA applies the same
12-month retention deadline as the Inquiry API. Opening a record does not start
another assessment or consume assessment credits.
Supply the signed-in customer's stable referenceId when creating an Inquiry:
{
"workflowId": "ai-nutrition",
"referenceId": "member_7f32a",
"returnUrl": "https://uat.example.com/assessments/return"
}The ordinary link from creation grants access only to this Inquiry. Its participant session has no My records entry, even after the participant completes the assessment. A customer reference associates records in the enterprise backend.
For access to history from your application, issue the standalone link below
after checking the signed-in customer. A separately authorized resume
session for a referenced assessment also offers
My records when issued by a key with both Inquiry permissions, relationships
enabled and no blocked attributes. A create-only or field-restricted key can
resume an eligible assessment, but its link opens only that assessment. Opening a record from a history-enabled
session preserves the original assessment session and deadline. The company
return action retains the original inquiry_id.
An expired or revoked Inquiry session cannot open a new history session. An already-open history session remains read-only for its own one-hour lifetime; the return-to-assessment link disappears when the source session is no longer valid. Use the standalone endpoint below for a fresh history visit from your application.
Add a My records link to your application. After authenticating your customer, your backend requests a short-lived entry link:
POST /api/platform/v1/history-sessions
Authorization: Bearer <GOFA_API_KEY>
Content-Type: application/jsonRequires inquiries:read, Allow relationships enabled and an empty attribute
blocklist. A key restricted to status reads receives 403 forbidden.
No query parameters are accepted. The JSON body has a
4,096-byte limit.
| Field | Required | Description |
|---|---|---|
referenceId | Yes | Customer identifier derived from your authenticated session; 1–128 characters. |
workflowId | No | vital-scan or ai-nutrition. Selects service branding and the default return URL; does not restrict which service records are available. Defaults to vital-scan. |
returnUrl | No | Approved HTTPS return URL. Overrides the selected service's default. |
Unknown fields are rejected. An API key identifies your enterprise; you cannot supply a different enterprise ID.
{
"ok": true,
"data": {
"launchUrl": "https://www.uat.gofa.app/flow/history#token=<temporary-entry-token>",
"expiresAt": "2026-11-14T02:05:00.000Z"
},
"requestId": "example-request-id"
}A successful response is 201 Created. Redirect the customer to launchUrl
unchanged. The entry link can be redeemed once within five minutes. GOFA exchanges
it for a secure, HttpOnly, one-hour browser session and removes the token from the
address bar. Refreshing the history page within that session does not require a
new GOFA login. After expiry, the customer returns to your application for a new
entry link. Issue a new link for each intentional visit; do not cache launch URLs.
referenceId on your backend from the current authenticated user.referenceId for this endpoint.referenceId.Knowing a referenceId alone does not authorize access. GOFA validates the signed
session and enterprise ownership on every history and result request. Records
outside that session's customer scope are not returned.
See Reference IDs, Usage and credits, and Inquiry lifecycle.