aYOUne

ay curl

ay curl

Authentifizierter HTTP-Call gegen einen aYOUne-API-Endpoint — wie curl, aber mit dem aktuellen JWT als Bearer-Token. Fürs Debuggen, ad-hoc Custom-Endpoints und Test-Invocations.

Syntax

ay curl <module> <path> [flags]

<module> ist der Module-Slug (z.B. crm, config, ai). Daraus wird https://<module>-api.ayoune.app gebaut. Spezial-Module (auth, aggregation, logs) gehen auf ihre dedizierten Hosts.

Flags

Flag Default Zweck
-X, --method <verb> get get / post / put / delete / patch
--body <json> Inline-JSON-Body
--body-file <path> Body aus Datei
--body-stdin Body aus stdin
--query <kv...> Query-Param key=value (wiederholbar)
--raw false Response unverändert ausgeben (für NDJSON-Streams)

Body-Reihenfolge: --body-stdin > --body-file > --body.

Beispiele

# Simpler GET
ay curl crm consumers

# Mit Query-Params
ay curl pm tasks --query limit=5 --query status=open

# POST mit Body
ay curl config flags/64a1b2c3 -X put --body '{"archived":true}'

# Body aus stdin (z.B. von jq)
echo '{"prompt":"Hallo Welt"}' | ay curl ai ai/ask -X post --body-stdin

# NDJSON-Stream durchreichen
ay curl monitoring logs/stream --raw

# Custom-Action
ay curl crm "consumers/64a1b2c3/actions/send-welcome" -X post

Hinweis

ay curl ist absichtlich dünn — kein Auto-Pagination, keine Format-Conversion. Für strukturierte Outputs → die dedizierten Commands (list, search, exec).

Siehe auch