List forms

Lists the caller org's forms, newest first, a page at a time; search keeps the forms whose title holds it and tag the ones carrying it.

GET /v1/form/forms

Addresshttps://api.hanzo.ai/v1/form/forms
MethodGET
Operationlist_forms
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the caller org's forms, newest first, a page at a time; search keeps the forms whose title holds it and tag the ones carrying it. An org admin only.

Request

4 fields.

FieldInTypeRequiredDescription
pagequeryinteger—Page is the page, from 1.
page_sizequeryinteger—PageSize is how many a page holds: at most 200, default 50.
searchquerystring—Search keeps the forms whose title holds it.
tagquerystring—Tag keeps the forms tagged with it.

Response

StatusBodyMeaning
200form.FormListok
defaultproblem-detailsrefused

200 body — 65 fields.

FieldInTypeAlwaysDescription
itemsbodyform.Form[]—Items are the forms, newest first.
items[].createdbodystring—Created is when the form was made, RFC 3339.
items[].fieldsbodyform.Field[]—Fields are the questions, in the order they are asked.
items[].fields[].choicesbodyform.Choice[]—Choices are what a multiple_choice or dropdown field offers, in order.
items[].fields[].choices[].idbodystring—ID is the choice's id, assigned when empty.
items[].fields[].choices[].labelbodystring—Label is the choice as shown.
items[].fields[].choices[].refbodystring—Ref is how an answer names the choice; unique in the field, defaults to the id.
items[].fields[].descriptionbodystring—Description is the line under the question.
items[].fields[].idbodystring—ID is the field's id: assigned when a write leaves it empty, and kept across edits by sending it back.
items[].fields[].labelsbodyform.Labels—
items[].fields[].labels.centerbodystring—
items[].fields[].labels.leftbodystring—
items[].fields[].labels.rightbodystring—
items[].fields[].multiplebodyboolean—Multiple is whether a multiple_choice field takes several choices.
items[].fields[].refbodystring—Ref is the field's stable name, how an answer and a sink name it: lowercase letters, digits, dash and underscore, at most 64, unique in the form.
items[].fields[].requiredbodyboolean—Required is whether a completed response must answer it.
items[].fields[].startbodyinteger (int64)—Start is where an opinion_scale begins: 0 (the default) or 1.
items[].fields[].stepsbodyinteger (int64)—Steps is how many points a rating (3 to 10, default 5) or an opinion_scale (5 to 11, default 11) has.
items[].fields[].titlebodystring—Title is the question as asked.
items[].fields[].typebodystring—Type is one of short_text, long_text, email, phone, url, number, rating, opinion_scale, yes_no, multiple_choice, dropdown, date and statement.
items[].fields[].validationsbodyform.Validations—
items[].fields[].validations.max_lengthbodyinteger (int64)—MaxLength is the most characters a text answer holds, at most the platform's bound for the type.
items[].fields[].validations.max_valuebodynumber (double)—MaxValue is the most a number answer may be.
items[].fields[].validations.min_valuebodynumber (double)—MinValue is the least a number answer may be.
items[].hiddenbodystring[]—Hidden names the values a page passes in when it embeds the form (a video id, a plan): lowercase letters, digits and underscores, at most 32 each.
items[].idbodystring—ID is the form's id: 15 lowercase hex characters, derived from the slug when the form has one, so a slug names one form for good.
items[].kindbodystring—Kind is form (every submission is a response, the default) or subscribe (a mailing list: an email field is required and one address is one response).
items[].public_idbodystring—PublicID is the address the form is answered at: "<org>.<slug or id>", as GET /v1/form/public/{id} and POST /v1/form/public/{id}/responses take it.
items[].settingsbodyform.Options—
items[].settings.identitybodystring—Identity is who a response is from when nobody is signed in.
items[].settings.languagebodystring—Language is the form's language, a tag like en or pt-BR.
items[].settings.modebodystring—Mode is one (a question at a time, the default) or all (every question at once).
items[].settings.progressbodyboolean—Progress is whether the renderer shows a progress bar.
items[].settings.visibilitybodystring—Visibility is public (answerable at its public address by anyone) or private (not served there).
items[].sinksbodyform.Sinks—
items[].sinks.crmbodyform.CRM—
items[].sinks.crm.companybodystring—Company is the ref of the field whose answer is the person's company.
items[].sinks.crm.emailbodystring—Email is the ref of the field whose answer is the person's address.
items[].sinks.crm.listbodystring—List is the CRM list the person joins, by name (a subscribe form's mailing list).
items[].sinks.crm.namebodystring—Name is the ref of the field whose answer is the person's name.
items[].sinks.eventsbodyboolean—Events states form_viewed, form_started and form_submitted on the deployment's event stream: the form's ids and the refs of the fields answered, never an answer's text.
items[].sinks.forwardbodyform.Forward—
items[].sinks.forward.emailbodystring—Email is the address.
items[].sinks.forward.namebodystring—Name is who it is, for the greeting.
items[].sinks.welcomebodyform.Welcome—
items[].sinks.welcome.bodybodystring—Body is the mail's text: plain text, a blank line a new paragraph.
items[].sinks.welcome.subjectbodystring—Subject is the mail's subject.
items[].slugbodystring—Slug is the form's own name within its org: lowercase letters, digits and dashes, at most 64.
items[].tagsbodystring[]—Tags label the form for its org: at most 20, each at most 64 characters.
items[].thanksbodyform.Screen—
items[].thanks.buttonbodystring—Button is the button's label.
items[].thanks.descriptionbodystring—Description is the text under it.
items[].thanks.redirectbodystring—Redirect is where a thank-you screen sends the respondent instead of showing itself: an https address.
items[].thanks.titlebodystring—Title is the screen's heading.
items[].themebodystring—Theme is the id of the theme the form is drawn in.
items[].titlebodystring—Title is the form's name, as a respondent and the CRM timeline read it.
items[].updatedbodystring—Updated is when it last changed, RFC 3339.
items[].welcomebodyform.Screen—
items[].welcome.buttonbodystring—Button is the button's label.
items[].welcome.descriptionbodystring—Description is the text under it.
items[].welcome.redirectbodystring—Redirect is where a thank-you screen sends the respondent instead of showing itself: an https address.
items[].welcome.titlebodystring—Title is the screen's heading.
pagebodyinteger (int64)—Page is this page, from 1.
page_sizebodyinteger (int64)—PageSize is how many a page holds.
totalbodyinteger (int64)—Total is how many forms answer the query.

Failure carries the platform error shape — see Errors.

Examples

hanzo form forms list
import { Configuration, FormApi } from 'hanzoai';

const api = new FormApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.listForms();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import FormApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = FormApi(client).list_forms()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.FormAPI.ListForms(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, form_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = form_api::list_forms(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.FormApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new FormApi(client).listForms();

The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →

curl https://api.hanzo.ai/v1/form/forms \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool form, op list_forms — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "form",
         "arguments": {
           "op": "list_forms",
           "input": {}
         }
       }
     }'

Form API · All Hanzo APIs · Interactive reference

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.