Skip to content

IT administration

API tokens

Give a tool read access to incidents, devices and posture, or let it approve proposed containment actions.

You can do this if you created the workspace or were added as an admin.

Steps

Picture colours
  1. Open Settings, API tokens. Enter a name, which the list and the audit trail show.
    1. Make token
  2. Choose what the token may do: Read incidents, Read devices, Read posture and hygiene findings, Read the audit trail, or Ask for proposed containment actions to be approved. The scopes are read:incidents, read:devices, read:posture, read:audit and act:respond.
  3. Choose how long it lasts: 30, 90, 180 or 365 days. Choose Make token and confirm with your passkey.
  4. Copy the token at once: it is shown one time. Send it as the Authorization header on requests to /api/v1 under this workspace.
    curl -H "Authorization: Bearer jst_<prefix>_<secret>" https://console.blackshard.com/api/v1/incidents
  5. A token has 120 reads and 20 writes a minute. Every write takes an Idempotency-Key header, so a repeated request changes nothing twice.
  6. To stop a token, choose Revoke. Every request that carries it is refused from then on.

A token that may approve proposed containment actions approves them with no passkey, so give that scope only to a tool you trust to decide.

Still stuck

Email support@blackshard.com.au with your workspace name and the guide you were following. For an attack happening now, call the 24/7 incident line on 1800 370 270.