Holder API
  • Overview
  • Authentication
  • Security
  • Contacts
    • Adding a Contact
    • Get Contacts
    • Contact Fields
    • Merging Contacts
    • Tags
  • NFT Data
    • Traits
Powered by GitBook
On this page
  • Get list of current tags
  • Create a new tag
  • Apply tag to contact
  1. Contacts

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

CODE
RETURN

200

Tag Object

401

Unauthorized

404

Returns account not found error

500

Internal Server Error

Create a new tag

POST: /tags

Body

FIELD
TYPE
Description

name

string

the name of the tag

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

CODE
RETURN

201

Created Value

400

Neo4j Error

401

Unauthorized

500

Internal Server Error

Apply tag to contact

POST: /tags/:tagId

Body

FIELD
TYPE
Description

contactIds

array of strings

list of contact ids to apply

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

CODE
RETURN

201

Created Value

401

Unauthorized

404

Contact or tag not found

500

Internal Server Error

PreviousMerging ContactsNextTraits

Last updated 1 year ago