Contacts API

List contacts

GET/v1/contacts

Query parameters

qstring
list_idstring
do_not_callboolean
limitinteger

Default 50

cursorstring

Returns

200 with the fields below.

contactsarray<object>required

One page of contacts, newest first.

12 properties
idstringrequired

The contact's id.

phonestringrequired

The contact's number in E.164 format, such as `+14155550100`. Unique within your organization.

attributesobjectrequired

Your own fields for this contact, as key-value pairs. Empty when there are none.

do_not_callbooleanrequired

True when the number is on your do-not-call list. Outbound calls to it are refused.

first_namestring

First name.

last_namestring

Last name.

emailstring

Email address.

timezonestring

IANA time zone, such as `America/New_York`.

sourcestring

How the contact was added, such as `api` or `import`.

created_atstring

ISO 8601 time the contact was created.

updated_atstring

ISO 8601 time the contact last changed.

listsarray<object>

The lists the contact belongs to. Not included when listing contacts.

2 properties
idstringrequired

The list's id.

namestringrequired

The list's name.

totalintegerrequired

How many contacts match the filters, across all pages.

next_cursorstring

Pass as `cursor` to get the next page. Null on the last page.

curl "https://api.dialgem.com/v1/contacts" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "contacts": [
    {
      "id": "string",
      "phone": "+14155550123",
      "first_name": "string",
      "last_name": "string",
      "email": "user@example.com",
      "timezone": "string",
      "attributes": {},
      "source": "string",
      "do_not_call": false,
      "created_at": "string",
      "updated_at": "string",
      "lists": [
        {}
      ]
    }
  ],
  "total": 0,
  "next_cursor": "string"
}

Create contact

POST/v1/contacts

Request body application/json

phonestringrequired
default_countrystring
first_namestring
last_namestring
emailstring
timezonestring
attributesobject
list_idsarray<string>

Returns

201 with the fields below.

idstringrequired

The contact's id.

phonestringrequired

The contact's number in E.164 format, such as `+14155550100`. Unique within your organization.

attributesobjectrequired

Your own fields for this contact, as key-value pairs. Empty when there are none.

do_not_callbooleanrequired

True when the number is on your do-not-call list. Outbound calls to it are refused.

first_namestring

First name.

last_namestring

Last name.

emailstring

Email address.

timezonestring

IANA time zone, such as `America/New_York`.

sourcestring

How the contact was added, such as `api` or `import`.

created_atstring

ISO 8601 time the contact was created.

updated_atstring

ISO 8601 time the contact last changed.

listsarray<object>

The lists the contact belongs to. Not included when listing contacts.

2 properties
idstringrequired

The list's id.

namestringrequired

The list's name.

curl -X POST "https://api.dialgem.com/v1/contacts" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+14155550123"
  }'
Response 201
{
  "id": "string",
  "phone": "+14155550123",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "timezone": "string",
  "attributes": {},
  "source": "string",
  "do_not_call": false,
  "created_at": "string",
  "updated_at": "string",
  "lists": [
    {
      "id": "string",
      "name": "Example"
    }
  ]
}

Get contact by phone

GET/v1/contacts/by-phone/{phone}

The contact with this number. It is matched as E.164, so `(212) 220-0001` with `default_country=US` finds `+12122200001`. 404 if the organization has no such contact.

Path parameters

phonestringrequired

Query parameters

default_countrystring

Returns

200 with the fields below.

idstringrequired

The contact's id.

phonestringrequired

The contact's number in E.164 format, such as `+14155550100`. Unique within your organization.

attributesobjectrequired

Your own fields for this contact, as key-value pairs. Empty when there are none.

do_not_callbooleanrequired

True when the number is on your do-not-call list. Outbound calls to it are refused.

first_namestring

First name.

last_namestring

Last name.

emailstring

Email address.

timezonestring

IANA time zone, such as `America/New_York`.

sourcestring

How the contact was added, such as `api` or `import`.

created_atstring

ISO 8601 time the contact was created.

Show 4 more parameters
updated_atstring

ISO 8601 time the contact last changed.

listsarray<object>

The lists the contact belongs to. Not included when listing contacts.

2 properties
idstringrequired

The list's id.

namestringrequired

The list's name.

call_countinteger

How many calls to or from this number are in your call log.

last_call_atstring

ISO 8601 start time of the most recent call. Null when there are none.

curl "https://api.dialgem.com/v1/contacts/by-phone/PHONE" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "phone": "+14155550123",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "timezone": "string",
  "attributes": {},
  "source": "string",
  "do_not_call": false,
  "created_at": "string",
  "updated_at": "string",
  "lists": [
    {
      "id": "string",
      "name": "Example"
    }
  ]
}

Get contact

GET/v1/contacts/{contact_id}

Path parameters

contact_idstringrequired

Returns

200 with the fields below.

idstringrequired

The contact's id.

phonestringrequired

The contact's number in E.164 format, such as `+14155550100`. Unique within your organization.

attributesobjectrequired

Your own fields for this contact, as key-value pairs. Empty when there are none.

do_not_callbooleanrequired

True when the number is on your do-not-call list. Outbound calls to it are refused.

first_namestring

First name.

last_namestring

Last name.

emailstring

Email address.

timezonestring

IANA time zone, such as `America/New_York`.

sourcestring

How the contact was added, such as `api` or `import`.

created_atstring

ISO 8601 time the contact was created.

Show 4 more parameters
updated_atstring

ISO 8601 time the contact last changed.

listsarray<object>

The lists the contact belongs to. Not included when listing contacts.

2 properties
idstringrequired

The list's id.

namestringrequired

The list's name.

call_countinteger

How many calls to or from this number are in your call log.

last_call_atstring

ISO 8601 start time of the most recent call. Null when there are none.

curl "https://api.dialgem.com/v1/contacts/CONTACT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "phone": "+14155550123",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "timezone": "string",
  "attributes": {},
  "source": "string",
  "do_not_call": false,
  "created_at": "string",
  "updated_at": "string",
  "lists": [
    {
      "id": "string",
      "name": "Example"
    }
  ]
}

Update contact

PATCH/v1/contacts/{contact_id}

Path parameters

contact_idstringrequired

Request body application/json

phonestring
default_countrystring
first_namestring
last_namestring
emailstring
timezonestring
attributesobject

Returns

200 with the fields below.

idstringrequired

The contact's id.

phonestringrequired

The contact's number in E.164 format, such as `+14155550100`. Unique within your organization.

attributesobjectrequired

Your own fields for this contact, as key-value pairs. Empty when there are none.

do_not_callbooleanrequired

True when the number is on your do-not-call list. Outbound calls to it are refused.

first_namestring

First name.

last_namestring

Last name.

emailstring

Email address.

timezonestring

IANA time zone, such as `America/New_York`.

sourcestring

How the contact was added, such as `api` or `import`.

created_atstring

ISO 8601 time the contact was created.

updated_atstring

ISO 8601 time the contact last changed.

listsarray<object>

The lists the contact belongs to. Not included when listing contacts.

2 properties
idstringrequired

The list's id.

namestringrequired

The list's name.

curl -X PATCH "https://api.dialgem.com/v1/contacts/CONTACT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+14155550123"
  }'
Response 200
{
  "id": "string",
  "phone": "+14155550123",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "timezone": "string",
  "attributes": {},
  "source": "string",
  "do_not_call": false,
  "created_at": "string",
  "updated_at": "string",
  "lists": [
    {
      "id": "string",
      "name": "Example"
    }
  ]
}

Delete contact

DELETE/v1/contacts/{contact_id}

Erase the contact and its list memberships.

Path parameters

contact_idstringrequired

Returns

200 with the fields below.

idstringrequired

The id that was deleted.

deletedbooleanrequired

Always true on success.

curl -X DELETE "https://api.dialgem.com/v1/contacts/CONTACT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "deleted": false
}

List a contact's calls

GET/v1/contacts/{contact_id}/calls

Calls to or from this contact's number, newest first. Summaries, not transcripts.

Path parameters

contact_idstringrequired

Query parameters

limitinteger

Default 25

Returns

200 with the fields below.

totalintegerrequired

How many calls to or from this number are in your call log.

callsarray<object>required

The most recent calls, newest first, up to `limit`.

9 properties
idstringrequired

The call's id.

agent_idstring

The agent on the call.

directionstring

`inbound` or `outbound`.

statusstring

The call's status.

started_atstring

ISO 8601 start time.

ended_atstring

ISO 8601 end time. Null while the call is in progress.

duration_snumber

Length of the call in seconds.

disconnection_reasonstring

Why the call ended.

summarystring

The call summary, when call analysis produced one.

curl "https://api.dialgem.com/v1/contacts/CONTACT_ID/calls" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "total": 0,
  "calls": [
    {
      "id": "string",
      "agent_id": "agent_123",
      "direction": "string",
      "status": "string",
      "started_at": "string",
      "ended_at": "string",
      "duration_s": 0,
      "disconnection_reason": "string",
      "summary": "string"
    }
  ]
}

Inspect a CSV file

POST/v1/contacts/imports/inspect

Read the file's header and a few rows so the caller can map columns. Imports nothing.

Request body application/json

csvstringrequired

Returns

200 with the fields below.

headersarray<string>required

The file's column names.

row_countintegerrequired

How many data rows the file has.

mappingobjectrequired

The suggested column for each contact field, keyed by field name.

attribute_columnsarray<string>required

Columns that would be kept as custom attributes.

samplearray<object>required

The first few rows, keyed by column name.

curl -X POST "https://api.dialgem.com/v1/contacts/imports/inspect" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "csv": "string"
  }'
Response 200
{
  "headers": [
    "string"
  ],
  "row_count": 0,
  "mapping": {},
  "attribute_columns": [
    "string"
  ],
  "sample": [
    {}
  ]
}

List imports

GET/v1/contacts/imports

Returns

200 with the fields below.

importsarray<object>required

Your 20 most recent imports, newest first.

19 properties
idstringrequired

The import's id.

statusstringrequired

`queued`, `running`, `previewed` (a dry run waiting to be applied), `completed`, `failed`, `cancelled` or `expired`.

dry_runbooleanrequired

True when the import only validates and writes nothing.

total_rowsintegerrequired

Rows in the file. Zero until processing starts.

createdintegerrequired

Contacts created.

updatedintegerrequired

Existing contacts updated.

skippedintegerrequired

Rows skipped because the contact already exists and `on_duplicate` is `skip`.

errorsintegerrequired

Rows rejected. Fetch them from the errors route.

errors_truncatedbooleanrequired

True when more rows were rejected than are kept for download.

filenamestring

The file name you gave, if any.

Show 9 more parameters
failurestring

Why the import failed. Null otherwise.

mappingobject

The column used for each contact field.

attribute_columnsarray<string>

Columns kept as custom attributes.

default_countrystring

Two-letter country used for numbers without a country code.

on_duplicatestring

`update` or `skip`: what happens to a number that already exists.

list_idstring

The list the imported contacts are added to, if any.

created_atstring

ISO 8601 time the import was created.

started_atstring

ISO 8601 time processing started. Null until then.

finished_atstring

ISO 8601 time the import finished. Null until then.

curl "https://api.dialgem.com/v1/contacts/imports" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "imports": [
    {
      "id": "string",
      "status": "string",
      "dry_run": false,
      "filename": "string",
      "total_rows": 0,
      "created": 0,
      "updated": 0,
      "skipped": 0,
      "errors": 0,
      "errors_truncated": false,
      "failure": "string",
      "mapping": {}
    }
  ]
}

Create import

POST/v1/contacts/imports

Request body application/json

csvstringrequired
filenamestring
mappingobject
attribute_columnsarray<string>
default_countrystring
on_duplicatestring

Default "update"

list_idstring
dry_runboolean

Default false

Returns

202 with the fields below.

idstringrequired

The import's id.

statusstringrequired

`queued`, `running`, `previewed` (a dry run waiting to be applied), `completed`, `failed`, `cancelled` or `expired`.

dry_runbooleanrequired

True when the import only validates and writes nothing.

total_rowsintegerrequired

Rows in the file. Zero until processing starts.

createdintegerrequired

Contacts created.

updatedintegerrequired

Existing contacts updated.

skippedintegerrequired

Rows skipped because the contact already exists and `on_duplicate` is `skip`.

errorsintegerrequired

Rows rejected. Fetch them from the errors route.

errors_truncatedbooleanrequired

True when more rows were rejected than are kept for download.

filenamestring

The file name you gave, if any.

Show 9 more parameters
failurestring

Why the import failed. Null otherwise.

mappingobject

The column used for each contact field.

attribute_columnsarray<string>

Columns kept as custom attributes.

default_countrystring

Two-letter country used for numbers without a country code.

on_duplicatestring

`update` or `skip`: what happens to a number that already exists.

list_idstring

The list the imported contacts are added to, if any.

created_atstring

ISO 8601 time the import was created.

started_atstring

ISO 8601 time processing started. Null until then.

finished_atstring

ISO 8601 time the import finished. Null until then.

curl -X POST "https://api.dialgem.com/v1/contacts/imports" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "csv": "string"
  }'
Response 202
{
  "id": "string",
  "status": "string",
  "dry_run": false,
  "filename": "string",
  "total_rows": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "errors": 0,
  "errors_truncated": false,
  "failure": "string",
  "mapping": {}
}

Get import

GET/v1/contacts/imports/{import_id}

Path parameters

import_idstringrequired

Returns

200 with the fields below.

idstringrequired

The import's id.

statusstringrequired

`queued`, `running`, `previewed` (a dry run waiting to be applied), `completed`, `failed`, `cancelled` or `expired`.

dry_runbooleanrequired

True when the import only validates and writes nothing.

total_rowsintegerrequired

Rows in the file. Zero until processing starts.

createdintegerrequired

Contacts created.

updatedintegerrequired

Existing contacts updated.

skippedintegerrequired

Rows skipped because the contact already exists and `on_duplicate` is `skip`.

errorsintegerrequired

Rows rejected. Fetch them from the errors route.

errors_truncatedbooleanrequired

True when more rows were rejected than are kept for download.

filenamestring

The file name you gave, if any.

Show 9 more parameters
failurestring

Why the import failed. Null otherwise.

mappingobject

The column used for each contact field.

attribute_columnsarray<string>

Columns kept as custom attributes.

default_countrystring

Two-letter country used for numbers without a country code.

on_duplicatestring

`update` or `skip`: what happens to a number that already exists.

list_idstring

The list the imported contacts are added to, if any.

created_atstring

ISO 8601 time the import was created.

started_atstring

ISO 8601 time processing started. Null until then.

finished_atstring

ISO 8601 time the import finished. Null until then.

curl "https://api.dialgem.com/v1/contacts/imports/IMPORT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "status": "string",
  "dry_run": false,
  "filename": "string",
  "total_rows": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "errors": 0,
  "errors_truncated": false,
  "failure": "string",
  "mapping": {}
}

Cancel import

DELETE/v1/contacts/imports/{import_id}

Stop an import that has not finished. Contacts already written by a running import stay.

Path parameters

import_idstringrequired

Returns

200 with the fields below.

idstringrequired

The import's id.

statusstringrequired

`queued`, `running`, `previewed` (a dry run waiting to be applied), `completed`, `failed`, `cancelled` or `expired`.

dry_runbooleanrequired

True when the import only validates and writes nothing.

total_rowsintegerrequired

Rows in the file. Zero until processing starts.

createdintegerrequired

Contacts created.

updatedintegerrequired

Existing contacts updated.

skippedintegerrequired

Rows skipped because the contact already exists and `on_duplicate` is `skip`.

errorsintegerrequired

Rows rejected. Fetch them from the errors route.

errors_truncatedbooleanrequired

True when more rows were rejected than are kept for download.

filenamestring

The file name you gave, if any.

Show 9 more parameters
failurestring

Why the import failed. Null otherwise.

mappingobject

The column used for each contact field.

attribute_columnsarray<string>

Columns kept as custom attributes.

default_countrystring

Two-letter country used for numbers without a country code.

on_duplicatestring

`update` or `skip`: what happens to a number that already exists.

list_idstring

The list the imported contacts are added to, if any.

created_atstring

ISO 8601 time the import was created.

started_atstring

ISO 8601 time processing started. Null until then.

finished_atstring

ISO 8601 time the import finished. Null until then.

curl -X DELETE "https://api.dialgem.com/v1/contacts/imports/IMPORT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "status": "string",
  "dry_run": false,
  "filename": "string",
  "total_rows": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "errors": 0,
  "errors_truncated": false,
  "failure": "string",
  "mapping": {}
}

List import errors

GET/v1/contacts/imports/{import_id}/errors

The rows an import rejected, with what each contained. ``format=csv`` is the file to fix and re-upload.

Path parameters

import_idstringrequired

Query parameters

formatstring

Default "json"

limitinteger

Default 200

Returns

200 with the fields below.

errorsarray<object>required

Rejected rows, in file order. With `format=csv` the response is a CSV file instead.

3 properties
rowintegerrequired

The row number in the file.

errorstringrequired

Why the row was rejected.

valuesany

What the row contained, keyed by column name.

totalintegerrequired

How many rows were rejected.

truncatedbooleanrequired

True when `errors` holds fewer rows than were rejected.

curl "https://api.dialgem.com/v1/contacts/imports/IMPORT_ID/errors" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "errors": [
    {
      "row": 0,
      "error": "string",
      "values": null
    }
  ],
  "total": 0,
  "truncated": false
}

Commit import

POST/v1/contacts/imports/{import_id}/commit

Apply a previewed import to the contacts. The file is read again, so what is applied is what was previewed.

Path parameters

import_idstringrequired

Returns

202 with the fields below.

idstringrequired

The import's id.

statusstringrequired

`queued`, `running`, `previewed` (a dry run waiting to be applied), `completed`, `failed`, `cancelled` or `expired`.

dry_runbooleanrequired

True when the import only validates and writes nothing.

total_rowsintegerrequired

Rows in the file. Zero until processing starts.

createdintegerrequired

Contacts created.

updatedintegerrequired

Existing contacts updated.

skippedintegerrequired

Rows skipped because the contact already exists and `on_duplicate` is `skip`.

errorsintegerrequired

Rows rejected. Fetch them from the errors route.

errors_truncatedbooleanrequired

True when more rows were rejected than are kept for download.

filenamestring

The file name you gave, if any.

Show 9 more parameters
failurestring

Why the import failed. Null otherwise.

mappingobject

The column used for each contact field.

attribute_columnsarray<string>

Columns kept as custom attributes.

default_countrystring

Two-letter country used for numbers without a country code.

on_duplicatestring

`update` or `skip`: what happens to a number that already exists.

list_idstring

The list the imported contacts are added to, if any.

created_atstring

ISO 8601 time the import was created.

started_atstring

ISO 8601 time processing started. Null until then.

finished_atstring

ISO 8601 time the import finished. Null until then.

curl -X POST "https://api.dialgem.com/v1/contacts/imports/IMPORT_ID/commit" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 202
{
  "id": "string",
  "status": "string",
  "dry_run": false,
  "filename": "string",
  "total_rows": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "errors": 0,
  "errors_truncated": false,
  "failure": "string",
  "mapping": {}
}

List lists

GET/v1/contact-lists

Returns

200 with the fields below.

listsarray<object>required

Your lists, sorted by name.

6 properties
idstringrequired

The list's id.

namestringrequired

The list's name. Unique within your organization.

member_countintegerrequired

How many contacts are in the list.

descriptionstring

What the list is for.

created_atstring

ISO 8601 time the list was created.

updated_atstring

ISO 8601 time the list last changed.

curl "https://api.dialgem.com/v1/contact-lists" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "lists": [
    {
      "id": "string",
      "name": "Example",
      "description": "string",
      "member_count": 0,
      "created_at": "string",
      "updated_at": "string"
    }
  ]
}

Create list

POST/v1/contact-lists

Request body application/json

namestringrequired
descriptionstring

Returns

201 with the fields below.

idstringrequired

The list's id.

namestringrequired

The list's name. Unique within your organization.

member_countintegerrequired

How many contacts are in the list.

descriptionstring

What the list is for.

created_atstring

ISO 8601 time the list was created.

updated_atstring

ISO 8601 time the list last changed.

curl -X POST "https://api.dialgem.com/v1/contact-lists" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
Response 201
{
  "id": "string",
  "name": "Example",
  "description": "string",
  "member_count": 0,
  "created_at": "string",
  "updated_at": "string"
}

Get list

GET/v1/contact-lists/{list_id}

Path parameters

list_idstringrequired

Returns

200 with the fields below.

idstringrequired

The list's id.

namestringrequired

The list's name. Unique within your organization.

member_countintegerrequired

How many contacts are in the list.

descriptionstring

What the list is for.

created_atstring

ISO 8601 time the list was created.

updated_atstring

ISO 8601 time the list last changed.

curl "https://api.dialgem.com/v1/contact-lists/LIST_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "name": "Example",
  "description": "string",
  "member_count": 0,
  "created_at": "string",
  "updated_at": "string"
}

Update list

PATCH/v1/contact-lists/{list_id}

Path parameters

list_idstringrequired

Request body application/json

namestring
descriptionstring

Returns

200 with the fields below.

idstringrequired

The list's id.

namestringrequired

The list's name. Unique within your organization.

member_countintegerrequired

How many contacts are in the list.

descriptionstring

What the list is for.

created_atstring

ISO 8601 time the list was created.

updated_atstring

ISO 8601 time the list last changed.

curl -X PATCH "https://api.dialgem.com/v1/contact-lists/LIST_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
Response 200
{
  "id": "string",
  "name": "Example",
  "description": "string",
  "member_count": 0,
  "created_at": "string",
  "updated_at": "string"
}

Delete list

DELETE/v1/contact-lists/{list_id}

Path parameters

list_idstringrequired

Returns

200 with the fields below.

idstringrequired

The id of the deleted list. The contacts in it are kept.

deletedbooleanrequired

Always true on success.

curl -X DELETE "https://api.dialgem.com/v1/contact-lists/LIST_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "deleted": false
}

Add members

POST/v1/contact-lists/{list_id}/members

Path parameters

list_idstringrequired

Request body application/json

contact_idsarray<string>required

Returns

200 with the fields below.

idstringrequired

The list's id.

addedintegerrequired

How many contacts were newly added. Contacts already in the list are not counted.

member_countintegerrequired

How many contacts are in the list now.

curl -X POST "https://api.dialgem.com/v1/contact-lists/LIST_ID/members" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contact_ids": [
      "string"
    ]
  }'
Response 200
{
  "id": "string",
  "added": 0,
  "member_count": 0
}

Remove member

DELETE/v1/contact-lists/{list_id}/members/{contact_id}

Path parameters

list_idstringrequired
contact_idstringrequired

Returns

200 with the fields below.

idstringrequired

The list's id.

member_countintegerrequired

How many contacts are in the list now.

curl -X DELETE "https://api.dialgem.com/v1/contact-lists/LIST_ID/members/CONTACT_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "member_count": 0
}