> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# stackshift api

> Call an existing customer API endpoint

<Note>
  This page is generated from the StackShift CLI command definitions.
</Note>

Call an existing customer API endpoint

```
stackshift api METHOD /PATH [flags]
```

### Options

```
      --data string       inline JSON request body
      --download string   save a GET response to a new file
      --file string       JSON request body file or -
  -h, --help              help for api
      --idempotent        retry a write whose API contract is idempotent
```

### Options inherited from parent commands

```
      --api-url string       StackShift API URL
      --app string           application name or ID
      --color string         color output: auto, always, or never (default "auto")
      --debug                show request diagnostics
      --environment string   project environment
  -o, --output string        output format: table, json, yaml, or name (default "table")
      --profile string       configuration profile
      --project string       project name or ID
  -q, --quiet                suppress progress output
      --timeout duration     request timeout (default 30s)
      --token-file string    mode-0600 token file
      --token-stdin          read a CI token from stdin
  -y, --yes                  confirm risky operations
```

### SEE ALSO

* [stackshift](/cli-reference/stackshift)	 - Manage StackShift from the command line
