Tags

Add ability to get, create, and apply tags from contacts

Get list of current tags

GET: /tags

200 Response Object

 {
 	"accountId": "string",
 	"createdAt": number,
 	"name": "string",
 	"id": "string",
 	"updatedAt": number
 }

Return

Create a new tag

POST: /tags

Body

200 Response Object

{
    "tag": {
        "createdAt": number,
        "accountId": "string",
        "name": "string",
        "id": "string",
        "updatedAt": number
    },
    "message": "Successfully added the tag new to the database"
}

Return codes

Apply tag to contact

POST: /tags/:tagId

Body

201 Response Object

{
    "tag": {
        "createdAt": number,
        "accountId": "string",
        "name": "string",
        "id": "string",
        "updatedAt": number
    },
    "message": "Successfully applied the tag ${tagId} to the contact"
}

Return codes

Last updated