# Catalog Protocol
Use the runtime catalog as the source of truth. Generated references are a fast index; command execution details come from the CLI itself.
## Search
Run `pentagi search "<intent>" --json` to find candidate commands. Use `--limit` to control result count. Treat search output as candidates only.
## Full Catalog
Run `pentagi commands --json` to inspect the generated command catalog. Use `--include-hidden` only when hidden commands are relevant.
Key fields:
- `path`: command path to pass to `commands show` or execute after the CLI name.
- `shortcuts`: root-level commands that execute the same operation with preset flag values.
- `http`: HTTP method and path template.
- `http.default_hostname`: optional source-level host used after `--hostname`, `$PENTAGI_HOST`, and the host selected with `auth use`, and before the single-host fallback from `hosts.yml`.
- `flags`: CLI flags, parameter location, type, required state, defaults, enum values, format, input modes, and help.
- `body`: request body requirement, media type, and optional `runtime_schema` preflight source, including its active-context prerequisites.
- `auth`: `required`, declared `scopes`, and `requirements` — any one entry satisfies the command, every scheme inside an entry is required, `{}` allows anonymous access; execution fails with `not_authenticated` before sending when the stored credential plus header and query parameters satisfy no entry.
- `mutation`: `read`, `write`, or `unknown`. Do not infer write vs read from the HTTP method alone. Treat any value other than `read` as requiring preview when `dry_run.mode` is `http_preview`, or explicit user confirmation when preview is unavailable.
- `dry_run`: preview contract. `http_preview` is declared only when the generated runner can preview; use `--<flag>` and print the resolved HTTP request JSON. `unsupported` means the command has no preview, including all workflow commands. A `--dry-run` flag on a custom command is not a preview contract.
- `examples`: runnable examples with optional body shape, output hints, and follow-up commands.
- `output`: list path, default columns, response media type, pagination, streaming hints, and `binary.flag` for binary downloads; a streaming policy describes collection, terminal outcomes, and optional live projection.
- `output.column_formats`: `kind: count` shows an array length in table output only.
- `flags[].context`: an optional account-scoped default with explicit flag, declared environment, then stored-value precedence.
- `sets_context`: a successful operation persists its declared parameter as the selected host's active context.
- `notes`, `prerequisites`, and `known_errors`: overlay-provided operation context that is not inferred from the API spec.
## Command Detail
Run `pentagi commands show <path...> --json` before executing an unfamiliar command. This is the source of truth for flags, body, auth, HTTP path, `mutation`, `dry_run`, and output hints.
## Schema
Run `pentagi commands schema --json` to read `catalog_schema_version`, `surfaces`, and `dry_run.result` before parsing catalog JSON with durable tooling. `dry_run.result=http_preview` means a preview prints the resolved HTTP request JSON (`method`, `url`, `hostname`, `host_source`, `headers`, `body`, `auth`, `output`).
## Sensitive Flags
When a flag entry has `input_modes`, prefer safe modes over putting secrets directly in shell arguments.
- `flag`: pass the direct `--<flag>` value; keep this for compatibility or non-secret values.
- `env`: pass `--<flag>-env NAME` to read the value from an environment variable.
- `file`: pass `--<flag>-file path` to read the value from a file.
- `stdin`: pass `--<flag>-stdin` to read the value from stdin.
- Use only one input mode for the same flag.
## Request Bodies
- `--file path`: read a JSON body from a file.
- `--file -`: read a JSON body from stdin.
- `--set key.path=value`: build JSON with type inference for booleans, null, integers, and floats.
- `--set-str key.path=value`: build JSON while forcing the value to remain a string.
JSON `body.schema` validates compiled types, nullable values, nested properties/items, required fields, and resolved `allOf` structure before sending, including during dry-run and workflows. For templates, it validates `body.merge_path`. Enum, format, unions, additional properties, and unresolved references are outside this static preflight. Failures exit 2 and identify the body path without body values.
If `body.runtime_schema` is present, normal execution fetches that JSON Schema and validates the body before the target request. An `http_preview` dry-run does not fetch it.
## Output
Use `-o json` for machine-readable command output. Other supported formats are `table`, `yaml`, and `raw`. For collected streams, choose one mode: JSON or YAML for one document, `--stream` in the default output mode when `output.streaming.policy.live` is present, or raw for wire events.
When `output.binary` is present, success output is raw bytes. Pass `--<output.binary.flag> <new-path>` (it refuses existing paths; choose a path the user approved) or `-` only when piping to another program, never into the conversation. `-o` then affects only error output.
On a non-zero exit with JSON or YAML output, read `error.code`, `error.message`, and `error.hint`; optional `error.http` contains only `status`. A configured pause exits zero and is represented by the field mapping in its stream collection policy.
## Auth
If command detail returns `auth.required=true`, run `pentagi auth status -o json` before execution and read `hostname` and `source`. Host resolution order: `--hostname` > `$PENTAGI_HOST` > the selected host (`pentagi auth use <host>`) > `http.default_hostname` > the single host in `hosts.yml`. When more than one host is logged in and the host was chosen implicitly, the CLI also prints a `current host: <name>` line on stderr; read provenance from `auth status`, not from that line. If no matching host is logged in, stop and ask the user to authenticate. Map that status to declared schemes: bearer satisfies http bearer, oauth2, and openIdConnect; basic satisfies http basic; apikey satisfies an apiKey header whose name is `param`, or any http scheme when stored for the `Authorization` header; header or query parameters passed to the command can supply apiKey schemes.
## Cloudflare Access
Before Access setup, run `pentagi commands --include-hidden --json`. Read `auth.required` for every entry in `commands`.
If no command has `auth.required=true`, report: "This CLI cannot enable Cloudflare Access in this version." Stop here. Do not run the Access login or API login steps below.
Only if at least one command has `auth.required=true`, continue with the following Access setup.
If the host requires Cloudflare Access, replace `api.example` below with its hostname, including any non-default port. Ask the user to complete these steps in order:
1. Install `cloudflared` on `PATH`.
2. Run `cloudflared access login --quiet https://api.example` for the actual HTTPS origin.
3. Run `pentagi auth login --hostname api.example --cloudflare-access` and complete normal API login.
Access login does not replace API authentication. Use the same explicit `--hostname` for status and execution. In `auth status -o json`, `hosts[].cloudflare_access` reports only the saved switch, not token validity. Status does not contact the host or invoke `cloudflared`.
A later API login preserves the switch. Use `pentagi auth login --hostname api.example --cloudflare-access=false` to disable it. The first real request obtains a token for the exact HTTPS origin and reuses it within the invocation. Lathe does not persist Access tokens or read or write the `cloudflared` cache. Disabled hosts, HTTP dry-runs, help, and verification never obtain Access tokens. The updater does not use host Access configuration.
Access requires HTTPS with certificate verification and conflicts with `--insecure` or a saved insecure setting. Tokens do not apply to subdomains or other ports. Enabled requests refuse redirects to another origin.
A 302 to `*.cloudflareaccess.com` supplies an error hint only. Never enable Access or run a command from that redirect. Lathe does not start Access browser login or automatically replay the request. If Access login expires, ask the user to repeat Access login before another API attempt.
One origin must use one Access application. Different application audiences by path are unsupported. A CLI whose commands all report `auth.required=false` cannot enable Access in this version. There is no separate configuration command. Credentials for an old proxy host are not migrated or deleted.
# Module `pentagi_api`
## Source
- Backend: `swagger`
- Source kind: `git`
- Repository: `https://github.com/vxcontrol/pentagi`
- Pinned tag: `879e87c2c2688c4a95eac9c1aaf3cd6f6123ebe3`
- Files: `backend/pkg/server/docs/swagger.json`
- Resolved SHA: `879e87c2c2688c4a95eac9c1aaf3cd6f6123ebe3`
- Reproducible: yes
## Agentlogs
### `pentagi agentlogs get-agentlogs`
- Summary: Retrieve agentlogs list
- HTTP: `GET /api/v1/agentlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi agentlogs get-flows-flow-id-agentlogs`
- Summary: Retrieve agentlogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/agentlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Anonymize
### `pentagi anonymize post-anonymize-text`
- Summary: Anonymize text
- HTTP: `POST /api/v1/anonymize/text`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
## Assistantlogs
### `pentagi assistantlogs get-assistantlogs`
- Summary: Retrieve assistantlogs list
- HTTP: `GET /api/v1/assistantlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi assistantlogs get-flows-flow-id-assistantlogs`
- Summary: Retrieve assistantlogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/assistantlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Assistants
### `pentagi assistants delete-flows-flow-id-assistants-assistant-id`
- Summary: Delete assistant by id
- HTTP: `DELETE /api/v1/flows/{flowID}/assistants/{assistantID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--assistant-id` (path, required): assistant id
### `pentagi assistants get-flows-flow-id-assistants`
- Summary: Retrieve assistants list
- HTTP: `GET /api/v1/flows/{flowID}/assistants/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi assistants get-flows-flow-id-assistants-assistant-id`
- Summary: Retrieve flow assistant by id
- HTTP: `GET /api/v1/flows/{flowID}/assistants/{assistantID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--assistant-id` (path, required): assistant id
- Output: response media `application/json`
### `pentagi assistants post-flows-flow-id-assistants`
- Summary: Create new assistant with custom functions
- HTTP: `POST /api/v1/flows/{flowID}/assistants/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id (use 0 to create a new flow together with the assistant)
- Output: response media `application/json`
### `pentagi assistants put-flows-flow-id-assistants-assistant-id`
- Summary: Patch assistant
- HTTP: `PUT /api/v1/flows/{flowID}/assistants/{assistantID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id
- `--assistant-id` (path, required): assistant id
- Output: response media `application/json`
## Containers
### `pentagi containers get-containers`
- Summary: Retrieve containers list
- HTTP: `GET /api/v1/containers/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi containers get-flows-flow-id-containers`
- Summary: Retrieve containers list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/containers/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi containers get-flows-flow-id-containers-container-id`
- Summary: Retrieve container info by id and flow id
- HTTP: `GET /api/v1/flows/{flowID}/containers/{containerID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--container-id` (path, required): container id
- Output: response media `application/json`
## FlowFiles
### `pentagi flowfiles delete-flows-flow-id-files`
- Summary: Delete flow files or directories by cached paths
- HTTP: `DELETE /api/v1/flows/{flowID}/files/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--path` (query): relative path in cache: uploads/, resources/, or container/ (may be combined with paths[])
- `--paths[]` (query): relative paths in cache (repeatable): uploads/, resources/, or container/
- Output: response media `application/json`
### `pentagi flowfiles get-flows-flow-id-files`
- Summary: Retrieve flow files list
- HTTP: `GET /api/v1/flows/{flowID}/files/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flowfiles get-flows-flow-id-files-container`
- Summary: Retrieve flow container directory files list
- HTTP: `GET /api/v1/flows/{flowID}/files/container`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--path` (query): absolute path inside the running container; defaults to /work (may be combined with paths[])
- `--paths[]` (query): absolute paths inside the running container (repeatable)
- Output: response media `application/json`
### `pentagi flowfiles get-flows-flow-id-files-download`
- Summary: Download flow file(s) or directory by cached path(s)
- HTTP: `GET /api/v1/flows/{flowID}/files/download`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--path` (query): relative path in cache: uploads/, resources/, or container/ (may be combined with paths[])
- `--paths[]` (query): relative paths in cache (repeatable)
- Output: response media `application/octet-stream`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `pentagi flowfiles post-flows-flow-id-files`
- Summary: Upload files to flow workspace
- HTTP: `POST /api/v1/flows/{flowID}/files/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--files` (formData, required, binary): files to upload (multipart, field name: files or file)
- Output: response media `application/json`
### `pentagi flowfiles post-flows-flow-id-files-pull`
- Summary: Pull files or directories from the running container into the local cache
- HTTP: `POST /api/v1/flows/{flowID}/files/pull`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flowfiles post-flows-flow-id-files-resources`
- Summary: Copy user resources into a flow
- HTTP: `POST /api/v1/flows/{flowID}/files/resources`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flowfiles post-flows-flow-id-files-to-resources`
- Summary: Promote flow file(s) or directory/directories to user resources
- HTTP: `POST /api/v1/flows/{flowID}/files/to-resources`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
## Flows
### `pentagi flows delete-flows-flow-id`
- Summary: Delete flow by id
- HTTP: `DELETE /api/v1/flows/{flowID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
### `pentagi flows get-flows`
- Summary: Retrieve flows list
- HTTP: `GET /api/v1/flows/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi flows get-flows-flow-id`
- Summary: Retrieve flow by id
- HTTP: `GET /api/v1/flows/{flowID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flows get-flows-flow-id-graph`
- Summary: Retrieve flow graph by id
- HTTP: `GET /api/v1/flows/{flowID}/graph`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flows get-flows-flow-id-usage`
- Summary: Retrieve analytics for specific flow
- HTTP: `GET /api/v1/flows/{flowID}/usage`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
### `pentagi flows post-flows`
- Summary: Create new flow with custom functions
- HTTP: `POST /api/v1/flows/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi flows put-flows-flow-id`
- Summary: Patch flow
- HTTP: `PUT /api/v1/flows/{flowID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--flow-id` (path, required): flow id
- Output: response media `application/json`
## GraphQL
### `pentagi graphql post-graphql`
- Summary: Perform graphql requests
- HTTP: `POST /api/v1/graphql`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: list path `data`; response media `application/json`
## Knowledge
### `pentagi knowledge delete-knowledge-id`
- Summary: Delete knowledge document
- HTTP: `DELETE /api/v1/knowledge/{id}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--id` (path, required): Document UUID
- Output: response media `application/json`
### `pentagi knowledge get-knowledge`
- Summary: List knowledge documents
- HTTP: `GET /api/v1/knowledge/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- `--with-content` (query): include document text in the response
- Output: response media `application/json`; pagination `offset`
### `pentagi knowledge get-knowledge-id`
- Summary: Get knowledge document
- HTTP: `GET /api/v1/knowledge/{id}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--id` (path, required): Document UUID
- Output: response media `application/json`
### `pentagi knowledge post-knowledge`
- Summary: Create knowledge document
- HTTP: `POST /api/v1/knowledge/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi knowledge post-knowledge-search`
- Summary: Semantic search in knowledge base
- HTTP: `POST /api/v1/knowledge/search`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi knowledge put-knowledge-id`
- Summary: Update knowledge document
- HTTP: `PUT /api/v1/knowledge/{id}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--id` (path, required): Document UUID
- Output: response media `application/json`
## Msglogs
### `pentagi msglogs get-flows-flow-id-msglogs`
- Summary: Retrieve msglogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/msglogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi msglogs get-msglogs`
- Summary: Retrieve msglogs list
- HTTP: `GET /api/v1/msglogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Prompts
### `pentagi prompts delete-prompts-prompt-type`
- Summary: Delete prompt by type
- HTTP: `DELETE /api/v1/prompts/{promptType}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--prompt-type` (path, required): prompt type
- Output: response media `application/json`
### `pentagi prompts get-prompts`
- Summary: Retrieve prompts list
- HTTP: `GET /api/v1/prompts/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi prompts get-prompts-prompt-type`
- Summary: Retrieve prompt by type
- HTTP: `GET /api/v1/prompts/{promptType}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--prompt-type` (path, required): prompt type
- Output: response media `application/json`
### `pentagi prompts post-prompts-prompt-type-default`
- Summary: Reset prompt by type to default value
- HTTP: `POST /api/v1/prompts/{promptType}/default`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--prompt-type` (path, required): prompt type
- Output: response media `application/json`
### `pentagi prompts put-prompts-prompt-type`
- Summary: Update prompt
- HTTP: `PUT /api/v1/prompts/{promptType}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags:
- `--prompt-type` (path, required): prompt type
- Output: response media `application/json`
## Providers
### `pentagi providers get-providers`
- Summary: Retrieve providers list
- HTTP: `GET /api/v1/providers/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags: none
- Output: response media `application/json`
## Public
### `pentagi public get-auth-authorize`
- Summary: Login user into OAuth2 external system via HTTP redirect
- HTTP: `GET /api/v1/auth/authorize`
- Auth: required
- Body: none
- Flags:
- `--return-uri` (query, default `/`): URI to redirect user there after login
- `--provider` (query, default `google`): OAuth provider name (google, github, etc.)
### `pentagi public get-auth-login-callback`
- Summary: Login user from external OAuth application
- HTTP: `GET /api/v1/auth/login-callback`
- Auth: required
- Body: none
- Flags:
- `--code` (query): Auth code from OAuth provider to exchange token
### `pentagi public get-auth-logout`
- Summary: Logout current user via HTTP redirect
- HTTP: `GET /api/v1/auth/logout`
- Auth: required
- Body: none
- Flags:
- `--return-uri` (query, default `/`): URI to redirect user there after logout
### `pentagi public get-info`
- Summary: Retrieve current user and system settings
- HTTP: `GET /api/v1/info`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--refresh-cookie` (query): boolean arg to refresh current cookie, use explicit false
- Output: response media `application/json`
### `pentagi public post-auth-login`
- Summary: Login user into system
- HTTP: `POST /api/v1/auth/login`
- Auth: required
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi public post-auth-login-callback`
- Summary: Login user from external OAuth application
- HTTP: `POST /api/v1/auth/login-callback`
- Auth: required
- Body: required
- Flags: none
### `pentagi public post-auth-logout-callback`
- Summary: Logout current user from external OAuth application
- HTTP: `POST /api/v1/auth/logout-callback`
- Auth: required
- Body: none
- Flags: none
## Resources
### `pentagi resources delete-resources`
- Summary: Delete a resource (file or directory)
- HTTP: `DELETE /api/v1/resources/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--path` (query): virtual path to delete (may be combined with paths[])
- `--paths[]` (query): additional virtual paths to delete (repeatable)
- Output: response media `application/json`
### `pentagi resources get-resources`
- Summary: List user resources
- HTTP: `GET /api/v1/resources/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--path` (query): virtual directory path; empty for root (may be combined with paths[])
- `--paths[]` (query): additional virtual directory paths (repeatable)
- `--recursive` (query): list recursively (default false)
- Output: response media `application/json`
### `pentagi resources get-resources-download`
- Summary: Download a resource or resources
- HTTP: `GET /api/v1/resources/download`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--path` (query): virtual path to download (may be combined with paths[])
- `--paths[]` (query): additional virtual paths to download (repeatable)
- Output: response media `application/octet-stream`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `pentagi resources post-resources`
- Summary: Upload files to resource storage
- HTTP: `POST /api/v1/resources/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--dir` (query): target virtual directory path; empty or omitted means root
- `--files` (formData, required, binary): files to upload (field name: files or file)
- Output: response media `application/json`
### `pentagi resources post-resources-copy`
- Summary: Copy resource(s) (files or directories)
- HTTP: `POST /api/v1/resources/copy`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi resources post-resources-mkdir`
- Summary: Create a virtual directory
- HTTP: `POST /api/v1/resources/mkdir`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi resources put-resources-move`
- Summary: Move or rename resource(s) (files or directories)
- HTTP: `PUT /api/v1/resources/move`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: required
- Flags: none
- Output: response media `application/json`
## Roles
### `pentagi roles get-roles`
- Summary: Retrieve roles list
- HTTP: `GET /api/v1/roles/`
- Auth: required
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi roles get-roles-role-id`
- Summary: Retrieve role by id
- HTTP: `GET /api/v1/roles/{roleID}`
- Auth: required
- Body: none
- Flags:
- `--role-id` (path, required): role id
- Output: response media `application/json`
## Screenshots
### `pentagi screenshots get-flows-flow-id-screenshots`
- Summary: Retrieve screenshots list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/screenshots/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi screenshots get-flows-flow-id-screenshots-screenshot-id`
- Summary: Retrieve screenshot info by id and flow id
- HTTP: `GET /api/v1/flows/{flowID}/screenshots/{screenshotID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--screenshot-id` (path, required): screenshot id
- Output: response media `application/json`
### `pentagi screenshots get-flows-flow-id-screenshots-screenshot-id-file`
- Summary: Retrieve screenshot file by id and flow id
- HTTP: `GET /api/v1/flows/{flowID}/screenshots/{screenshotID}/file`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--screenshot-id` (path, required): screenshot id
- Output: response media `image/png`; binary response: write with --output-file <new-path> or - for stdout (exact flag in output.binary.flag)
### `pentagi screenshots get-screenshots`
- Summary: Retrieve screenshots list
- HTTP: `GET /api/v1/screenshots/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Searchlogs
### `pentagi searchlogs get-flows-flow-id-searchlogs`
- Summary: Retrieve searchlogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/searchlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi searchlogs get-searchlogs`
- Summary: Retrieve searchlogs list
- HTTP: `GET /api/v1/searchlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Settings
### `pentagi settings get-settings`
- Summary: Retrieve settings
- HTTP: `GET /api/v1/settings/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags: none
- Output: response media `application/json`
## Subtasks
### `pentagi subtasks get-flows-flow-id-subtasks`
- Summary: Retrieve flow subtasks list
- HTTP: `GET /api/v1/flows/{flowID}/subtasks/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi subtasks get-flows-flow-id-tasks-task-id-subtasks`
- Summary: Retrieve flow task subtasks list
- HTTP: `GET /api/v1/flows/{flowID}/tasks/{taskID}/subtasks/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--task-id` (path, required): task id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi subtasks get-flows-flow-id-tasks-task-id-subtasks-subtask-id`
- Summary: Retrieve flow task subtask by id
- HTTP: `GET /api/v1/flows/{flowID}/tasks/{taskID}/subtasks/{subtaskID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--task-id` (path, required): task id
- `--subtask-id` (path, required): subtask id
- Output: response media `application/json`
## Tasks
### `pentagi tasks get-flows-flow-id-tasks`
- Summary: Retrieve flow tasks list
- HTTP: `GET /api/v1/flows/{flowID}/tasks/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi tasks get-flows-flow-id-tasks-task-id`
- Summary: Retrieve flow task by id
- HTTP: `GET /api/v1/flows/{flowID}/tasks/{taskID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--task-id` (path, required): task id
- Output: response media `application/json`
### `pentagi tasks get-flows-flow-id-tasks-task-id-graph`
- Summary: Retrieve flow task graph by id
- HTTP: `GET /api/v1/flows/{flowID}/tasks/{taskID}/graph`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--task-id` (path, required): task id
- Output: response media `application/json`
## Termlogs
### `pentagi termlogs get-flows-flow-id-termlogs`
- Summary: Retrieve termlogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/termlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi termlogs get-termlogs`
- Summary: Retrieve termlogs list
- HTTP: `GET /api/v1/termlogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Tokens
### `pentagi tokens delete-tokens-token-id`
- Summary: Delete API token
- HTTP: `DELETE /api/v1/tokens/{tokenID}`
- Auth: required
- Body: none
- Flags:
- `--token-id` (path, required): Token ID
- Output: response media `application/json`
### `pentagi tokens get-tokens`
- Summary: List API tokens
- HTTP: `GET /api/v1/tokens`
- Auth: required
- Body: none
- Flags: none
- Output: response media `application/json`
### `pentagi tokens get-tokens-token-id`
- Summary: Get API token details
- HTTP: `GET /api/v1/tokens/{tokenID}`
- Auth: required
- Body: none
- Flags:
- `--token-id` (path, required): Token ID
- Output: response media `application/json`
### `pentagi tokens post-tokens`
- Summary: Create new API token for automation
- HTTP: `POST /api/v1/tokens`
- Auth: required
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi tokens put-tokens-token-id`
- Summary: Update API token
- HTTP: `PUT /api/v1/tokens/{tokenID}`
- Auth: required
- Body: required
- Flags:
- `--token-id` (path, required): Token ID
- Output: response media `application/json`
## Toolcalls
### `pentagi toolcalls get-flows-flow-id-toolcalls`
- Summary: Retrieve toolcalls list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/toolcalls/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi toolcalls get-flows-flow-id-toolcalls-toolcall-id`
- Summary: Retrieve toolcall info by id and flow id
- HTTP: `GET /api/v1/flows/{flowID}/toolcalls/{toolcallID}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--toolcall-id` (path, required): toolcall id
- Output: response media `application/json`
### `pentagi toolcalls get-toolcalls`
- Summary: Retrieve toolcalls list
- HTTP: `GET /api/v1/toolcalls/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
## Usage
### `pentagi usage get-usage`
- Summary: Retrieve system-wide analytics
- HTTP: `GET /api/v1/usage`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags: none
- Output: response media `application/json`
### `pentagi usage get-usage-period`
- Summary: Retrieve analytics for specific time period
- HTTP: `GET /api/v1/usage/{period}`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--period` (path, required, one of: week|month|quarter): period
- Output: response media `application/json`
## Users
### `pentagi users delete-users-hash`
- Summary: Delete user by hash
- HTTP: `DELETE /api/v1/users/{hash}`
- Auth: required
- Body: none
- Flags:
- `--hash` (path, required): hash in hex format (md5)
- Output: response media `application/json`
### `pentagi users get-user`
- Summary: Retrieve current user information
- HTTP: `GET /api/v1/user/`
- Auth: required
- Body: none
- Flags: none
- Output: response media `application/json`
### `pentagi users get-users`
- Summary: Retrieve users list by filters
- HTTP: `GET /api/v1/users/`
- Auth: required
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi users get-users-hash`
- Summary: Retrieve user by hash
- HTTP: `GET /api/v1/users/{hash}`
- Auth: required
- Body: none
- Flags:
- `--hash` (path, required): hash in hex format (md5)
- Output: response media `application/json`
### `pentagi users post-users`
- Summary: Create new user
- HTTP: `POST /api/v1/users/`
- Auth: required
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi users put-user-password`
- Summary: Update password for current user (account)
- HTTP: `PUT /api/v1/user/password`
- Auth: required
- Body: required
- Flags: none
- Output: response media `application/json`
### `pentagi users put-users-hash`
- Summary: Update user
- HTTP: `PUT /api/v1/users/{hash}`
- Auth: required
- Body: required
- Flags:
- `--hash` (path, required): user hash in hex format (md5)
- Output: response media `application/json`
## Vecstorelogs
### `pentagi vecstorelogs get-flows-flow-id-vecstorelogs`
- Summary: Retrieve vecstorelogs list by flow id
- HTTP: `GET /api/v1/flows/{flowID}/vecstorelogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--flow-id` (path, required): flow id
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`
### `pentagi vecstorelogs get-vecstorelogs`
- Summary: Retrieve vecstorelogs list
- HTTP: `GET /api/v1/vecstorelogs/`
- Auth: required; accepts: `BearerAuth (apiKey header Authorization)`
- Body: none
- Flags:
- `--filters[]` (query): Filtering result on server e.g. {"value":[...],"field":"...","operator":"..."}
- `--group` (query): Field to group results by
- `--page` (query, required, default `1`): Number of page (since 1)
- `--page-size` (query, default `5`): Amount items per page (min -1, max 1000, -1 means unlimited)
- `--sort[]` (query): Sorting result on server e.g. {"prop":"...","order":"..."}
- `--type` (query, required, default `init`, one of: sort|filter|init|page|size): Type of request
- Output: response media `application/json`; pagination `offset`