Update status
PATCH
/api/v2/contacts/{username_or_id}/statusChanges a contact's status, for example to mark a deal as won.
Rate limit 300 requests per minute
Headers
x-api-keyheaderRequiredYour API key.
Content-TypeheaderRequiredapplication/json
Path parameters
username_or_idstringRequiredInstagram username or contact id.
Body
statusstringRequiredopen,won,lostorabandoned.changed_bystringEmail of the team member, shown in the activity log.
Errors
| Error | When |
|---|---|
400 missing_fields | status is missing. |
400 invalid_status | status is not one of the allowed values. |
400 invalid_changed_by | changed_by is not a valid email address. |
403 user_not_in_organization | The changed_by email belongs to someone outside your organization. |
404 unknown_changed_by | No user with the changed_by email. |
404 contact_not_found | No contact with that username or id in your organization. |
curl -X PATCH "https://app.dmtracker.ai/api/v2/contacts/jane.fitness/status" \
-H "x-api-key: $DMTRACKER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "won"
}'{
"status": "success",
"message": "Contact status updated successfully",
"data": {
"id": "7c1e9a52-3f4b-4d2a-9e61-0b8f2d5c4a17",
"username": "jane.fitness",
"full_name": "Jane Cooper",
"status": "won"
}
}Shortened. data is the full contact object.