API endpoints overviewIntelligence
Predict field types
Predict field types
Uses AI to intelligently predict the most appropriate field type for each header in a schema-less import. This helps users quickly configure their data import by suggesting field types based on header names.
How it works:
- Provide an array of headers from the imported file
- AI analyzes each header name to determine the most likely data type
- Returns a mapping of header keys to predicted field types
Example predictions:
- "Cost", "Price", "Amount" → monetary
- "Phone", "Telephone", "Mobile" → phone
- "Active", "Enabled", "Is Valid" → checkbox
- "Birth Date", "Created At" → date
- Ambiguous headers → text (safe default)
Note: This endpoint never fails. If AI prediction fails or returns invalid data, all headers default to "text".
curl -X POST "https://api.ivandt.com/v1/intelligence/predict-field-types" \ -H "Content-Type: application/json" \ -d '{ "headers": [ { "label": "string", "key": "string" } ] }'{
"predictions": {
"property1": "dropdown",
"property2": "dropdown"
}
}