+ Start a Discussion
Anil JagtapAnil Jagtap 

How to get contact field label and API name list using rest call

I want to get all contact filed label and API names using rest call. But I didn't find any endpoint for this.

Please tell me how to get it?

Best Answer chosen by Anil Jagtap
Raj VakatiRaj Vakati
Yes .. Use this URI 
 
/services/data/v43.0/sobjects/Contact/describe

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_describe.htm

All Answers

TimCarlTimCarl
Anil,
I am not sure what you mean by "endpoint" in the context used above. If you are looking for good resource: workbench is a great tool for REST API calls. 
Link to a quick overview and resources at the bottom,
https://trailhead.salesforce.com/en/modules/api_basics/units/api_basics_rest
From developer documentation,
https://developer.salesforce.com/docs/atlas.en-us.214.0.api_rest.meta/api_rest/intro_rest_conditional_requests.htm

Not sure if this is exactly what you are needing?

Tim
TimCarlTimCarl
Excellent resource too: https://resources.docs.salesforce.com/sfdc/pdf/api_rest.pdf
Anil JagtapAnil Jagtap

TimCarl,

I'm asking is there any rest url to get all contact fields names?

Raj VakatiRaj Vakati
Yes .. Use this URI 
 
/services/data/v43.0/sobjects/Contact/describe

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_describe.htm
This was selected as the best answer
Anil JagtapAnil Jagtap
How can I get only standard fields?