Skip to main content
GET
/
hooks
/
sample
JavaScript
import DroidrunCloud from 'droidrun-cloud';

const client = new DroidrunCloud({
  apiKey: 'My API Key',
});

const response = await client.hooks.getSampleData();

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