MailMoo
EndpointsCRM

Set or clear a lead's tag

Replaces the tag on a lead. A lead carries one tag at a time, so this overwrites whatever was there; the previous value comes back as oldTagId. Resolve the tag ID from the tags endpoint first.

POST/campaigns.leads.updateTag

Authorization

bearerAuth
AuthorizationBearer <token>

Enter your MailMoo API key (format: sk_live_...)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/campaigns.leads.updateTag" \  -H "Content-Type: application/json" \  -d '{    "leadGroupId": "b15edcce-7ff3-427f-9d96-03b6df3f3ff2",    "leadId": "3c6e2b8e-0e8f-48db-8791-27271df10113",    "tagId": "f69eb9f1-ae9f-4086-b25c-c39758a43fb3"  }'
{  "id": "string",  "workspaceId": "string",  "leadGroupId": "string",  "tagId": "string",  "pipelineStageId": "string",  "closeReason": "NOT_ICP",  "closedFromCategory": "NEW",  "stageSetManuallyAt": "string",  "followUpAt": "string",  "lastActivityAt": "string",  "cycle": 0,  "profilePictureUrl": "string",  "meetingBookedAt": "string",  "meetingBookedSource": "VIDEO_LANDING_PAGE",  "createdAt": "string",  "updatedAt": "string",  "campaigns": [    {      "id": "string",      "name": "string",      "property1": null,      "property2": null    }  ],  "oldTagId": "string",  "property1": null,  "property2": null}