Skip to main content
POST
/
scanners
/
{scanner_uid}
/
webhook-security
/
rotate
Rotate Scanner Webhook Secret
curl --request POST \
  --url https://oathnet.org/api/scanners/{scanner_uid}/webhook-security/rotate \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "scanner_uid": "<string>",
    "webhook_security_mode": "<string>",
    "secret": "<string>",
    "secret_preview": "<string>",
    "key_id": "<string>",
    "last_rotated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.oathnet.org/llms.txt

Use this file to discover all available pages before exploring further.

Rotate the shared secret for a custom webhook scanner and return the new secret once.

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Path Parameters

scanner_uid
string
required

Response

200 - application/json

Envelope response with the rotated secret

success
boolean
message
string
data
object