Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rest API with LIQL to get the Labels and Tags gives error

I am trying to get the label and tags of a conversation. 

Here is a sample topic

It has the following two label names "Add or Withdraw Money" & "Bank Accounts & Credit Cards" 

I am able to pull the messages using this snippet * FROM messages WHERE'745517' LIM...

But I get an error when I run this * FROM labels WHERE'745517'

Error I get is the following

{"status":"error","message":"Invalid query syntax","data":{"type":"error_data","code":604,"developer_message":"","more_info":""},"metadata":{}}

Same issue when I try to pull tags

How can I fix this? Any help is greatly appreciated. 

3 Replies 3

There is mis spelling in API for

Your query should be * FROM labels WHERE'745517'


Try this, and check if its working for you now.

Expecting your Kudos and Accepted Solution to my replies.

Hi Prashant,

I am getting the same error. You can click on the link and check without any oauth. You should be able to see the response in the browser.

Clicking on the first API URL in my original post works but not the second URL (neither does your corrected version). 



Check now, Its for me.*

Actually i have copied the link from your post, and link address remain same, where i have updated the text in previous post.

Expecting your Kudos and Accepted Solution to my replies.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.