Skip to content
Kashef

API docs — Kashef

Quick start

Four steps from key to report. Every example reads the key from the KASHEF_API_KEY environment variable.

  1. 1. Create a key

    On the "Developers" page of the dashboard (owners and admins). The full key is shown only once.

  2. 2. Start a scan

    Send the domain together with your declaration (authorizationConfirmed: true) that the scan has a legitimate purpose and that you are authorized for any active checks. Send an Idempotency-Key so a retry never counts as a second scan.

    terminal
    curl -X POST https://kashef.scouthub.dev/api/v1/scans -H "Authorization: Bearer $KASHEF_API_KEY" \
      -H "Content-Type: application/json" -H "Idempotency-Key: $(uuidgen)" \
      -d '{"target":"example.com","authorizationConfirmed":true}'
  3. 3. Wait for the result

    The request stays open for up to 25 seconds, then returns the status. Repeat until it is completed.

    terminal
    curl "https://kashef.scouthub.dev/api/v1/scans/$SCAN_ID?wait=25" -H "Authorization: Bearer $KASHEF_API_KEY"
  4. 4. Read the report

    A Markdown or JSON report, with finding titles, their impact and how to fix them in your language.

    terminal
    curl "https://kashef.scouthub.dev/api/v1/scans/$SCAN_ID/export?format=md&locale=en" -H "Authorization: Bearer $KASHEF_API_KEY"

Limits and errors

Kashef is free during the trial: each key may make up to 30 requests per minute, and a scan draws on the same monthly quota as the dashboard. Every error is JSON with a stable code field you can branch on.

Plug Kashef into your tools