v1Resources/Social Listening/postCreate a listening tag

Create a listening tag

Creates a tag. With automatic set to true, the client's existing posts are classified against the criteria in the background; no new collection starts.

post/api/v1/listening/tags
listening:write
Request body
clientIdstringrequired
The client (business) this concerns.
namestringrequired
The tag's name, up to 60 characters. Unique per client.
definitionstringrequired
What the tag means, in a sentence.
includeCriteriastringrequired
What makes a post belong to the tag.
excludeCriteriastringoptional
What rules a post out. Optional.
keywordsarray of stringoptional
Up to 20 helper keywords.
automaticbooleanoptional
True tags posts automatically from the criteria; false leaves tagging to you.
Response
dataobjectoptional
tagIdstringoptional
The new tag's id.
classificationQueuedbooleanoptional
Whether the background classification was queued.
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
409The request conflicts with the current state of the resource — for example, changing the email or phone of a recipient who has already been messaged, or a team invite that was already accepted (or hasn't been accepted yet).
429Too many requests. Retry after the number of seconds in the Retry-After header.
post/api/v1/listening/tags
Your API key
Request body*
{}

New to the Synup API?