Skip to main content
POST
/
contacts
/
import
Import Contacts
curl --request POST \
  --url https://api.truedy.ai/api/public/v1/contacts/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "phone_number": "+12125551234",
  "folder_id": "folder_123"
}
'
{
  "data": {
    "id": "contact_39b593b8-8",
    "name": "John Doe",
    "phone_number": "+12125551234",
    "folder_id": "folder_123",
    "created_at": "2026-03-03T20:30:21.310278Z"
  },
  "meta": {
    "request_id": "req_32e7531c-8",
    "timestamp": "2026-03-03T20:30:21.310278Z"
  }
}

Authorizations

Authorization
string
header
required

Your API key. Get it from the Truedy Dashboard. Send as: Authorization: Bearer <your_key>

Body

application/json
folder_id
string
required

Folder ID to import contacts into

file_key
string | null

Storage key for uploaded CSV file (legacy)

contacts
ContactCreate · object[] | null

Direct contact data array (legacy)

base64_file
string | null

Base64 encoded CSV file content

filename
string | null

Original filename of the CSV

mapping_config
Mapping Config · object

Mapping from CSV headers to standard fields. Format: {'csv_header': 'standard_field'}. Unmapped fields go to metadata.

Response

Resource created successfully

Response body