sdkProvider-backed
Get radar credits
pipeline.getRadarCredits
Read the selected workspace Radar credit balance. Pipeline BYOK operations are separate.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
workspace_id
string
Workspace UUID
Example
TypeScripttypescript
await pipeline.getRadarCredits({})
Response
Success response schemajson schema
{"type": "object","properties": {"balance": {"type": "number"},"unit": {"type": "string"}},"required": ["balance","unit"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.