AperioFlow Start free

Docs API reference

API: intake forms

4 endpoints. Send your API key as Authorization: Bearer <key> on each request; see The API and AI assistants for keys, errors, idempotency and the conventions every endpoint shares.

GET /api/projects/{id}/forms

The project's intake forms, each with its public url

Parameters:

NameInTypeRequiredDescription
idpathintegerYesFrom 1 to 2147483647.

Responses:

StatusMeaning
200The forms
401Missing or invalid API key (Error)
404Item (or its parent) does not exist (Error)

POST /api/projects/{id}/forms

Make a public intake form (admins); each submission becomes a task in phase_id, named "{title}

fields (1 to 15) each have a label, a kind (text, long_text, email or choice, with options for a choice) and required. Do not ask for passwords, payment details, or health or other sensitive information. retention_days (30, 90, 180 or 365; default 90) is how long submitted answers are kept; they are deleted then, and with the form. Up to 10 forms per project.

Parameters:

NameInTypeRequiredDescription
idpathintegerYesFrom 1 to 2147483647.
X-ActorheaderstringNoName recorded in the activity log (up to 200 characters, URI-encoded if not ASCII).

Request body (application/json, required).

FieldTypeRequiredDescription
titlestringYesUp to 100 characters.
introstring or nullNoUp to 2000 characters.
phase_idintegerYes
retention_daysintegerNoOne of: 30, 90, 180, 365.
acceptingbooleanNo
fieldsarray of objectYesUp to 15 items.

Responses:

StatusMeaning
201The form
400The request body is invalid or is not valid JSON (Error)
401Missing or invalid API key (Error)
403Admins only
404Item (or its parent) does not exist (Error)

PATCH /api/forms/{id}

Change a form (admins); accepting false stops it at once

Parameters:

NameInTypeRequiredDescription
idpathintegerYesFrom 1 to 2147483647.
X-ActorheaderstringNoName recorded in the activity log (up to 200 characters, URI-encoded if not ASCII).

Request body (application/json, required)

Responses:

StatusMeaning
200The form
400The request body is invalid or is not valid JSON (Error)
401Missing or invalid API key (Error)
403Admins only
404Item (or its parent) does not exist (Error)

DELETE /api/forms/{id}

Delete a form (admins) and every answer sent through it; the tasks stay

Parameters:

NameInTypeRequiredDescription
idpathintegerYesFrom 1 to 2147483647.

Responses:

StatusMeaning
204Deleted
401Missing or invalid API key (Error)
403Admins only
404Item (or its parent) does not exist (Error)

Start free All the docs Video guides

Built for the people who write the code and answer the phone when it breaks.

Run from the UK. Hosted in the UK and Europe.

UK time --:--

Already in?Open the app Start free today
View our policies