lists:write and contacts:write permissions.
The read and membership steps also need lists:read and contacts:read.
Every write needs an Idempotency-Key: a unique ID for that action. If a request
times out, send the same ID when you retry so PowerDialer can recognize it.
Create a new ID for the next action. Learn about safe retries.
Create a list
For a personal key, use theownerId returned by GET /me. For a workspace key,
look up the rep with GET /users and use their id; it lists only current members
your key may assign as owners, with name and email so you can match the right person.
Do not guess owner IDs from existing contacts or call history.
201 Created and the list. Save its numeric id to add contacts
in the next steps. All shorter paths below use the same /api/public/v2 base.
The owner must be a current workspace member permitted by the credential. Update
with PUT /lists/{id} using the full write shape. Delete with DELETE /lists/{id};
list deletion is not a request to delete every contact.
Create or update a contact
POST /contacts requires contacts:write. A stable, workspace-unique externalId
creates or updates the same record:
PUT /contacts/{id}. Both POST and PUT accept the full contact
write shape: omitted defaulted fields reset to defaults, so they are not partial
patches. PATCH /contacts/{id} preserves omitted fields and atomically shallow-merges
metadata: null deletes a key and nested values replace the previous value. The
merged metadata must fit 16,000 UTF-16 code units, and the resulting timezone/source
pair must remain valid. DELETE /contacts/{id} deletes the contact itself.
A supplied timezone must be an IANA identifier with timeZoneSource set to
provided or phone_estimate. With no known timezone, send null and unknown.
Top-level timezone values override corresponding metadata keys. The API does not
infer a zone from a phone number or enforce calling windows.
List membership
Single-contact membership writes have no request body and return
{listId,contactId,member}.
Bulk writes accept {contactIds:[123,124]} with 1–100 numeric IDs and one
Idempotency-Key. They return added or removed IDs plus
skipped:[{contactId,reason}]; reasons are not_found (including inaccessible),
already_present, not_present, or duplicate. Malformed IDs reject the request.
Removing membership does not delete the contact. Reads filter both list and
contact access; a contact appearing in a list does not bypass its owner scope.
Asynchronous imports
POST /imports requires contacts:write and lists:write:
{id,state,processed};
it means queued, not finished. Poll GET /imports/{id} using the same credential.
The job response includes listId,state,processed,results,createdAt. States are
pending, completed or cancelled. Results identify the zero-based row and
created, updated or failed, plus its contact ID or error code. A completed
job may contain failed rows, and processed includes failures. Examine every row
result. Revoked/expired credentials or lost owner access cancel pending work.
Pagination and history
Contact/list collections useafter and limit (1–200, default 50), returning
{data,nextCursor}. Continue until the cursor is null. Pages are not snapshots;
use the change feed to reconcile.
Legacy records need proven attribution before they become visible. Historical
backfills are separately controlled; see data coverage.