Submit Response
Submit Response
Submit KPI values and optional evidence attachments from the authenticated in-app flow
POST
Submit Response
Submit Response
Submit a Custom KPI response with values and optional evidence attachments. This is the authenticated submission flow — the caller must be a logged-in member of the organization.For submissions from external data owners via magic-link, see Submit Public Form instead.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the parent dataset
Body Parameters
UUID of the organization this response belongs to
UUID of the campaign being responded to
UUID of the facility (optional — used to match an assignment)
KPI values to submit (1–100 entries, no duplicate
kpi_id). Each entry:| Field | Type | Description |
|---|---|---|
kpi_id | string | UUID of the KPI definition |
value_numeric | number | For number/percentage types (nullable) |
value_text | string | For text type, max 10 000 chars (nullable) |
value_date | string | For date type, ISO date (nullable) |
option_id | string | For select type — UUID of the chosen option (nullable) |
UUIDs of evidence files previously uploaded via Presigned URL. Max 20 files.
Response
Returns the created response set with saved values and attachment metadata (HTTP 201).Response set UUID
Resolved campaign-assignment UUID
ISO 8601 timestamp
Saved value objects
Attachment metadata:
| Field | Type | Description |
|---|---|---|
file_id | string | File UUID |
file_name | string | Original file name |
file_url | string | Presigned download URL |
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Duplicatekpi_id entries in the values array
Related Endpoints
Presigned URL
Upload evidence files before submitting
Dataset Values
View all submitted values across campaigns

