Preview contact import
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview \
--header 'Content-Type: multipart/form-data' \
--header 'api_access_token: <api-key>' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
options.body = form;
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Contacts
Preview contact import
Preview rows from a CSV contact import before committing.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
contacts
/
import_preview
Preview contact import
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview \
--header 'Content-Type: multipart/form-data' \
--header 'api_access_token: <api-key>' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
options.body = form;
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contacts/import_preview"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}