For details on usage, syntax, and authentication, see the REST API Developer Guide.
-
REST Resources
REST resources give you access to Tooling API objects. When querying Tooling API objects using REST resources, keep in mind that the user permissions needed for access vary from endpoint to endpoint and from object to object. Check the description of the endpoint and object you want to use to determine user permission requirements for access. -
REST Resources for Unit Testing
Retrieve and execute Apex and flow tests in one place. Get a complete view of your tests by using the Test Discovery API. Execute tests asynchronously or synchronously by using the Test Runner API. These APIs are both Tooling API REST resources. -
REST Resource Examples
Robust examples using REST resources in the Tooling API. -
REST Headers
Use REST if you’re using a language that isn’t strongly typed, like JavaScript. -
REST Header Examples
Use these examples to understand REST headers. -
Improve Performance with the Composite Resource
Use the /composite resource to improve the performance of a development tool or app built with Tooling API. This resource executes a series of Tooling API requests in a single call, minimizing the number of round trips needed between the client and server. You can use the output of one request as the input to a subsequent request. The requests’ response bodies and HTTP statuses are returned in a single response body. The entire request counts as a single call toward your API limits. Available in API version 40.0 and later. -
Retrieve Compilation Results for Invalid Apex with the apexCompileResults Resource
Retrieve compilation results for Apex classes and triggers with validation errors. Routinely monitoring results allows you to detect and respond to compilation issues.Available in API version 68.0 and later. This resource requires the Author Apex org permission. -
Retrieve Apex Type Information with the Symbols Resource (Beta)
Use the Apex Symbol API to retrieve detailed metadata for built-in, custom, packaged, and dynamic Apex types, including classes, interfaces, enums, methods, and triggers. Available in API version 68.0 and later. This resource requires the Author Apex org permission and the View Setup user permission.