Healthier Business Group
Home
HB PortalRequest API access
Home
HB PortalRequest API access
X
Instagram
LinkedIn
  1. OH Requests
  • Walk through Healthier Business Group 🔵
  • Heathier Business Portal APIs V2
    • Authentication
      • Get access token
      • Refresh access token
      • Get token info
      • Revoke current token
    • Reference Requests
      • References
        • Get reference detail
        • Download reference PDF
      • List reference requests
      • Create reference request
      • Get reference request
      • Cancel reference request
      • Add referee to request
      • Send reminders
    • Candidate Requests
    • Training Requests
    • OH Requests
    • Practical Training Requests
    • BLS Requests
    • Appraisal Requests
    • Certificate Requests
    • Training Verification Requests
    • Webhooks
      • List webhook endpoints
      • Create webhook endpoint
      • Update webhook endpoint
      • Delete webhook endpoint
      • View webhook call logs
      • Send test webhook
    • Templates
      • List form templates
  • Heathier Business Portal APIs V1 - Deprecated
    • Candidate Requests
      • Get All Candidates
      • Get Candidate Data
      • Create New Candidate
      • Update Candidate Details
    • Training Requests
      • Get Available Trainings
      • Get Candidate Course Result
      • Get Candidate Training Report
      • Get Candidate Training Report - Unassigned
    • OH Requests
      • Get Available Forms
        GET
      • Get Form Fields
        GET
      • Creating a new submission
        POST
      • Modifying the details of an existing submission (Upload Documents)
        PATCH
      • Make final form submission (after uploading documents)
        POST
      • Get submission list
        GET
      • Retrieve submission result details
        GET
      • Retrieve the submission result documents for the employer
        GET
    • Certificates Requests
      • Get Training Certificate
      • Get Training Certificate - including expired
      • Get Training Certificate - including non-assigned courses, but excluding expired
      • Get Training Certificate - All available courses
      • Get Training Certificate - Specific Course
    • Webhooks
      • Training Completion
      • Course Completion
  • HB Services
    • List Interview Bookings
      GET
  • The Direct Training Academy
    • Bookings
      • Get Past Bookings
      • Get Upcoming Bookings
      • Search Bookings by Date
    • Booking Links
      • Search Booking Links
  • Schemas
    • Booking
    • TokenResponse
    • InterviewBooking
    • Pagination
    • BookingInvite
    • ReferenceRequest
    • BookingsResponse
    • Reference
    • BookingLinksResponse
    • ReferenceDetail
    • CreateReferenceRequest
    • RefereeInput
    • Template
    • WebhookEndpoint
    • CreateWebhookEndpoint
    • UpdateWebhookEndpoint
    • WebhookCall
    • WebhookPayload
    • PaginationMeta
    • PaginationLinks
    • Error
    • RateLimitError
    • ValidationError
  1. OH Requests

Get Form Fields

GET
/form-fields/{{form_type}}
Maintainer:Not configured
The endpoint provides a method to retrieve the list of forms fields for the perticular form_type provided by the authenticated client. The requests are HTTP GET (RFC2616) and uses api key as a resource identifier identifying the client uniquely at HB.
If there’s no forms assigned to your account, the API should send an HTTP 204 No Content response.
This endpoint can return a JSON response with the following data:
count: the total number of fields in this form
fields: a JSON body of fields which can contain the following data:
field_id: This is the field ID, indicating the unique ID of that field.
field_type: This is the field type, such as text, date, radio, checkbox, etc.
field_name: This indicates the unique field name which the user needs to pass as form_data with a POST request for creating a new submission.
field_label: This indicates the label of this field.
validations: This is provided for your reference; you can validate the data on your side before posting it to the HB API.
maxlength: The maximum number of characters allowed for this field.
options: If your field type is radio, checkbox, or selectbox, you can find the options here in serialized format.
sort_order: The sort order of this field (in ascending order).
required: A boolean value indicating if the field is required or not.
field_group: The group name to which this field belongs.
fieldset: The label of that group name.

Request

Authorization
Add parameter in header
API-Key
Example:
API-Key: ********************
Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/form-fields/{{form_type}}' \
--header 'API-Version: {{api_version}}' \
--header 'API-Key: <api-key>'

Responses

⚪0Get Form Fields
application/json
Body

Example
{
    "count": 1,
    "fields": [
        {
            "field_id": "XX",
            "field_type": "text",
            "field_name": "first_name",
            "field_lable": "First Name",
            "validations": "alpha_text|max_length[40]",
            "maxlength": 120,
            "options": "",
            "sort_order": 1,
            "required": 1,
            "field_group": "name",
            "fieldset": "Personal information"
        }
    ]
}
Modified at 2024-08-09 12:14:28
Previous
Get Available Forms
Next
Creating a new submission
Built with