BizKitHub
getFormVerejné API v1

/api/v1/form/detail

Returns form definition with all active fields, their types, labels, and validation rules. Throws PUBLIC_FORM_DOES_NOT_EXIST if the form is not found or inactive.

formgetApiV1FormDetail

Parametre

2 v query

Parametre v query

· 2
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
codestringVoliteľné

Unique form code identifier.

Príkladcontact-form

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechForm definition.
idstringPovinné

Form code (unique identifier).

Príkladcontact-form
namestringPovinné

Display name of the form.

PríkladContact Form
descriptionstringVoliteľné

Form description or instructions.

fieldsobject[]Povinné

Ordered list of active form fields.

Každá položka poľa:
keystringPovinné

Field key used for form submission.

Príkladyemailmessage
typestringPovinné

Field type.

Príkladytextemailtextareaselectcheckbox
labelstringPovinné

Human-readable field label.

PríkladYour email
helperTextstringVoliteľné

Additional helper text shown below the field.

requiredbooleanPovinné

Whether the field is required.

defaultValuestringVoliteľné

Pre-filled default value.

optionsobjectVoliteľné

Key-value map of options for select/radio fields.

Ukážka odpovede

application/json
{
  "id": "contact-form",
  "name": "Contact Form",
  "description": "example_description",
  "fields": [
    {
      "key": "email",
      "type": "text",
      "label": "Your email",
      "helperText": "example_helperText",
      "required": false,
      "defaultValue": "example_defaultValue",
      "options": {}
    }
  ]
}

Ukážka požiadavky

GET /api/v1/form/detail

get
curl -X GET "https://api.bizkithub.com/api/v1/form/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&code=contact-form" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč