Saltar al contenido principal

Obtener todos los formularios

En este ejemplo, demostramos cómo recuperar la lista de todos los formularios configurados en el proyecto utilizando la API de OneEntry.

✅ Propósito del escenario:

  • Obtener la lista completa de formularios disponibles en el proyecto de OneEntry.
  • Inspeccionar identificadores de formularios, tipos y esquemas de campos.
  • Usar identificadores de formularios con getFormByMarker() para recuperar detalles completos de los campos.

✅ Lo que necesitas:

  • Una PROJECT_URL y APP_TOKEN válidos para la autenticación con la API de OneEntry.
  • Al menos un formulario configurado en el panel de administración de OneEntry.

📌 Importante:

  • Devuelve un objeto paginado: { items, total }. Usa el identificador con Forms.getFormByMarker() para obtener un formulario específico con detalles completos de los campos.
  • Estos ejemplos no incluyen manejo de errores.
  • Puedes gestionar errores utilizando un bloque try-catch o empleando una construcción como await Promise.catch((error) => error).

📚 Ver en la documentación:

📦 Referencia del SDK:

Pruébalo en vivo

Ejecuta este método de forma interactiva en el sandbox del JS SDK — conecta tu Project URL y App Token en la primera visita, luego abre:

  • Obtener todos los formularios — En este ejemplo, demostramos cómo recuperar la lista de todos los formularios configurados en el proyecto utilizando la API de OneEntry.

Escenario

1. Importar defineOneEntry desde el SDK y definir PROJECT_URL y APP_TOKEN

Ejemplo:

import { defineOneEntry } from 'oneentry';

const PROJECT_URL = 'your-project-url';
const APP_TOKEN = 'your-app-token';

2. Creando un cliente API

Ejemplo:

const { Forms } = defineOneEntry(PROJECT_URL, {
token: APP_TOKEN,
});

3. Obtener todos los formularios

Ejemplo:

const forms = await Forms.getAllForms('en_US');

if ('statusCode' in forms) {
throw new Error(forms.message);
}
Resultado:
{
"items": [
{
"id": 1,
"attributeSetId": 4,
"type": "data",
"localizeInfos": {
"title": "Schedule",
"titleForSite": "",
"successMessage": "Message about successful data processing",
"unsuccessMessage": "Message about unsuccessful data processing",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 9,
"position": 1,
"identifier": "schedule",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "timeInterval",
"marker": "schedule",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Schedule",
"intervals": [
{
"id": "d048af40-bd75-4f7f-ae8d-982d2f2746aa",
"range": [
"2025-04-20T21:00:00.000Z",
"2025-04-20T21:00:00.000Z"
],
"external": [],
"intervals": [
{
"id": "f27a6b86-31a8-4cf1-ad3a-86b184b4269f",
"end": {
"hours": 19,
"minutes": 0
},
"start": {
"hours": 9,
"minutes": 0
},
"period": 60
}
],
"inEveryWeek": true,
"inEveryMonth": true,
"timeIntervals": [
[
"2025-04-06T09:00:00.000Z",
"2025-04-06T10:00:00.000Z"
],
[
"...",
"..."
],
[
"2026-03-29T18:00:00.000Z",
"2026-03-29T19:00:00.000Z"
]
]
},
{
"id": "dcde4900-5ba1-4394-b020-12cdabc514c6",
"range": [
"2025-04-21T21:00:00.000Z",
"2025-04-21T21:00:00.000Z"
],
"external": [],
"intervals": [
{
"id": "11168047-8428-415d-ac77-4a7757892fe4",
"end": {
"hours": 19,
"minutes": 0
},
"start": {
"hours": 16,
"minutes": 0
},
"period": 60
}
],
"inEveryWeek": true,
"inEveryMonth": true,
"timeIntervals": [
[
"2025-04-07T16:00:00.000Z",
"2025-04-07T17:00:00.000Z"
]
[
"...",
"..."
],
[
"2026-03-30T18:00:00.000Z",
"2026-03-30T19:00:00.000Z"
]
]
}
]
},
"additionalFields": {}
}
]
},
{
"id": 2,
"attributeSetId": 1,
"type": "data",
"localizeInfos": {
"title": "Entity",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 17,
"position": 2,
"identifier": "entity",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "entity",
"marker": "entity",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [
{
"title": "Blue service",
"value": {
"id": "p-2-7",
"depth": 0,
"isPinned": false,
"parentId": null,
"position": 2,
"selected": true
}
},
{
"title": "Green service",
"value": {
"id": "p-2-6",
"depth": 0,
"isPinned": false,
"parentId": null,
"position": 3,
"selected": true
}
},
{
"title": "Red service",
"value": {
"id": "p-2-2",
"depth": 0,
"isPinned": false,
"parentId": null,
"position": 4,
"selected": true
}
}
],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Entity"
},
"additionalFields": {}
}
]
},
{
"id": 3,
"attributeSetId": 2,
"type": "data",
"localizeInfos": {
"title": "Contact us",
"titleForSite": "",
"successMessage": "Message about successful data processing",
"unsuccessMessage": "Message about unsuccessful data processing",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 5,
"position": 3,
"identifier": "contact_us",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "first_name",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "First name"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "email",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
},
"emailInspectionValidator": true
},
"initialValue": null,
"localizeInfos": {
"title": "Email"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "surname",
"position": 3,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"initialValue": null,
"localizeInfos": {
"title": "Surname"
},
"additionalFields": {}
},
{
"type": "list",
"marker": "topic",
"position": 4,
"settings": {},
"isVisible": true,
"listTitles": [
{
"title": "Article",
"value": "article",
"extended": {
"type": null,
"value": null
},
"position": 1
},
{
"title": "Article-2",
"value": "article-2",
"extended": {
"type": null,
"value": null
},
"position": 2
}
],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Topic"
},
"additionalFields": {}
},
{
"type": "text",
"marker": "text",
"position": 5,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Text"
},
"additionalFields": {}
},
{
"type": "button",
"marker": "send",
"position": 7,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Send"
},
"additionalFields": {}
}
]
},
{
"id": 4,
"attributeSetId": 5,
"type": "sing_in_up",
"localizeInfos": {
"title": "Registration",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 4,
"identifier": "reg",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "email_reg",
"isLogin": true,
"isSignUp": false,
"position": 1,
"settings": {},
"isVisible": true,
"isPassword": false,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
},
"emailInspectionValidator": true
},
"initialValue": null,
"localizeInfos": {
"title": "E-mail"
},
"additionalFields": {},
"isSignUpRequired": false,
"isNotificationEmail": false,
"isNotificationPhoneSMS": false,
"isNotificationPhonePush": false
},
{
"type": "string",
"marker": "name_reg",
"isLogin": false,
"isSignUp": true,
"position": 2,
"settings": {},
"isVisible": true,
"isPassword": false,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Name"
},
"additionalFields": {},
"isSignUpRequired": false,
"isNotificationEmail": false,
"isNotificationPhoneSMS": false,
"isNotificationPhonePush": false
},
{
"type": "string",
"marker": "phone_reg",
"isLogin": false,
"isSignUp": true,
"position": 3,
"settings": {},
"isVisible": true,
"isPassword": false,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Phone"
},
"additionalFields": {},
"isSignUpRequired": false,
"isNotificationEmail": false,
"isNotificationPhoneSMS": false,
"isNotificationPhonePush": false
},
{
"type": "string",
"marker": "password_reg",
"isLogin": false,
"isSignUp": false,
"position": 4,
"settings": {},
"isVisible": true,
"isPassword": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
},
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"initialValue": null,
"localizeInfos": {
"title": "Password"
},
"additionalFields": {},
"isSignUpRequired": false,
"isNotificationEmail": false,
"isNotificationPhoneSMS": false,
"isNotificationPhonePush": false
},
{
"type": "string",
"marker": "email_notification_reg",
"isLogin": false,
"isSignUp": false,
"position": 5,
"settings": {},
"isVisible": true,
"isPassword": false,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "email for notification"
},
"additionalFields": {},
"isSignUpRequired": false,
"isNotificationEmail": true,
"isNotificationPhoneSMS": false,
"isNotificationPhonePush": false
}
]
},
{
"id": 5,
"attributeSetId": 3,
"type": "order",
"localizeInfos": {
"title": "Order",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 2,
"position": 5,
"identifier": "order",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "name",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Name"
},
"additionalFields": {}
}
]
},
{
"id": 6,
"attributeSetId": 8,
"type": "order",
"localizeInfos": {
"title": "Subscription",
"titleForSite": "Subscription",
"successMessage": "Message about successful data processing",
"unsuccessMessage": "Message about unsuccessful data processing",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 21,
"position": 6,
"identifier": "subscription",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "date",
"marker": "expired_date",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Expired date"
},
"additionalFields": {}
},
{
"type": "list",
"marker": "subscription_time",
"position": 5,
"settings": {},
"isVisible": true,
"listTitles": [
{
"title": "1 month",
"value": "1",
"extended": {
"type": "real",
"value": "100"
},
"position": 1
},
{
"title": "6 months",
"value": "6",
"extended": {
"type": "real",
"value": "500"
},
"position": 2
},
{
"title": "1 year",
"value": "12",
"extended": {
"type": "real",
"value": "999"
},
"position": 3
}
],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Subscription time"
},
"additionalFields": {}
}
]
},
{
"id": 7,
"attributeSetId": 10,
"type": "order",
"localizeInfos": {
"title": "Guest order",
"titleForSite": "",
"successMessage": "Message about successful data processing",
"unsuccessMessage": "Message about unsuccessful data processing",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 7,
"identifier": "guest_order",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "guest_phone",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Phone"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "guest_name",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Name"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "guest_email",
"position": 3,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Email"
},
"additionalFields": {}
}
]
},
{
"id": 8,
"attributeSetId": 11,
"type": "data",
"localizeInfos": {
"title": "File",
"titleForSite": "",
"successMessage": "Successful data processing",
"unsuccessMessage": "Unsuccessful data processing",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 8,
"identifier": "file",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "file",
"marker": "file",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "File"
},
"additionalFields": {}
},
{
"type": "image",
"marker": "image",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Image"
},
"additionalFields": {}
},
{
"type": "groupOfImages",
"marker": "images_group",
"position": 3,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Images group"
},
"additionalFields": {}
}
]
},
{
"id": 9,
"attributeSetId": 12,
"type": "order",
"localizeInfos": {
"title": "Tickets",
"titleForSite": "Tickets",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 6,
"position": 9,
"identifier": "tickets_form",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "timeInterval",
"marker": "schedule",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "Schedule",
"intervals": [
{
"id": "ef9cf848-7373-4b81-98bd-7ad33aa951e2",
"range": [
"2025-04-26T21:00:00.000Z",
"2025-04-26T21:00:00.000Z"
],
"external": [],
"intervals": [
{
"id": "f2042e47-c650-4fc6-ae1c-efdb109b450f",
"end": {
"hours": 21,
"minutes": 30
},
"start": {
"hours": 16,
"minutes": 30
},
"period": 90
}
],
"inEveryWeek": true,
"inEveryMonth": true,
"timeIntervals": [
[
"2025-04-05T16:30:00.000Z",
"2025-04-05T18:00:00.000Z"
],
[
"2025-04-05T18:00:00.000Z",
"2025-04-05T19:30:00.000Z"
],
[
"2025-04-05T19:30:00.000Z",
"2025-04-05T21:00:00.000Z"
],
[
"2025-04-12T16:30:00.000Z",
"2025-04-12T18:00:00.000Z"
],
[
"2025-04-12T18:00:00.000Z",
"2025-04-12T19:30:00.000Z"
],
[
"2025-04-12T19:30:00.000Z",
"2025-04-12T21:00:00.000Z"
],
[
"2025-04-19T16:30:00.000Z",
"2025-04-19T18:00:00.000Z"
],
[
"2025-04-19T18:00:00.000Z",
"2025-04-19T19:30:00.000Z"
],
[
"2025-04-19T19:30:00.000Z",
"2025-04-19T21:00:00.000Z"
],
[
"2025-04-26T16:30:00.000Z",
"2025-04-26T18:00:00.000Z"
],
[
"2025-04-26T18:00:00.000Z",
"2025-04-26T19:30:00.000Z"
],
[
"2025-04-26T19:30:00.000Z",
"2025-04-26T21:00:00.000Z"
],
[
"2025-05-03T16:30:00.000Z",
"2025-05-03T18:00:00.000Z"
],
[
"2025-05-03T18:00:00.000Z",
"2025-05-03T19:30:00.000Z"
],
[
"2025-05-03T19:30:00.000Z",
"2025-05-03T21:00:00.000Z"
],
[
"2025-05-10T16:30:00.000Z",
"2025-05-10T18:00:00.000Z"
],
[
"2025-05-10T18:00:00.000Z",
"2025-05-10T19:30:00.000Z"
],
[
"2025-05-10T19:30:00.000Z",
"2025-05-10T21:00:00.000Z"
],
[
"2025-05-17T16:30:00.000Z",
"2025-05-17T18:00:00.000Z"
],
[
"2025-05-17T18:00:00.000Z",
"2025-05-17T19:30:00.000Z"
],
[
"2025-05-17T19:30:00.000Z",
"2025-05-17T21:00:00.000Z"
],
[
"2025-05-24T16:30:00.000Z",
"2025-05-24T18:00:00.000Z"
],
[
"2025-05-24T18:00:00.000Z",
"2025-05-24T19:30:00.000Z"
],
[
"2025-05-24T19:30:00.000Z",
"2025-05-24T21:00:00.000Z"
],
[
"2025-05-31T16:30:00.000Z",
"2025-05-31T18:00:00.000Z"
],
[
"2025-05-31T18:00:00.000Z",
"2025-05-31T19:30:00.000Z"
],
[
"2025-05-31T19:30:00.000Z",
"2025-05-31T21:00:00.000Z"
],
[
"2025-06-07T16:30:00.000Z",
"2025-06-07T18:00:00.000Z"
],
[
"2025-06-07T18:00:00.000Z",
"2025-06-07T19:30:00.000Z"
],
[
"2025-06-07T19:30:00.000Z",
"2025-06-07T21:00:00.000Z"
],
[
"2025-06-14T16:30:00.000Z",
"2025-06-14T18:00:00.000Z"
],
[
"2025-06-14T18:00:00.000Z",
"2025-06-14T19:30:00.000Z"
],
[
"2025-06-14T19:30:00.000Z",
"2025-06-14T21:00:00.000Z"
],
[
"2025-06-21T16:30:00.000Z",
"2025-06-21T18:00:00.000Z"
],
[
"2025-06-21T18:00:00.000Z",
"2025-06-21T19:30:00.000Z"
],
[
"2025-06-21T19:30:00.000Z",
"2025-06-21T21:00:00.000Z"
],
[
"2025-06-28T16:30:00.000Z",
"2025-06-28T18:00:00.000Z"
],
[
"2025-06-28T18:00:00.000Z",
"2025-06-28T19:30:00.000Z"
],
[
"2025-06-28T19:30:00.000Z",
"2025-06-28T21:00:00.000Z"
],
[
"2025-07-05T16:30:00.000Z",
"2025-07-05T18:00:00.000Z"
],
[
"2025-07-05T18:00:00.000Z",
"2025-07-05T19:30:00.000Z"
],
[
"2025-07-05T19:30:00.000Z",
"2025-07-05T21:00:00.000Z"
],
[
"2025-07-12T16:30:00.000Z",
"2025-07-12T18:00:00.000Z"
],
[
"2025-07-12T18:00:00.000Z",
"2025-07-12T19:30:00.000Z"
],
[
"2025-07-12T19:30:00.000Z",
"2025-07-12T21:00:00.000Z"
],
[
"2025-07-19T16:30:00.000Z",
"2025-07-19T18:00:00.000Z"
],
[
"2025-07-19T18:00:00.000Z",
"2025-07-19T19:30:00.000Z"
],
[
"2025-07-19T19:30:00.000Z",
"2025-07-19T21:00:00.000Z"
],
[
"2025-07-26T16:30:00.000Z",
"2025-07-26T18:00:00.000Z"
],
[
"2025-07-26T18:00:00.000Z",
"2025-07-26T19:30:00.000Z"
],
[
"2025-07-26T19:30:00.000Z",
"2025-07-26T21:00:00.000Z"
],
[
"2025-08-02T16:30:00.000Z",
"2025-08-02T18:00:00.000Z"
],
[
"2025-08-02T18:00:00.000Z",
"2025-08-02T19:30:00.000Z"
],
[
"2025-08-02T19:30:00.000Z",
"2025-08-02T21:00:00.000Z"
],
[
"2025-08-09T16:30:00.000Z",
"2025-08-09T18:00:00.000Z"
],
[
"2025-08-09T18:00:00.000Z",
"2025-08-09T19:30:00.000Z"
],
[
"2025-08-09T19:30:00.000Z",
"2025-08-09T21:00:00.000Z"
],
[
"2025-08-16T16:30:00.000Z",
"2025-08-16T18:00:00.000Z"
],
[
"2025-08-16T18:00:00.000Z",
"2025-08-16T19:30:00.000Z"
],
[
"2025-08-16T19:30:00.000Z",
"2025-08-16T21:00:00.000Z"
],
[
"2025-08-23T16:30:00.000Z",
"2025-08-23T18:00:00.000Z"
],
[
"2025-08-23T18:00:00.000Z",
"2025-08-23T19:30:00.000Z"
],
[
"2025-08-23T19:30:00.000Z",
"2025-08-23T21:00:00.000Z"
],
[
"2025-08-30T16:30:00.000Z",
"2025-08-30T18:00:00.000Z"
],
[
"2025-08-30T18:00:00.000Z",
"2025-08-30T19:30:00.000Z"
],
[
"2025-08-30T19:30:00.000Z",
"2025-08-30T21:00:00.000Z"
],
[
"2025-09-06T16:30:00.000Z",
"2025-09-06T18:00:00.000Z"
],
[
"2025-09-06T18:00:00.000Z",
"2025-09-06T19:30:00.000Z"
],
[
"2025-09-06T19:30:00.000Z",
"2025-09-06T21:00:00.000Z"
],
[
"2025-09-13T16:30:00.000Z",
"2025-09-13T18:00:00.000Z"
],
[
"2025-09-13T18:00:00.000Z",
"2025-09-13T19:30:00.000Z"
],
[
"2025-09-13T19:30:00.000Z",
"2025-09-13T21:00:00.000Z"
],
[
"2025-09-20T16:30:00.000Z",
"2025-09-20T18:00:00.000Z"
],
[
"2025-09-20T18:00:00.000Z",
"2025-09-20T19:30:00.000Z"
],
[
"2025-09-20T19:30:00.000Z",
"2025-09-20T21:00:00.000Z"
],
[
"2025-09-27T16:30:00.000Z",
"2025-09-27T18:00:00.000Z"
],
[
"2025-09-27T18:00:00.000Z",
"2025-09-27T19:30:00.000Z"
],
[
"2025-09-27T19:30:00.000Z",
"2025-09-27T21:00:00.000Z"
],
[
"2025-10-04T16:30:00.000Z",
"2025-10-04T18:00:00.000Z"
],
[
"2025-10-04T18:00:00.000Z",
"2025-10-04T19:30:00.000Z"
],
[
"2025-10-04T19:30:00.000Z",
"2025-10-04T21:00:00.000Z"
],
[
"2025-10-11T16:30:00.000Z",
"2025-10-11T18:00:00.000Z"
],
[
"2025-10-11T18:00:00.000Z",
"2025-10-11T19:30:00.000Z"
],
[
"2025-10-11T19:30:00.000Z",
"2025-10-11T21:00:00.000Z"
],
[
"2025-10-18T16:30:00.000Z",
"2025-10-18T18:00:00.000Z"
],
[
"2025-10-18T18:00:00.000Z",
"2025-10-18T19:30:00.000Z"
],
[
"2025-10-18T19:30:00.000Z",
"2025-10-18T21:00:00.000Z"
],
[
"2025-10-25T16:30:00.000Z",
"2025-10-25T18:00:00.000Z"
],
[
"2025-10-25T18:00:00.000Z",
"2025-10-25T19:30:00.000Z"
],
[
"2025-10-25T19:30:00.000Z",
"2025-10-25T21:00:00.000Z"
],
[
"2025-11-01T16:30:00.000Z",
"2025-11-01T18:00:00.000Z"
],
[
"2025-11-01T18:00:00.000Z",
"2025-11-01T19:30:00.000Z"
],
[
"2025-11-01T19:30:00.000Z",
"2025-11-01T21:00:00.000Z"
],
[
"2025-11-08T16:30:00.000Z",
"2025-11-08T18:00:00.000Z"
],
[
"2025-11-08T18:00:00.000Z",
"2025-11-08T19:30:00.000Z"
],
[
"2025-11-08T19:30:00.000Z",
"2025-11-08T21:00:00.000Z"
],
[
"2025-11-15T16:30:00.000Z",
"2025-11-15T18:00:00.000Z"
],
[
"2025-11-15T18:00:00.000Z",
"2025-11-15T19:30:00.000Z"
],
[
"2025-11-15T19:30:00.000Z",
"2025-11-15T21:00:00.000Z"
],
[
"2025-11-22T16:30:00.000Z",
"2025-11-22T18:00:00.000Z"
],
[
"2025-11-22T18:00:00.000Z",
"2025-11-22T19:30:00.000Z"
],
[
"2025-11-22T19:30:00.000Z",
"2025-11-22T21:00:00.000Z"
],
[
"2025-11-29T16:30:00.000Z",
"2025-11-29T18:00:00.000Z"
],
[
"2025-11-29T18:00:00.000Z",
"2025-11-29T19:30:00.000Z"
],
[
"2025-11-29T19:30:00.000Z",
"2025-11-29T21:00:00.000Z"
],
[
"2025-12-06T16:30:00.000Z",
"2025-12-06T18:00:00.000Z"
],
[
"2025-12-06T18:00:00.000Z",
"2025-12-06T19:30:00.000Z"
],
[
"2025-12-06T19:30:00.000Z",
"2025-12-06T21:00:00.000Z"
],
[
"2025-12-13T16:30:00.000Z",
"2025-12-13T18:00:00.000Z"
],
[
"2025-12-13T18:00:00.000Z",
"2025-12-13T19:30:00.000Z"
],
[
"2025-12-13T19:30:00.000Z",
"2025-12-13T21:00:00.000Z"
],
[
"2025-12-20T16:30:00.000Z",
"2025-12-20T18:00:00.000Z"
],
[
"2025-12-20T18:00:00.000Z",
"2025-12-20T19:30:00.000Z"
],
[
"2025-12-20T19:30:00.000Z",
"2025-12-20T21:00:00.000Z"
],
[
"2025-12-27T16:30:00.000Z",
"2025-12-27T18:00:00.000Z"
],
[
"2025-12-27T18:00:00.000Z",
"2025-12-27T19:30:00.000Z"
],
[
"2025-12-27T19:30:00.000Z",
"2025-12-27T21:00:00.000Z"
],
[
"2026-01-03T16:30:00.000Z",
"2026-01-03T18:00:00.000Z"
],
[
"2026-01-03T18:00:00.000Z",
"2026-01-03T19:30:00.000Z"
],
[
"2026-01-03T19:30:00.000Z",
"2026-01-03T21:00:00.000Z"
],
[
"2026-01-10T16:30:00.000Z",
"2026-01-10T18:00:00.000Z"
],
[
"2026-01-10T18:00:00.000Z",
"2026-01-10T19:30:00.000Z"
],
[
"2026-01-10T19:30:00.000Z",
"2026-01-10T21:00:00.000Z"
],
[
"2026-01-17T16:30:00.000Z",
"2026-01-17T18:00:00.000Z"
],
[
"2026-01-17T18:00:00.000Z",
"2026-01-17T19:30:00.000Z"
],
[
"2026-01-17T19:30:00.000Z",
"2026-01-17T21:00:00.000Z"
],
[
"2026-01-24T16:30:00.000Z",
"2026-01-24T18:00:00.000Z"
],
[
"2026-01-24T18:00:00.000Z",
"2026-01-24T19:30:00.000Z"
],
[
"2026-01-24T19:30:00.000Z",
"2026-01-24T21:00:00.000Z"
],
[
"2026-01-31T16:30:00.000Z",
"2026-01-31T18:00:00.000Z"
],
[
"2026-01-31T18:00:00.000Z",
"2026-01-31T19:30:00.000Z"
],
[
"2026-01-31T19:30:00.000Z",
"2026-01-31T21:00:00.000Z"
],
[
"2026-02-07T16:30:00.000Z",
"2026-02-07T18:00:00.000Z"
],
[
"2026-02-07T18:00:00.000Z",
"2026-02-07T19:30:00.000Z"
],
[
"2026-02-07T19:30:00.000Z",
"2026-02-07T21:00:00.000Z"
],
[
"2026-02-14T16:30:00.000Z",
"2026-02-14T18:00:00.000Z"
],
[
"2026-02-14T18:00:00.000Z",
"2026-02-14T19:30:00.000Z"
],
[
"2026-02-14T19:30:00.000Z",
"2026-02-14T21:00:00.000Z"
],
[
"2026-02-21T16:30:00.000Z",
"2026-02-21T18:00:00.000Z"
],
[
"2026-02-21T18:00:00.000Z",
"2026-02-21T19:30:00.000Z"
],
[
"2026-02-21T19:30:00.000Z",
"2026-02-21T21:00:00.000Z"
],
[
"2026-02-28T16:30:00.000Z",
"2026-02-28T18:00:00.000Z"
],
[
"2026-02-28T18:00:00.000Z",
"2026-02-28T19:30:00.000Z"
],
[
"2026-02-28T19:30:00.000Z",
"2026-02-28T21:00:00.000Z"
],
[
"2026-03-07T16:30:00.000Z",
"2026-03-07T18:00:00.000Z"
],
[
"2026-03-07T18:00:00.000Z",
"2026-03-07T19:30:00.000Z"
],
[
"2026-03-07T19:30:00.000Z",
"2026-03-07T21:00:00.000Z"
],
[
"2026-03-14T16:30:00.000Z",
"2026-03-14T18:00:00.000Z"
],
[
"2026-03-14T18:00:00.000Z",
"2026-03-14T19:30:00.000Z"
],
[
"2026-03-14T19:30:00.000Z",
"2026-03-14T21:00:00.000Z"
],
[
"2026-03-21T16:30:00.000Z",
"2026-03-21T18:00:00.000Z"
],
[
"2026-03-21T18:00:00.000Z",
"2026-03-21T19:30:00.000Z"
],
[
"2026-03-21T19:30:00.000Z",
"2026-03-21T21:00:00.000Z"
],
[
"2026-03-28T16:30:00.000Z",
"2026-03-28T18:00:00.000Z"
],
[
"2026-03-28T18:00:00.000Z",
"2026-03-28T19:30:00.000Z"
],
[
"2026-03-28T19:30:00.000Z",
"2026-03-28T21:00:00.000Z"
]
]
}
]
},
"additionalFields": {}
},
{
"type": "entity",
"marker": "tickets",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "Tickets"
},
"additionalFields": {}
}
]
},
{
"id": 10,
"attributeSetId": 15,
"type": "data",
"localizeInfos": {
"title": "Spam form",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 10,
"identifier": "spam_form",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "first_name",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "First name"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "surname",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"initialValue": null,
"localizeInfos": {
"title": "Surname"
},
"additionalFields": {}
},
{
"type": "spam",
"marker": "spam",
"position": 3,
"settings": {
"captcha": {
"key": "6LenQZAsAAAAAF5EGcFYz_IbyV7l2_4NGgiCiP6e",
"domainNames": [
"localhost"
]
}
},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "You're not a robot?"
},
"additionalFields": {}
}
]
}
],
"total": 10
}

4. Acceder a los campos del formulario

Ejemplo:

forms.items.forEach(form => {
const identifier = form.identifier; // "contact_us", "reg", "schedule", ...
const title = form.localizeInfos?.title;
const type = form.type; // "data" | "order" | "sing_in_up"
const fields = form.attributes; // array of form fields
console.log(identifier, title, type, fields);
});
Resultado:
{
"identifier": "spam_form",
"title": "Spam form",
"type": "data",
"fields": [
{
"type": "string",
"marker": "first_name",
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
}
},
"initialValue": null,
"localizeInfos": {
"title": "First name"
},
"additionalFields": {}
},
{
"type": "string",
"marker": "surname",
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"initialValue": null,
"localizeInfos": {
"title": "Surname"
},
"additionalFields": {}
},
{
"type": "spam",
"marker": "spam",
"position": 3,
"settings": {
"captcha": {
"key": "6LenQZAsAAAAAF5EGcFYz_IbyV7l2_4NGgiCiP6e",
"domainNames": [
"localhost"
]
}
},
"isVisible": true,
"listTitles": [],
"validators": {},
"initialValue": null,
"localizeInfos": {
"title": "You're not a robot?"
},
"additionalFields": {}
}
]
}

Ejemplo final

// 1. Import defineOneEntry from SDK and define PROJECT_URL and APP_TOKEN
import { defineOneEntry } from 'oneentry';

const PROJECT_URL = 'your-project-url';
const APP_TOKEN = 'your-app-token';

// 2. Creating an API client
const { Forms } = defineOneEntry(PROJECT_URL, {
token: APP_TOKEN,
});

// 3. Get all forms
const forms = await Forms.getAllForms('en_US');

if ('statusCode' in forms) {
throw new Error(forms.message);
}

// 4. Access form fields
forms.items.forEach(form => {
const identifier = form.identifier; // "contact_us", "reg", "schedule", ...
const title = form.localizeInfos?.title;
const type = form.type; // "data" | "order" | "sing_in_up"
const fields = form.attributes; // array of form fields
console.log(identifier, title, type, fields);
});