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 hooks = await client.hooks.list();
console.log(hooks.items);{
"items": [
{
"service": "zapier",
"url": "<string>",
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"events": [
"created"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "disabled",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"hasNext": true,
"hasPrev": true,
"page": 123,
"pageSize": 123,
"pages": 123,
"total": 123
}
}List hooks belonging to the requesting user (paginated).
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 hooks = await client.hooks.list();
console.log(hooks.items);{
"items": [
{
"service": "zapier",
"url": "<string>",
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"events": [
"created"
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "disabled",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"hasNext": true,
"hasPrev": true,
"page": 123,
"pageSize": 123,
"pages": 123,
"total": 123
}
}Bearer token via Authorization header
x >= 11 <= x <= 100asc, desc Successful Response
The paginated items
Show child attributes
zapier, n8n, make, internal, other created, running, paused, completed, failed, cancelled active, disabled, deleted Pagination metadata
Show child attributes
Whether there is a next page
Whether there is a previous page
Current page number (1-based)
Number of items per page
Total number of pages
Total number of items
Was this page helpful?