getFormsData
Searching for all form data.
Description
This method creates form data objects by sending a request to the API. It accepts an array of objects of type IFormsPost as the request body to provide the necessary form data. It returns a Promise that resolves to the created objects.
FormData.getFormsData(
langCode,
offset,
limit
);
Parameters schema
Schema
langCode: string
Language code. Default: "en_US"
example: "en_US"
offset: number
Parameter for pagination. Default: 0
example: 0
limit: number
Parameter for pagination. Default: 30
example: 30
Examples
Minimal example
const response = await FormData.getFormsData();
Example with attributes
const response = await FormData.getFormsData('en_US', 0, 30);
Example response
{
"items": [
{
"id": 832,
"formIdentifier": "file_form",
"time": "2025-11-06T08:10:56.552Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
},
{
"marker": "file",
"type": "file",
"value": [
{
"filename": "files/project/page/3492/editor/8d9b0302-fd54-473c-b5f7-a00b9f29b2c6.md",
"downloadLink": "https://your-project.oneentry.cloud/cloud-static/files/project/page/3492/editor/8d9b0302-fd54-473c-b5f7-a00b9f29b2c6.md",
"size": 4463
}
]
}
],
"attributeSetIdentifier": "form"
},
{
"id": 831,
"formIdentifier": "test-form",
"time": "2025-11-06T08:10:55.660Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
}
],
"attributeSetIdentifier": "form"
},
{
"id": 820,
"formIdentifier": "file_form",
"time": "2025-11-06T07:40:48.408Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test"
},
{
"marker": "file",
"type": "file",
"value": [
{
"filename": "files/project/page/3492/editor/0add0878-1ea3-4854-9123-13e4f5d01f16.md",
"downloadLink": "https://your-project.oneentry.cloud/cloud-static/files/project/page/3492/editor/0add0878-1ea3-4854-9123-13e4f5d01f16.md",
"size": 4463
}
]
}
],
"attributeSetIdentifier": "form"
},
"..."
],
"total": 522
}
Response schema
Schema: IFormsDataEntity
items: IFormDataEntity[]
Array of form data objects.
example:
[
{
"id": 1,
"formIdentifier": "form",
"time": "2025-06-06T19:07:45.993Z",
"formData": {},
"attributeSetIdentifier": "form",
"actionMessage": "Action message string"
}
]
total: number
Total number of found records.
example: 100