Automap Columns#
Fills blank CSV mappings. One column must end up mapped to phone_number before an import can start.
Authorizationstringheaderrequired
Bearer token in the format: Bearer {access_token}
mappingobjectbodyrequired
CSV header to contact field. Send {} to let the server map them
headersstring[]body
CSV header row
sample_rowsobject[]body
A few data rows used to detect the phone column
curl --request POST \
--url https://app.aisync.link/api/contacts/import/automap \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{
"mapping": {},
"headers": [
"Phone",
"First"
],
"sample_rows": [
{
"Phone": "15551212000",
"First": "Ada"
}
]
}'mappingobject
Resolved header-to-field map