REST API V3 / Contacts / Tags / Get

URL

GET /wp-json/gh/v3/contacts/tags

Method

This endpoint supports the  GET method.

Request

This endpoint provides functionality to get all the tags applied to the contact.

PARAM TYPE REQUIRED DESCRIPTION
id_or_email string/int yes Contact id.
by_user_id bool no Fetches the contact using user id. 

Example

Here is an example of URI which fetches tag id of tag applied to the contact.

http://yoursite.com/wp-json/gh/v3/contacts/tags?id_or_email=2

Response

If the request was sent successfully you will receive a 200 OK response with the success message and tag ids. An example response is below.

{
    "tags": [
        3,
	5,
	8
    ],
    "status": "success"
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us