Create / Rotate Webhook Secret

Creates - or rotates - the secret used to sign your top-up completion callbacks (see notification_url on Top-up eSIM).

Request

  • Method: POST
  • URL: https://api.bnesim.com/v2.0/enterprise/affiliate/webhook-secret
  • Authentication: Bearer token required
  • No body

Response Fields

  • webhook_secret: the new secret (whsec_...)

Example cURL

curl --request POST \
     --url https://api.bnesim.com/v2.0/enterprise/affiliate/webhook-secret \
     --header "accept: application/json" \
     --header "authorization: Bearer {{bearerToken}}"

Important Notes

  • The secret is shown only once. Store it securely; it cannot be read again.
  • Calling this again replaces the secret immediately - callbacks are signed with the new one from then on.
  • Required before you pass notification_url (otherwise error_code: WEBHOOK_SECRET_MISSING).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Response

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json