Navigation
VigilbaseDocs

    Type at least two letters.

    Open Vigilbase One

    Create an authenticated tool run stub

    Create an authenticated tool run stub. Gated by requireToolRunAccessContext (read:services), matching execute.

    POST/api/tools/{toolName}/runs

    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/json

    The 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?