Skip to main content
POST
/
webhooks
/
{id}
/
rotate-secret
JavaScript
import Mobilerun from '@mobilerun/sdk';

const client = new Mobilerun({
  apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});

const response = await client.webhooks.rotateSecret('550e8400-e29b-41d4-a716-446655440000');

console.log(response.data);
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "url": "<string>",
    "eventTypes": [
      "<string>"
    ],
    "blockedAt": "<string>",
    "blockedReason": "<string>",
    "signingEnabled": true,
    "description": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "secret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Path Parameters

id
string<uuid>
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

New signing secret (shown once)

data
object
required