`GET /api/commands` — the seeded command registry filtered to the commands the caller's identity (workspace + role) can run. A new SurfaceDriver reads this list to build its command palette; it will never contain a command the caller can't invoke.
const url = 'https://example.com/api/commands';const options = {method: 'GET', headers: {cookie: 'supacloud_session=<supacloud_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/commands \ --cookie supacloud_session=<supacloud_session>GET /api/commands — the seeded command registry filtered to the commands the
caller’s identity (workspace + role) can run. A new SurfaceDriver reads this list to
build its command palette; it will never contain a command the caller can’t invoke.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
A command descriptor (ADR §2.2 CommandDescriptor) on the wire. The body item of
GET /api/commands.
object
One typed command parameter (ADR §2.2 ParamSpec). description_i18n is the i18n
KEY a client resolves to its own locale.
object
The value SHAPE of a param (ADR §2.2 kind), flattened to a tagged wire enum.
object
A reference to a domain object of the given kind.
object
object
object
object
Where a param’s option set comes from (ADR §2.2 options).
A static, closed value set known at compile time.
object
Resolved at runtime by the named option provider (GET /options/{id}).
object
No enumerable option set (free text / int range / attachment).
object
task | project | workspace | global.
The surfaces the command is available on (web_cli | telegram | discord | api).
Example
[ { "params": [ { "kind": { "type": "enum" }, "options": { "source": "static" } } ] }]Authentication required
Permission denied
Structured server error