# What a tool of yours runs with

> Read a tool’s masked saved variables and connected accounts.

Source: https://docs.fous.com/api-reference/getOwnToolEnvironment

`GET /v1/tools/{api}/environment`

The saved variables (masked) and connected accounts a tool of yours runs with, per method: what an edit starts from. Owners and admins only.

Authentication: `Authorization: Bearer $FOUS_API_KEY`.

## Path parameters

- `api` (string, required)

## Query parameters

- `method_id` (integer)

## Response 200

Success

- `success` (true, required)
- `data` (object, required)
  - `method_id` (integer, required)
  - `source_urls` (array of string, required)
  - `connections` (object, required)
  - `variables` (array of object, required)
    - `name` (string, required)
    - `masked_value` (string, required)

## Errors

Every error uses the Error schema: branch on `error.code`. Codes are listed at https://docs.fous.com/guides/errors.

- 400
- 401 (headers: WWW-Authenticate)
- 402
- 403
- 404
- 408
- 409
- 410
- 413
- 422
- 429 (headers: Retry-After)
- 500
- 502
- 503 (headers: Retry-After)
- 504

## Example request

```bash
curl 'https://api.fous.com/v1/tools/{api}/environment' \
  -H "Authorization: Bearer $FOUS_API_KEY"
```
