fritzboxCalls.listContacts
read-only
List contacts for the current tenant (repointed to contacts + contact_phones). Reads: contacts rows, augmented with a primary phone via contact_phones LEFT JOIN. Returns { contacts: Contact[] } — same shape as before (id, phoneNumber, displayName, category, updatedAt) so the /calls UI is unchanged. Read-only query.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
contacts | array of object | yes | |
contacts.id | string | yes | |
contacts.phoneNumber | string · nullable | yes | |
contacts.displayName | string | yes | |
contacts.category | string | yes | |
contacts.updatedAt | string | yes |
fritzboxCalls.upsertContact
writes
Upsert a contact for the current tenant (the "+Kontakt" button on /calls). Writes to contacts + contact_phones (new tables). Returns { contact: Contact } — same shape as before. Mutation — changes data.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
phoneNumber | string | yes | |
displayName | string | yes | |
category | string | no | Default: "sonstig" |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
contact | object | yes | |
contact.id | string | yes | |
contact.phoneNumber | string · nullable | yes | |
contact.displayName | string | yes | |
contact.category | string | yes | |
contact.updatedAt | string | yes |