Import From Csv
curl --request POST \
--url https://api.example.com/api/v1/contacts/import/csv \
--header 'Content-Type: application/json' \
--data '
{
"csv_content": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/contacts/import/csv"
payload = { "csv_content": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({csv_content: '<string>'})
};
fetch('https://api.example.com/api/v1/contacts/import/csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"imported": 123,
"updated": 123,
"errors": [
{}
],
"rows_processed": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}contacts
Import From Csv
Import contacts from CSV.
POST
/
api
/
v1
/
contacts
/
import
/
csv
Import From Csv
curl --request POST \
--url https://api.example.com/api/v1/contacts/import/csv \
--header 'Content-Type: application/json' \
--data '
{
"csv_content": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/contacts/import/csv"
payload = { "csv_content": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({csv_content: '<string>'})
};
fetch('https://api.example.com/api/v1/contacts/import/csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"imported": 123,
"updated": 123,
"errors": [
{}
],
"rows_processed": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json