Kartra API: Inbound > Actions. This article is for developers.
Assigns a tag to a specified lead. Note that the tag must already exist in your Kartra account.
Type | Parameters | Values |
POST | cmd* | assign_tag |
POST | tag_name* | string |
* Required fields
Example
'lead' => [ 'email' => 'example@email.com' ], 'actions' => [ '0' => [ 'cmd' => 'assign_tag', 'tag_name' => 'tag name' ] ]
Success message
{
"status": "Success",
"message": "Tag added to lead",
"type": "103"
}
Error cases
Type Number | Message | Cause |
211 | Tag cannot be empty | 'tag_name' parameter is mandatory and cannot be empty. |
212 | Tag does not exist | The tag is not in our database. |
Error message example
{ "status": "Error", "message": "Tag cannot be empty", "type": "211" }