What to send
Minimal cURL request
Set RAPIDAPI_HOST and RAPIDAPI_KEY in your shell from the values RapidAPI generates for your subscription.
curl --request POST "https://${RAPIDAPI_HOST}/v1/map-headers" \
--header "Content-Type: application/json" \
--header "X-RapidAPI-Key: ${RAPIDAPI_KEY}" \
--header "X-RapidAPI-Host: ${RAPIDAPI_HOST}" \
--data '{
"headers": ["fname", "e-mail"],
"sample_rows": [["Ada", "ada@example.com"]],
"target_schema": {
"name": "contacts",
"fields": [
{"name": "first_name", "type": "first_name", "required": true, "aliases": ["fname"]},
{"name": "email", "type": "email", "required": true, "aliases": ["e-mail"]}
]
},
"options": {
"minimum_confidence": 0.75,
"include_transformations": true,
"cache": {"mode": "read_write", "scope": "request"}
}
}'