SuperAPI AI Directory

glean-api

Coding & development

View repository

Updated 10-15 21:52

About this skill

glean api

PREREQUISITE: Read ../glean-shared/SKILL.md for auth, global flags, and security rules.

Make a raw authenticated HTTP request to any Glean REST API endpoint.

glean api [flags]

Flags

Flag Type Default Description
--dry-run boolean false Same as --preview
--input string Path to a JSON file to use as request body
--method GET | POST | PUT | DELETE | PATCH GET HTTP method
--no-color boolean false Disable colorized output
--preview boolean false Print request details without sending
--raw boolean false Print raw response without syntax highlighting
--raw-field string JSON request body as a string

Examples

glean api search --method POST --raw-field '{"query":"test"}' --no-color | jq .results

Discovering Commands

# Show machine-readable schema for this command
glean schema api

# List all available commands
glean schema | jq '.commands'