API ReferenceContact
contact.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| customerId | string | No | — | ID of the associated customer |
| vendorId | string | No | — | ID of the associated vendor |
| firstName | string | Yes | — | First name |
| lastName | string | Yes | — | Last name |
| title | string | No | — | Title |
string.email | No | — | ||
| phone | string | No | — | Phone |
| mobile | string | No | — | Mobile |
| roleTags | string[] | Yes | [] | Role tags |
| preferredContactMethod | enum(email, phone, mobile, portal) | No | — | Preferred contact method |
| portalAccessStatus | enum(none, invited, active, suspended) | Yes | "none" | Portal access status |
| status | enum(active, inactive) | Yes | "active" | Status |
| notesSummary | string | No | — | Notes summary |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"vendorId": "550e8400-e29b-41d4-a716-446655440000",
"firstName": "John",
"lastName": "Doe",
"title": "Example Title",
"email": "user@example.com",
"roleTags": [],
"portalAccessStatus": "none",
"status": "active",
"visibilityMode": "global"
}