BizKitHub
getFormVeřejné 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

Parametry

2 v query

Parametry 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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
codestringVolitelné

Unique form code identifier.

Příkladcontact-form

Schéma odpovědi

1 zdokumentovaný stavový kód

200ÚspěchForm definition.
idstringPovinné

Form code (unique identifier).

Příkladcontact-form
namestringPovinné

Display name of the form.

PříkladContact Form
descriptionstringVolitelné

Form description or instructions.

fieldsobject[]Povinné

Ordered list of active form fields.

Každá položka pole:
keystringPovinné

Field key used for form submission.

Příkladyemailmessage
typestringPovinné

Field type.

Příkladytextemailtextareaselectcheckbox
labelstringPovinné

Human-readable field label.

PříkladYour email
helperTextstringVolitelné

Additional helper text shown below the field.

requiredbooleanPovinné

Whether the field is required.

defaultValuestringVolitelné

Pre-filled default value.

optionsobjectVolitelné

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

Ukázka odpovědi

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ázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč