Overview
Meta APIs describe the request body expected by Bindbee for a specific write operation and integration. Each response follows a JSON Schema-compatible structure and includes field requirements, accepted values, formats, and nested object definitions. Because write capabilities vary by integration, the Meta API response should be used to construct and validate the request body before submitting a write operation.Supported Operations
Meta APIs are currently available for the following write operations:- Create Employee
- Create Employee Payroll Run
- Create Timesheet
- Create Time Off Request
Request Workflow
Use the following process when preparing a write request:- Call the Meta endpoint for the required write operation and integration.
- Review the returned schema, including required fields, accepted values, and integration-specific parameters.
- Construct a request body that conforms to the schema.
- Submit the request to the corresponding write endpoint.
Meta API Response Structure
A Meta API response defines the structure of the request body for the selected write operation. In addition to standard JSON Schema keywords, the response can include Bindbee-specific metadata such asisRequired and enumInformation.
The following keywords are commonly included:
Root Object and Field Definitions
A top-leveltype of object indicates that the write request body must be a JSON object. The properties object contains the available fields, while the required array lists the fields that must be included.
isRequired to review the requirement for an individual field. Use the required array to identify all mandatory fields within an object.
Nested Objects and Arrays
For a field withtype: "object", nested fields are defined under properties.
type: "array", the schema for each array element is defined under items.
Integration-Specific Fields
Meta API responses can includeintegration_params and additional_attributes. These fields serve different purposes.
integration_params
integration_params contains fields required by the underlying integration. Its properties are explicitly defined in the Meta API response and can be required.
additional_attributes
additional_attributes is a free-form object for fields that are supported by the underlying integration but are not represented in Bindbee’s unified model.
additional_attributes are forwarded to the underlying integration as part of the write request.
Accepted Values and Validation
enum and enumInformation
The enum keyword lists the values accepted by a field. When available, enumInformation provides a description for each accepted value.
enum. The corresponding entry in enumInformation can be used to determine the appropriate value.
description and format
The description keyword explains the purpose of a field. The format keyword defines an additional constraint for a string value, such as an email address or UUID.
Constructing the Write Request
After reviewing the schema, construct a request body that includes all required fields and conforms to the defined types, formats, and accepted values. For example, iffirst_name and last_name are required, the following request body is valid:
first_nameandlast_namesatisfy the required field definitions.work_emailconforms to theemailformat.employee_numberis included as an integration-specific attribute.
Common Errors
Meta API Not Implemented for an Integration
A Meta API schema may not yet be available for every supported write operation and integration combination. In this case, the Meta endpoint returns the following HTTP status:support@bindbee.dev.