Vigilbase One APITools
Create an authenticated tool run stub
Create an authenticated tool run stub. Gated by requireToolRunAccessContext (read:services), matching execute.
Authorizations
Send one of these:
AuthorizationstringAccess tokenheaderrequired
Bearer access token from Vigilbase Identity (auth.vigilbase.com), sent as Authorization: Bearer <token>. The CLI gets one with vigilbase login.
AuthorizationstringAPI keyheaderrequired
Organisation API key (vb_one_…) from Settings → API keys in Vigilbase One, sent as Authorization: Bearer vb_one_…. Needs a key with write access: read-only keys get 403 with the code read_only_key. See organisation API keys.
Path Parameters
toolNamestringrequired
Body
application/jsonThe catalog has no JSON Schema for this body. One validates it with the schema below.
Validation schema
CreateRunSchema = z.object({
target: z.string().min(1),
targetType: ToolRunTargetTypeSchema.optional(),
metadata: z.record(z.string(), z.unknown()).optional(),
})Response
Success
Was this page helpful?