Logo
30 days challenge API Documentation

Get all test relations

GET https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/test

This call fetches all types test relations linked to the specified API version. This includes the testsuites, integrationtest, and contracttest relations.

The response contains a test object. Each item contains details about each test.

This call requires an API Key as the X-Api-Key request header or the apikey URL query parameter.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "test": [ { "id": "521b0486-ab91-4d3a-9189-43c9380a0533", "name": "Test Suite 2", "updatedAt": "2022-05-05T08:01:23.000Z", "collectionId": "7332157-a8bcd143-2b01-4b12-8c14-c7d05be77725" }, { "id": "1b2d7ge4-87e3-1n01-3457-1h7q5r5a34g1", "name": "Test Suite 1", "updatedAt": "2022-05-05T08:20:42.000Z", "collectionId": "7732157-a8bcd149-2c01-4b4c-8c14-c7d05be77745" }, { "id": "334ea1db-e7f7-421d-b693-77152f1c48cd", "name": "Contract Test 1", "updatedAt": "2022-05-05T08:55:15.000Z", "collectionId": "7332157-a8bcd143-2b01-4b12-8c14-c7d05be88725" }, { "id": "2a9b8fa8-88b7-4b86-8372-8e3f6f6e07f2", "name": "Integration Test 1", "updatedAt": "2022-05-05T08:15:44.000Z", "collectionId": "8051175-zb8r039-a91c-51rm-8d42-c9p36599145r" } ] }



Curl
curl -X GET 'https://api.getpostman.com/apis/undefined/versions/undefined/test'

ENDPOINTS