cURL
curl --request POST \ --url https://app.blinksale.test/api/v1/clients/{clientId}/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Jane Smith", "email": "[email protected]", "phone": "+14155552671" } '
{ "success": true, "message": "Contact created successfully", "data": { "id": "01jtbf0c9zaraqx3swthf88n5y", "client_id": "01jtbf0c9zaraqx3swthf88n5y", "name": "Jane Smith", "email": "[email protected]", "phone": "+14155552671", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Create a new contact for a client
Access token obtained from the /v1/auth/login endpoint
The ID of the client
"Jane Smith"
"[email protected]"
"+14155552671"
Contact created successfully
true
"Contact created successfully"
Show child attributes