Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get all versions

GET {{baseUrl}}/apis/{{apiId}}/versions

Gets all the published versions of an API.

 

Body PARAM

Key Datatype Required Description 
cursor
string The pointer to the first record of the set of paginated results.
limit
string The maximum number of rows to return in the response. This value defaults to `10`.



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "meta": { "total": 4, "limit": 10 }, "versions": [ { "createdAt": "2023-02-17T10:39:51.000Z", "name": "v4", "id": "bc792958-ffd5-4a4c-bcf5-1c07cb8f277b", "releaseNotes": "", "updatedAt": "2023-02-17T10:39:57.000Z" } ] }



Curl
curl -X GET 'https://api.getpostman.com/apis/apiId/versions?cursor=<string>&limit=<integer>' -H 'Accept: application/vnd.api.v10+json'

ENDPOINTS