Skip to main content
GET
/
hooks
/
sample
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.hooks.getSampleData();

console.log(response);
[
  {
    "createdAt": "<string>",
    "events": [
      "<string>"
    ],
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "state": "<string>",
    "url": "<string>",
    "updatedAt": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Response

200 - application/json

Successful Response

createdAt
string
required

ISO timestamp of when the subscription was created

events
string[]
required

List of subscribed events

id
string<uuid>
required

The subscription ID

state
string
required

The hook state

url
string
required

The webhook URL

updatedAt
string | null

ISO timestamp of the last update