# Request App API

## Base path and global segment

In order to use the Request app API, you need to use the correct global segment. The following are the regional API base paths. Choose the global segment for the region you are in.

* [https://na.api.immutacloud.com/marketplace](https://na.api.immutacloud.com/marketplace/) - North America
* [https://eu.api.immutacloud.com/marketplace](https://eu.api.immutacloud.com/marketplace/) - European Union
* [https://ap.api.immutacloud.com/marketplace](https://ap.api.immutacloud.com/marketplace/) - Asia Pacific

If using **Test it** in the Request app API documentation, click `https://{global-segment}.api.immutacloud.com/marketplace` in the endpoint and select your global segment from the dropdown. Once you plug in your PAT, the endpoint will run and complete the actions within your Request app.

{% hint style="danger" %}
Your Request app data only exists in the same global segment as your Govern app. If you use the wrong global segment in your API call, you will receive the following response:

```json
{
  "message": "Not authenticated.",
  "error": "Unauthorized",
  "statusCode": 401
}
```

{% endhint %}

## Authentication

See instructions for generating your personal access token (PAT) on the [Authentication page](/SaaS/developer-guides/api-intro/authentication.md).

To use your generated PAT, insert it as the Bearer token for your API calls:

```
curl -L \
  --url '{correct base path from above}/api/access-agreement' \
  --header 'Authorization: Bearer <your-PAT>'
```

Or, if using "Test it" in the Request app API documentation, include it in the bearer token in the authentication section:

<figure><img src="/files/ZCV8m8eUoUcDPAc3YrJQ" alt="" width="342"><figcaption><p>Authentication for testing</p></figcaption></figure>

### Delete a PAT

In the Request app,

1. Navigate to the [**Personal Access Tokens** page](https://app.nonprod.immutacloud.com/marketplace/personal-access-tokens).
2. Select the **more actions** icon for the PAT you want to delete.
3. Select **Delete token** and click **Delete** in the modal.

## Download the Request app OpenAPI YAML

Download the Request app OpenAPI spec to import it into Postman or use a client generator tool to parse the OpenAPI definition to automatically produce client-side code.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/SaaS/developer-guides/api-intro/marketplace-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
