We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
Make an authenticated request to an API path
asknews request <method> <path>Make an authenticated request to an API path
Arguments:
| Argument | Description |
|---|---|
<method> | HTTP method |
<path> | path relative to the configured /v1 base URL |
Options:
| Option | Description |
|---|---|
--body <json-or-file> | JSON body or @file.json |
Examples:
asknews request GET /profiles/me --output jsonAll commands support --output human|table|json|jsonl|yaml, --json, API/auth URL
overrides, request timeout, and color control. Result data is written to stdout; diagnostics
are written to stderr.