Download OpenAPI specification:
provider required | string (Auth.OAuthProviders) Value: "google" The OAuth2 provider to use for login. |
c required | string The callback URL of the OAuth2 login. See details |
r | string The redirect URL for login callback. |
Create a new organization
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
slug required | string |
{- "name": "string",
- "description": "string",
- "metadata": { },
- "slug": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
Create a new parent-child relationship between units by linking them
parentId | string <uuid> (uuid) |
childId required | string <uuid> (uuid) |
orgId required | string <uuid> (uuid) |
{- "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
- "childId": "da54978f-5a21-4efd-948e-3959f61b037a",
- "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa"
}
{- "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
- "childId": "da54978f-5a21-4efd-948e-3959f61b037a",
- "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa"
}
Get a specific unit with the slug of its organization by its unique identifier
slug required | string |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
Update an existing unit or organization by its unique identifier
slug required | string |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
slug required | string |
{- "name": "string",
- "description": "string",
- "metadata": { },
- "slug": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "slug": "string"
}
Add a member to an organization
slug required | string |
memberId required | string <uuid> (uuid) |
{- "memberId": "92983ab9-49c8-444b-85ae-6e40402cf72e"
}
{- "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
- "memberId": "92983ab9-49c8-444b-85ae-6e40402cf72e"
}
List all unit IDs, optionally filtered by parent organization ID
slug required | string |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
List all units, optionally filtered by parent organization ID
slug required | string |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a new unit
slug required | string |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
{- "name": "string",
- "description": "string",
- "metadata": { }
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get a specific unit with the slug of its organization by its unique identifier
slug required | string |
id required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Update an existing unit or organization by its unique identifier
slug required | string |
id required | string <uuid> (uuid) |
name required | string The name of the unit or organization |
description required | string A brief description of the unit or organization |
required | object Metadata for the unit or organization, can include additional information like contact details, address, etc. |
{- "name": "string",
- "description": "string",
- "metadata": { }
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Add a member to an unit
slug required | string |
id required | string <uuid> (uuid) |
memberId required | string <uuid> (uuid) |
{- "memberId": "92983ab9-49c8-444b-85ae-6e40402cf72e"
}
{- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "memberId": "92983ab9-49c8-444b-85ae-6e40402cf72e"
}
List all unit IDs, optionally filtered by parent unit ID
slug required | string |
id required | string <uuid> (uuid) |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
List all units, optionally filtered by parent unit ID
slug required | string |
id required | string <uuid> (uuid) |
parentId | string <uuid> (uuid) The parent unit ID used to filter subunits by their parent-child relationship |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Create a new form under a unit.
slug required | string |
unitId required | string <uuid> (uuid) |
title required | string The title of the form. |
description required | string The description of the form. |
previewMessage | string (Optional) Preview text for the form. If not provided, fallback to first 25 characters of description. |
deadline | string <date-time> (Optional) Deadline for form completion. |
{- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "deadline": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List forms under a specific unit.
slug required | string |
unitId required | string <uuid> (uuid) |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Preview recipients by orgIds/unitIds (no duplicated).
orgId | string <uuid> Target organization ID to collect users from. |
unitIds | Array of strings <uuid> (uuid) [ items <uuid > ] Target unit IDs to collect users from. |
{- "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
- "unitIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "recipients": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
Create a new question for a specific form.
formId required | string <uuid> (uuid) |
required required | boolean Whether the question is required to answer or not. |
type required | string Enum: "short_text" "long_text" "single_choice" "multiple_choice" "date" The type of the question. |
title required | string What is the question. |
description required | string More details of this question. |
order required | integer <int32> What is the number of this question in the form. |
Array of objects (Forms.ChoiceOption) Available choice options for single_choice and multiple_choice questions. |
{- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "name": "string"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all the questions of a specific form.
formId required | string <uuid> (uuid) |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
Update an existing question by its unique identifier.
formId required | string <uuid> (uuid) |
questionId required | string <uuid> (uuid) |
required required | boolean Whether the question is required to answer or not. |
type required | string Enum: "short_text" "long_text" "single_choice" "multiple_choice" "date" The type of the question. |
title required | string What is the question. |
description required | string More details of this question. |
order required | integer <int32> What is the number of this question in the form. |
Array of objects (Forms.ChoiceOption) Available choice options for single_choice and multiple_choice questions. |
{- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "name": "string"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Update an existing form by its unique identifier.
id required | string <uuid> (uuid) |
title required | string The title of the form. |
description required | string The description of the form. |
previewMessage | string (Optional) Preview text for the form. If not provided, fallback to first 25 characters of description. |
deadline | string <date-time> (Optional) Deadline for form completion. |
{- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "deadline": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get a specific form by its unique identifier.
id required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Publish a form. Set status to 'published', compute recipients, update inbox threads.
id required | string <uuid> (uuid) |
orgId | string <uuid> Target organization ID to collect users from. |
unitIds | Array of strings <uuid> (uuid) [ items <uuid > ] Target unit IDs to collect users from. |
{- "orgId": "25b2c2d5-a7fc-47d0-89e4-8709a1560bfa",
- "unitIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
Get all answers for a specific question across all form responses.
formId required | string <uuid> (uuid) |
questionId required | string <uuid> (uuid) |
[- {
- "question": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "required": true,
- "type": "short_text",
- "title": "string",
- "description": "string",
- "order": 0,
- "choices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "answers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "responseId": "ed662de2-39c1-4e7d-a6bf-6980511adfaf",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "value": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
]
Submit a new response to a form.
formId required | string <uuid> (uuid) |
required | Array of objects (Responses.AnswerRequest) All answers for this form submission. |
{- "answers": [
- {
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "value": "string"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
List all responses for a specific form.
formId required | string <uuid> (uuid) |
{- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "responses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Get a specific response by ID.
formId required | string <uuid> (uuid) |
responseId required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "formId": "126460ed-49b2-4c69-849a-bd8904ec5d8f",
- "submittedBy": "a641a425-2470-49a5-92c2-5825c2833a34",
- "questionAnswerPairs": [
- {
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "answer": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
Get all the preview of the inbox messages with pagination.
isRead | boolean Default: false |
isStarred | boolean Default: false |
isArchived | boolean Default: false |
page | integer <int32> Default: 1 |
size | integer <int32> Default: 10 |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postedBy": "cfa5c9c4-24a7-4cce-bb37-5fc849553c1f",
- "title": "string",
- "subtitle": "string",
- "type": "text",
- "previewMessage": "string",
- "contentId": "21aa1683-ca25-4edf-bc18-01ad04a4821b",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isRead": false,
- "isStarred": false,
- "isArchived": false
}
], - "totalPages": 0,
- "totalItems": 0,
- "currentPage": 0,
- "pageSize": 0,
- "hasNextPage": true
}
Get the user inbox message by its unique identifier.
id required | string <uuid> (uuid) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postedBy": "cfa5c9c4-24a7-4cce-bb37-5fc849553c1f",
- "title": "string",
- "subtitle": "string",
- "type": "text",
- "previewMessage": "string",
- "contentId": "21aa1683-ca25-4edf-bc18-01ad04a4821b",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "title": "string",
- "description": "string",
- "previewMessage": "string",
- "status": "draft",
- "unitId": "b3eb5f92-604a-46b9-9881-9d84000fd7ed",
- "lastEditor": "36717201-0d72-4dee-86ae-b634e48b6033",
- "deadline": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isRead": false,
- "isStarred": false,
- "isArchived": false
}
Update flags for the user inbox message.
id required | string <uuid> (uuid) |
isRead | boolean Default: false |
isStarred | boolean Default: false |
isArchived | boolean Default: false |
{- "isRead": false,
- "isStarred": false,
- "isArchived": false
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "message": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postedBy": "cfa5c9c4-24a7-4cce-bb37-5fc849553c1f",
- "title": "string",
- "subtitle": "string",
- "type": "text",
- "previewMessage": "string",
- "contentId": "21aa1683-ca25-4edf-bc18-01ad04a4821b",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "isRead": false,
- "isStarred": false,
- "isArchived": false
}