Skip to content

Products

Compliance Officer Service Expert-led compliance, end to end Compliance Portal Share security documents securely Document Management Draft, approve, and sign your policies Employee Portal Your whole team’s compliance, in one portal Access Review Monitor user access across all your systems AI Agents Run compliance from the tools you use Cookie Banner Consent that follows every visitor's law Device Agent Continuous security posture for every device Open-source platform Deploy Probo on your own infrastructure

Resources

Probo stories How teams get compliant with Probo Blog Ideas and guidance from the Probo team Guides & tools Practical compliance guides and free tools Love from Customers What customers say about working with Probo Changelog Latest product updates Download Get the Device Agent

Company

About The people and vision powering Probo Careers Join the team building Probo Brand assets Official logos and visual resources Security Review our security and compliance posture
Overview Understand Probo and its core concepts Product Explore Probo's GRC capabilities Developers Explore GraphQL, CLI, MCP, n8n, and webhooks Deployment Probo Cloud, self-hosting, and configuration

Explore

GitHub Explore our open-source compliance tools

Try searching for

Tab to move through results · Enter to open · Esc to close

prb api command reference

Reference for 1 command under prb api, including usage, flag types and defaults, required flags, source examples, and implementation links

View as Markdown

Make an authenticated GraphQL request. This page documents 1 command under prb api.

Flags and examples below come from the command definitions. A Required flag is explicitly marked required by Cobra; an unmarked flag can still be needed by runtime validation or a non-interactive workflow. Empty strings and empty lists are registered defaults, not sample values.

Every command also inherits the global flags. Run prb <command> --help to check your installed version. Replace placeholder IDs and names in source examples before running them. Return to the complete CLI command reference to browse another command.

CommandDescriptionUsageSource
prb apiMake an authenticated GraphQL request.prb api <query>View implementation

Make an authenticated GraphQL request.

prb api <query>

Accepts at most 1 positional argument.

Send a GraphQL query or mutation to the Probo API and print the response.
FlagTypeDefaultRequiredDescription
--field, -fstring array[]—GraphQL variable in key=value format
--schemastring"console"—GraphQL schema to query (console or connect)
Terminal window
# Run a query against the console schema (default)
prb api 'query { viewer { id email } }'
# Run a mutation with variables
prb api 'mutation($input: CreateRiskInput!) { createRisk(input: $input) { riskEdge { node { id } } } }' \
-f input='{"organizationId":"...","name":"Test","category":"Operational"}'
# Query the connect schema
prb api --schema connect 'query { viewer { id email } }'
# Read query from stdin
echo '{ viewer { id } }' | prb api -

View command implementation.