Create contact
POST
/api/contacts
const url = 'http://localhost:3000/api/contacts';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"name":"example","email":"example","phone":"example","title":"example","groupId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","tenantId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","notes":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/contacts \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "name": "example", "email": "example", "phone": "example", "title": "example", "groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "notes": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
email
string
phone
string
title
string
groupId
string format: uuid
tenantId
string format: uuid
notes
string
Example generated
{ "name": "example", "email": "example", "phone": "example", "title": "example", "groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "notes": "example"}Responses
Section titled “ Responses ”Contact created
Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
email
string
phone
string
title
string
groupId
string format: uuid
tenantId
string format: uuid
notes
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{ "data": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "email": "example", "phone": "example", "title": "example", "groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "notes": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" }}Validation error
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}