Create a new public need (anonymous intake)
const url = 'https://example.com/api/needs/public';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"organizationId":"10000000-0000-0000-0000-000000000001","partnerId":"20000000-0000-0000-0000-000000000002","description":"Community food pantry providing fresh produce, dry goods, and emergency family assistance.","customFields":{"dietaryRestrictions":"Gluten-Free","urgency":"High"},"isConfidential":false,"parentNeedId":"30000000-0000-0000-0000-000000000003","constituentId":"40000000-0000-0000-0000-000000000004","householdId":"50000000-0000-0000-0000-000000000005"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/needs/public \ --header 'Content-Type: application/json' \ --data '{ "organizationId": "10000000-0000-0000-0000-000000000001", "partnerId": "20000000-0000-0000-0000-000000000002", "description": "Community food pantry providing fresh produce, dry goods, and emergency family assistance.", "customFields": { "dietaryRestrictions": "Gluten-Free", "urgency": "High" }, "isConfidential": false, "parentNeedId": "30000000-0000-0000-0000-000000000003", "constituentId": "40000000-0000-0000-0000-000000000004", "householdId": "50000000-0000-0000-0000-000000000005" }'Request Bodyrequired
Section titled “Request Bodyrequired”object
Unique identifier (UUID v4) for the parent organization.
Example
10000000-0000-0000-0000-000000000001Unique identifier (UUID v4) for the assigned partner location facility.
Example
20000000-0000-0000-0000-000000000002Detailed operational description or resource notes.
Example
Community food pantry providing fresh produce, dry goods, and emergency family assistance.Flexible key-value payload for partner-specific intake fields.
object
Example
{ "dietaryRestrictions": "Gluten-Free", "urgency": "High"}Flag marking sensitive constituent request details as confidential.
Example
falseUUID (v4) of parent need if part of a linked multi-step request.
Example
30000000-0000-0000-0000-000000000003UUID (v4) of the constituent record.
Example
40000000-0000-0000-0000-000000000004UUID (v4) of the constituent household group.
Example
50000000-0000-0000-0000-000000000005Responses
Section titled “Responses”Public need created successfully
object
Unique identifier (UUID v4) for the resource.
Unique identifier (UUID v4) for the parent organization.
Unique identifier (UUID v4) for the assigned partner location facility.
Current status of the record or process.
Flexible key-value payload for partner-specific intake fields.
object
Flag marking sensitive constituent request details as confidential.
UUID (v4) of parent need if part of a linked multi-step request.
UUID (v4) of the staff user assigned to handle the request.
UUID (v4) of the user or system process that created the record.
UTC ISO-8601 timestamp when the record was created.
UTC ISO-8601 timestamp when the record was last updated.
Target resolution date and time for the request.
UUID (v4) of the constituent record.
UUID (v4) of the constituent household group.
Warning notice if potential constituent duplicate matches exist.
Human-readable intake reference code.
Example
{ "id": "a1b2c3d4-e5f6-7890-abcd-1234567890ab", "organizationId": "10000000-0000-0000-0000-000000000001", "partnerId": "20000000-0000-0000-0000-000000000002", "status": "NEW", "customFields": { "dietaryRestrictions": "Gluten-Free", "urgency": "High" }, "isConfidential": false, "parentNeedId": "30000000-0000-0000-0000-000000000003", "assignedTo": "a1b2c3d4-e5f6-7890-abcd-1234567890ab", "createdBy": "a1b2c3d4-e5f6-7890-abcd-1234567890ab", "createdAt": "2026-07-28T12:00:00Z", "updatedAt": "2026-07-28T14:30:00Z", "dueDate": "2026-07-31T12:00:00Z", "constituentId": "40000000-0000-0000-0000-000000000004", "householdId": "50000000-0000-0000-0000-000000000005", "duplicateWarning": "Potential match detected: Sarah Jenkins (+17045550199)", "referenceNumber": "REQ-2026-0849"}Bad Request