REST API : Is there a way to get incident details by case number

rush1
Kilo Contributor

Is there a way to get incident details by case number using REST API?

I only see once can provide incident/{sys_id}, I was wondering if there is any thing like incident/{case-number} instead. Also, one can see that GET incident?number=xxx is present, however it returns the list of incident in the result set.

Appreciate if some one can guide to get the incident details by case number. Also, what is the key difference between sys_id vs case-number are they both unique?

5 REPLIES 5

Mike Allen
Mega Sage

/api/now/v1/table/incident?sysparm_query=number=


Also, sys_id is the only true unique field in the system.   Numbers can be duplicated.


Someone at ServiceNow really needs to update the docs with this incredibly basic/essential query. 

Hi Mike,

Hope you are doing Good. 

We can read incident by Incident number like given below but can we get incident details based on Mobile number. If yes could you please share API details.

service-now.com/api/now/table/incident?sysparm_query=number=INC0000002&sysparm_limit=1