Tooling Search

GET {{_endpoint}}/services/data/v{{version}}/tooling/search?q=

Runs one or more methods within one or more Apex classes, using the asynchronous test execution mechanism. In the request body, you can specify test class names and IDs, suite names and IDs, the maximum number of failed tests to allow, and the test level, as comma-separated lists or as an array. You can also indicate whether to opt out of collecting code coverage information during the test run (available in API version 43.0 and later).

Request Params

KeyDatatypeRequiredDescription
qnullSOSL search statement

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"searchRecords":[{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqcAAA"},"Name":"LightningSelfRegisterController"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqhAAA"},"Name":"LightningSelfRegisterControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wq9AAA"},"Name":"SiteRegisterControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p4H00000A0zYxQAJ"},"Name":"PrepareSandboxTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqTAAQ"},"Name":"CommunitiesSelfRegControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p4H000009aIwvQAE"},"Name":"MicrobatchSelfRegControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p4H000009PEFIQA4"},"Name":"PrepareSandbox"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqRAAQ"},"Name":"CommunitiesLandingControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqFAAQ"},"Name":"MyProfilePageControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqDAAQ"},"Name":"ForgotPasswordControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wq7AAA"},"Name":"SiteLoginControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p4H00000ANdnqQAD"},"Name":"AccountTriggerHelperTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqgAAA"},"Name":"LightningForgotPasswordControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqfAAA"},"Name":"LightningLoginFormControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqeAAA"},"Name":"LightningLoginFormController"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqVAAQ"},"Name":"CommunitiesSelfRegConfirmControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqPAAQ"},"Name":"CommunitiesLoginControllerTest"},{"attributes":{"type":"ApexClass","url":"/services/data/v59.0/tooling/sobjects/ApexClass/01p580000090wqBAAQ"},"Name":"ChangePasswordControllerTest"}]}