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

# Any REST endpoint

> Call any Plivo REST endpoint the CLI does not wrap yet.

## plivo api

For any endpoint the CLI doesn't yet have a command for. Uses your profile or environment credentials, supports `--dry-run`, returns the same JSON and error envelopes, and requires `--yes` for `POST`, `PUT`, `PATCH`, and `DELETE`. Account-scoped paths can be given relative to `/v1/Account/<auth_id>/`.

```bash theme={null}
plivo api GET /Number/ --query limit=5
plivo api GET /v1/Account/<auth_id>/Zentrunk/Trunk/
plivo api POST /Message/ --body @msg.json --yes
```

| Command     | What it does                                                             |
| ----------- | ------------------------------------------------------------------------ |
| `plivo api` | Generic REST escape hatch: hit any Plivo API path that isn't yet wrapped |

<AccordionGroup>
  <Accordion title="plivo api">
    **Command:**

    ```bash theme={null}
    plivo api <method> <path> [flags]
    ```

    **Flags**

    * `--body <string>`: request body: literal JSON, @path/to/file, or @- for stdin
    * `--header <stringArray>`: extra header as 'Key: Value' (repeatable; overrides defaults)
    * `--method <string>`: HTTP method (alternative to the positional arg; useful when piping)
    * `--query <stringArray>`: query param as key=value (repeatable)
  </Accordion>
</AccordionGroup>
