Contacts
Contact management operations
Returns all contacts accessible to the authenticated user
Session-based authentication via HTTP-only cookie
List of contacts
Unique contact identifier
1Contact's full name
Jane SmithShort name for @mentions
jsmithContact email address
jane.smith@example.comContact phone number
+1-555-123-4567Company name
Acme CorpJob title
VP of SalesDepartment
SalesContact type
clientPossible values: Whether the contact is active
trueAdditional contact metadata
Creation timestamp
Last update timestamp
Not authenticated
Access denied
Server error
GET /api/contacts HTTP/1.1
Accept: */*
[
{
"id": 1,
"fullName": "Jane Smith",
"mentionName": "jsmith",
"email": "jane.smith@example.com",
"phone": "+1-555-123-4567",
"company": "Acme Corp",
"title": "VP of Sales",
"department": "Sales",
"type": "client",
"isActive": true,
"metadata": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
]Creates a new contact. Requires consultant or admin role.
Session-based authentication via HTTP-only cookie
Contact's full name
John DoeShort name for @mentions
Contact email address (must be unique)
john.doe@example.comContact phone number
Company name
Job title
Department
externalPossible values: trueWhether to create a user account for this contact
falseContact created successfully
Unique contact identifier
1Contact's full name
Jane SmithShort name for @mentions
jsmithContact email address
jane.smith@example.comContact phone number
+1-555-123-4567Company name
Acme CorpJob title
VP of SalesDepartment
SalesContact type
clientPossible values: Whether the contact is active
trueAdditional contact metadata
Creation timestamp
Last update timestamp
Validation error or email already exists
Not authenticated
Permission denied
Server error
POST /api/contacts HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 207
{
"fullName": "John Doe",
"mentionName": "text",
"email": "john.doe@example.com",
"phone": "text",
"company": "text",
"title": "text",
"department": "text",
"type": "external",
"isActive": true,
"metadata": {},
"canLogin": false
}{
"id": 1,
"fullName": "Jane Smith",
"mentionName": "jsmith",
"email": "jane.smith@example.com",
"phone": "+1-555-123-4567",
"company": "Acme Corp",
"title": "VP of Sales",
"department": "Sales",
"type": "client",
"isActive": true,
"metadata": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Returns contacts formatted for @mention functionality
Session-based authentication via HTTP-only cookie
List of mentionable contacts
Not authenticated
Server error
GET /api/contacts/mentions HTTP/1.1
Accept: */*
[
{
"id": 1,
"fullName": "text",
"mentionName": "text",
"email": "text"
}
]Last updated
Was this helpful?