cURL
curl --request POST \ --url https://api.example.com/api/v1/lists \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "is_active": true } '
{ "success": true, "data": { "id": 123, "name": "<string>", "description": "<string>", "is_active": true, "contact_count": 123, "created_at": "<string>", "updated_at": "<string>" }, "message": "<string>" }
Utwórz nową listę kontaktów
Show List fields
curl -X POST https://api.mailist.com/api/v1/lists \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Product Updates", "description": "Subscribers interested in product announcements", "is_active": true }'
{ "success": true, "data": { "id": 125, "name": "Product Updates", "description": "Subscribers interested in product announcements", "is_active": true, "contact_count": 0, "created_at": "2025-12-30T09:00:00", "updated_at": "2025-12-30T09:00:00" }, "message": "Contact list created successfully" }
{ "success": false, "error": { "message": "List name is required", "code": "INVALID_REQUEST" } }
lists.write