Get Field and Other Metadata for an Object

Use the SObject Describe resource to retrieve all the metadata for an object, including information about each field, URLs, and child relationships.

Example
https://na1.salesforce.com/services/data/v20.0/Account/describe/ -H "Authorization: Bearer token"
Example request body
none required
Example response body
{
    "name" : "Account",
    "fields" : 
    [ 
        {  
            "length" : 18,  
            "name" : "Id",  
            "type" : "id",  
            "defaultValue" : {    "value" : null  },  
            "updateable" : false,  
            "label" : "Account ID",  
            ...
        },

        ...

    ],


    "updateable" : true,
    "label" : "Account",
    "keyPrefix" : "001",
    "custom" : false,

    ...

    "urls" : 
    {  
        "uiEditTemplate" : "https://na1.salesforce.com/{ID}/e",  
        "sobject" : "/services/data/v20.0/sobjects/Account",  
        "uiDetailTemplate" : "https://na1.salesforce.com/{ID}",  
        ...
    },

    "childRelationships" : 
    [ 
        {  
            "field" : "ParentId",  
            "deprecatedAndHidden" : false,  
            ...
        }, 

        ....

    ],

    "createable" : true,
    "customSetting" : false,
    ...
}
© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.