Skip to main content
POST
/
webhooks
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 webhook = await client.webhooks.create({ url: 'https://example.com/webhooks/droidrun' });

console.log(webhook.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

Body

application/json
url
string<uri>
required
Maximum string length: 2048
Example:

"https://example.com/webhooks/droidrun"

eventTypes
string[]
Maximum array length: 100
Required string length: 1 - 256
Example:
["task.run.completed", "task.run.failed"]
description
string
Maximum string length: 500

Response

Webhook created (secret shown once)

data
object
required