Create contact
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/contacts" \ -H "Content-Type: application/json" \ -d '{ "name": { "givenName": "Jean", "familyName": "Dupont", "middleName": "", "prefix": "M.", "suffix": "", "displayName": "Jean Dupont" }, "phoneNumbers": [ { "type": "mobile", "number": "+2250102030405", "label": "Personnel" }, { "type": "work", "number": "+2250708091011", "label": "Bureau" } ], "emails": [ { "type": "home", "email": "jean@email.com", "label": "" }, { "type": "work", "email": "jean@entreprise.com", "label": "" } ], "addresses": [ { "type": "home", "street": "15 Rue des Lilas", "city": "Abidjan", "region": "Cocody", "postalCode": "", "country": "Côte d\'Ivoire", "label": "" } ], "organizations": [ { "name": "Digital Forme Service", "title": "Développeur", "department": "Engineering" } ], "urls": [ { "type": "linkedin", "url": "https://linkedin.com/in/jean", "label": "" } ], "notes": "Contact rencontré à la conférence", "birthday": "1990-05-15", "relations": [ { "type": "spouse", "name": "Marie Dupont" } ], "photoUrl": "https://...", "isFavorite": false, "labels": [] }'{ "status": 0, "message": "string", "data": { "id": "string", "userId": "string", "name": { "givenName": "string", "familyName": "string", "middleName": "string", "prefix": "string", "suffix": "string", "displayName": "string" }, "phoneNumbers": [ { "type": "mobile", "number": "string", "label": "string" } ], "emails": [ { "type": "home", "email": "user@example.com", "label": "string" } ], "addresses": [ { "type": "home", "street": "string", "city": "string", "region": "string", "postalCode": "string", "country": "string", "label": "string" } ], "organizations": [ null ], "urls": [ null ], "notes": "string", "birthday": "2019-08-24", "relations": [ { "type": "spouse", "name": "string" } ], "photoUrl": "http://example.com", "isFavorite": true, "labels": [ null ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "type": "string", "code": "string"}