Get all forms

In this example, we demonstrate how to retrieve the list of all forms configured in the project using the OneEntry API.

✅ Purpose of the scenario:
  • Get the complete list of forms available in the OneEntry project.
  • Inspect form identifiers, types, and field schemas.
  • Use form identifiers with getFormByMarker() to retrieve full field details.
✅ What you need:
  • A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
  • At least one form configured in the OneEntry admin panel.
📌 Important:
  • Returns a paginated object: { total, items }. Use identifier with Forms.getFormByMarker() to get a specific form with full field details.
  • These examples do not include error handling.
  • You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
Loading sandbox…