Update a contact

PATCH/api/v2/contacts/{username_or_id}

Changes one or more of a contact's details in one request: contact info, outreach, assignee, tags, notes and follow-up snooze.

Rate limit 150 requests per minute

Headers

  • x-api-keyheaderRequired

    Your API key.

  • Content-Typeheader

    application/json

Path parameters

  • username_or_idstringRequired

    Instagram username or contact id.

Body

  • full_namestring

    Display name, up to 255 characters. null or "" clears it.

  • phone_numberstring

    6 to 15 digits, optionally starting with +, for example +14155550134. Spaces, dashes and parentheses are removed first. null or "" clears it.

  • email_addressstring

    Email address, saved in lowercase. null or "" clears it.

  • assigned_to_userstring

    Email of the team member to assign the contact to. null unassigns it.

  • outreach_reasonstring

    Why you reached out, up to 200 characters. New reasons are created. Shown as outbound.reason on outbound contacts. null clears it.

  • outreach_textstring

    The outreach message, up to 1,000 characters. Shown as outbound.message. null clears it.

  • outreach_labelstring

    Label for the outreach message, up to 255 characters. Shown as outbound.message_label. null clears it.

  • follow_up_neededboolean

    false turns follow-ups off for this contact, true turns them back on.

  • tagsarray

    Tag names. Missing tags are created. Adding a tag the contact already has, or removing one it lacks, still returns 200 with a warnings array.

  • tags_modestring

    add (default) adds tags to the contact. remove removes them. replace makes them the contact's only tags, so "tags": [] removes all of them. Only together with tags.

  • tag_colorstring

    Color for tags created by this request. Hex code (#2563eb) or color name (blue). Default gray. Only together with tags, and not with tags_mode: "remove".

  • notesarray

    Up to 20 note changes: { "note": "..." } adds a note, { "id": 9812, "note": "..." } replaces a note's text, { "id": 9812, "deleted": true } deletes it. Up to 1,000 characters per note. Any note on the contact can be edited or deleted, whoever wrote it.

  • snoozed_untilstring

    A future date, ISO 8601: snoozes the contact's follow-ups until then at its current stage, or moves an active snooze. null unsnoozes, and does nothing if the contact is not snoozed.

  • snooze_reasonstring

    Why it is snoozed, up to 500 characters. Only together with a date in snoozed_until. Required when the organization setting Require snooze reason is on (the default), except when moving a snooze that already has one, which keeps it.

  • unsnooze_reasonstring

    Why it is unsnoozed, up to 500 characters. Only together with snoozed_until: null. Required when the organization setting Require unsnooze reason is on (the default).

  • changed_bystring

    Email of the team member making the change, shown in the activity log. New notes and snoozes are credited to the organization owner when it is left out.

Errors

ErrorWhen
400invalid_body
The body is not a JSON object.
400missing_fields
No field to update was sent.
400unsupported_field
A field cannot be updated with this endpoint, for example status or pipeline_stage.
400invalid_<field>
A field has a value that is not allowed, for example invalid_phone_number, invalid_tags_mode or invalid_snoozed_until. message says what.
400invalid_assigned_to_user
assigned_to_user is not the email of a member of your organization.
400invalid_notesinvalid_noteinvalid_note_id
notes is not a list of 1 to 20 valid changes, a note is empty or longer than 1,000 characters, or an id is not a positive whole number.
400snooze_reason_requiredunsnooze_reason_required
Your organization requires a reason to snooze or unsnooze, and none was sent.
400invalid_changed_by
changed_by is not a valid email address.
403user_not_in_organization
The changed_by email belongs to someone outside your organization.
404unknown_changed_by
No user with the changed_by email.
404contact_not_found
No contact with that username or id in your organization.
404note_not_found
A note id is not on this contact.
409contact_already_deleted
The contact is deleted.
409note_already_deleted
A note in notes is already deleted.
409follow_up_not_found
snoozed_until was sent but the contact has no follow-up to snooze.
Request
curl -X PATCH "https://app.dmtracker.ai/api/v2/contacts/jane.fitness" \
  -H "x-api-key: $DMTRACKER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+1 (415) 555-0134",
    "assigned_to_user": "alex@yourcompany.com",
    "tags": [
      "hot lead",
      "vip"
    ],
    "notes": [
      {
        "note": "Prefers WhatsApp over Instagram DMs"
      }
    ],
    "changed_by": "alex@yourcompany.com"
  }'
Response 200
{
  "status": "success",
  "message": "Contact updated successfully",
  "warnings": [
    {
      "code": "tag_already_present",
      "message": "Contact already has the tag 'hot lead', so it was not added again."
    }
  ],
  "data": {
    "id": "7c1e9a52-3f4b-4d2a-9e61-0b8f2d5c4a17",
    "username": "jane.fitness",
    "full_name": "Jane Cooper",
    "phone_number": "+14155550134",
    "tags": [
      {
        "id": 287,
        "name": "hot lead",
        "color": "#22C55E"
      },
      {
        "id": 302,
        "name": "vip",
        "color": "#6B7280"
      }
    ],
    "assigned_user": "alex@yourcompany.com",
    "notes": [
      {
        "id": 9813,
        "note": "Prefers WhatsApp over Instagram DMs",
        "created_at": "2026-11-19T10:02:14.000+00:00",
        "created_by": "alex@yourcompany.com"
      },
      {
        "id": 9812,
        "note": "Asked about pricing, call booked for Friday",
        "created_at": "2026-10-29T10:07:30.000+00:00",
        "created_by": "owner@yourcompany.com"
      }
    ]
  }
}

Shortened. data is the full contact object, with notes.

Link copied