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: `{ items, total }`. 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).
๐ See in documentation:
๐ฆ SDK reference:
Loading sandboxโฆ
