Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more 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