# REST API v2.0 Playground

> For the complete documentation index, see [llms.txt](https://developers.thoughtspot.com/docs/llms.txt)

Source: https://developers.thoughtspot.com/docs/restV2-playground

# REST API v2.0 Playground

The REST API v2.0 Playground offers an interactive portal with API resources, comprehensive documentation, and a code panel to view the request and response workflows.

To access the Playground, click **Develop** > **REST API** > **REST Playground v2.0**.

![REST API v2.0 Playground](/docs/doc-images/images/v2-0-playground.png)

## Explore the interface

The API Playground consists of the following areas:

Resource pane

In the resource pane, you can find a catalog of API endpoints, grouped based on the objects they operate on. You can also view the API documentation, data structure of requests, response format, and attribute enumerations.

The search bar in the resource pane allows you to search for an endpoint and navigate between different endpoints in the list.

API request editor

The middle section of the portal provides a short description of the endpoint, endpoint URL, request parameters, and response codes. For parameters that require a JSON array, you can add each string in the array as a separate item.

![REST API v2 Playground](/docs/doc-images/images/array-example.png)

Code explorer

The code explorer offers several distinct features:

-   Code panel
    
    Shows a preview of the API request code. You can view the request body as you edit the input parameters and define attributes in the API editor area.
    
-   Try it out
    
    Allows you to trigger an API call. If the request succeeds, the API returns the 200 response code. You can copy or download the entire API response. You can also copy the individual attributes using the copy button that appears next to the field. To try another API call, click the **Request** tab.
    
-   Copy icon
    
    Allows you to copy API requests and responses.
    
-   Configuration panel
    
    Allows you to modify the client configuration settings. For example, you can update the access token of the client. To view this panel, click **Configure**.
    
-   Download icon
    
    Allows you to download the API response JSON file to your local directory.
    

[Try it out]({{navprefix}}/restV2-playground)