Select a GOFA service and issue a temporary Hosted Flow URL.
POST /api/platform/v1/inquiriesRequires inquiries:create. No query parameters are accepted. Send a JSON object
within the 4,096-byte request limit.
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <GOFA_API_KEY> |
Content-Type | Yes | application/json |
Idempotency-Key | Yes | 8–128 characters: letters, digits, _, ., :, or -. |
| Field | Required | Description |
|---|---|---|
workflowId | Yes | vital-scan or ai-nutrition. Selects one complete GOFA service. |
referenceId | No | Your opaque customer identifier, trimmed, 1–128 characters. |
returnUrl | No | Approved HTTPS URL, at most 2,048 characters. Overrides the service default. |
Unknown fields are rejected. Do not send userId, locale, templateId, health
information, or image data here. The user provides service inputs inside GOFA.
curl --request POST 'https://www.uat.gofa.app/api/platform/v1/inquiries' \
--header "Authorization: Bearer $GOFA_API_KEY" \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: vital-request-0001' \
--data '{"workflowId":"vital-scan","referenceId":"member_7f32a","returnUrl":"https://uat.example.com/assessments/return"}'201 Created, with this data structure:
| Field | Meaning |
|---|---|
inquiry | Full Inquiry detail, initially created. |
launchUrl | Temporary URL for the participant. Use it unchanged, including the fragment. |
sessionId | ID of the access session; save it if you need to revoke that session. |
See Quick start for a full response example. The Inquiry and initial session expire 24 hours after creation. Creation alone does not deduct assessment credits.
GOFA stores creation outcomes for 24 hours, scoped to your enterprise and test
environment. Retrying the same request with the same idempotency key returns the
original creation response. A successful replay is still 201, with
Idempotency-Replayed: true; the first successful request returns false.
409 conflict.GET to read progress.A double-click and a network retry for the same assessment should share one key.
A later intentional assessment for the same customer needs a new key. The
customer's referenceId is not an idempotency key.