Newer Version Available

This content describes an older version of this product. View Latest

List Available REST API Versions

Use the Versions resource to list summary information about each REST API version currently available, including the version, label, and a link to each version's root. You do not need authentication to retrieve the list of versions.
Example usage
1curl https://yourInstance.salesforce.com/services/data/
Example request body
none required
Example JSON response body
1[
2    {
3        "version" : "20.0",
4        "label" : "Winter '11",
5        "url" : "/services/data/v20.0"
6    },
7    {
8        "version" : "21.0",
9        "label" : "Spring '11",
10        "url" : "/services/data/v21.0"
11    },
12    ...
13    {
14        "version" : "26.0",
15        "label" : "Winter '13",
16        "url" : "/services/data/v26.0"
17    }
18]
Example XML response body
1<?xml version="1.0" encoding="UTF-8"?>
2<Versions>
3    <Version>
4        <label>Winter &apos;11</label>
5        <url>/services/data/v20.0</url>
6        <version>20.0</version>
7    </Version>
8    <Version>
9        <label>Spring &apos;11</label>
10        <url>/services/data/v21.0</url>
11        <version>21.0</version>
12    </Version>
13    ...
14    <Version>
15        <label>Winter &apos;13</label>
16        <url>/services/data/v26.0</url>
17        <version>26.0</version>
18    </Version>
19</Versions>