cURL
curl --request POST \ --url https://api.example.com/api/v1/contacts \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "first_name": "<string>", "last_name": "<string>", "phone": "<string>", "tags": [ {} ], "list_id": 123, "list_name": "<string>" } '
{ "success": true, "data": { "id": 456, "email": "[email protected]", "first_name": "Jane", "last_name": "Smith", "phone": "+1234567890", "tags": ["customer", "vip"], "lead_score": 0, "created_at": "2025-12-30T09:00:00", "updated_at": "2025-12-30T09:00:00" }, "message": "Contact created successfully" }
Dodaj nowy kontakt i opcjonalnie przypisz do listy mailingowej
Show Pola kontaktu
curl -X POST https://api.mailist.com/api/v1/contacts \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "first_name": "Jane", "last_name": "Smith", "phone": "+1234567890", "tags": ["customer", "vip"], "list_id": 123 }'