BizKitHub
getFormPubliczne 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 w query

Parametry query

· 2
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
codestringOpcjonalne

Unique form code identifier.

Przykładcontact-form

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesForm definition.
idstringWymagane

Form code (unique identifier).

Przykładcontact-form
namestringWymagane

Display name of the form.

PrzykładContact Form
descriptionstringOpcjonalne

Form description or instructions.

fieldsobject[]Wymagane

Ordered list of active form fields.

Każdy element tablicy:
keystringWymagane

Field key used for form submission.

Przykładyemailmessage
typestringWymagane

Field type.

Przykładytextemailtextareaselectcheckbox
labelstringWymagane

Human-readable field label.

PrzykładYour email
helperTextstringOpcjonalne

Additional helper text shown below the field.

requiredbooleanWymagane

Whether the field is required.

defaultValuestringOpcjonalne

Pre-filled default value.

optionsobjectOpcjonalne

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

Przykład odpowiedzi

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": {}
    }
  ]
}

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API