The CreatorCon Call for Content is officially open! Get started here.

Querying for endpoint fields - REST API

dominique_penni
Kilo Explorer

Hey all,

I'm working on a REST api integration and I'm having trouble finding a way to programmatically find the fields that are to be expected by a particular endpoint.

Is there a way perform a query, such that, I could make a call to an endpoint similar to:

Then, in response, get a list of the fields (and hopefully field datatypes) that this will return.

I've seen this referred to as a "describe" request elsewhere.

Thank you!

5 REPLIES 5

prasad48
Tera Guru

Use below. It will return all columns,datatype under a table. Sorry if i misunderstand your question again

https://xyz.service-now.com/api/now/table/sys_dictionary?sysparm_fields=internal_type,element&table=sys_user