# New Deployment Log Created — Brainbase Labs

> Emit new event when a new deployment log is created. See the documentation

- Key: `brainbase_labs-new-deployment-log-created`
- Type: Trigger (Polling)
- Version: 0.0.1
- App: Brainbase Labs (`brainbase_labs`) — https://pipedream.com/apps/brainbase-labs.md
- This page (HTML): https://pipedream.com/apps/brainbase-labs/triggers/new-deployment-log-created
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/brainbase_labs/sources/new-deployment-log-created/new-deployment-log-created.mjs

## Description

Emit new event when a new deployment log is created. [See the documentation](https://docs.usebrainbase.com/api-reference/voice-deployment-logs/list-voice-deployment-logs-for-a-worker-with-optional-filtering-and-pagination)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `timer` | `$.interface.timer` | Yes | Timer |
| `workerId` | `string` | Yes | The unique identifier for the worker Options are loaded from the connected account. |
| `deploymentId` | `string` | No | Filter logs by deployment ID Options are loaded from the connected account. |
| `flowId` | `string` | No | Filter logs by flow ID Options are loaded from the connected account. |

## Returns

Events emitted by Brainbase Labs.

## Run it

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const deployed = await pd.triggers.deploy({
  id: "brainbase_labs-new-deployment-log-created",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    brainbase_labs: { authProvisionId: "apn_xxxxxxx" },
    timer: { "intervalSeconds": 900 },
    workerId: "Worker ID",
  },
  webhookUrl: "https://example.com/webhooks/brainbase-labs",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "brainbase_labs-new-deployment-log-created",
    "webhook_url": "https://example.com/webhooks/brainbase-labs",
    "configured_props": {
      "brainbase_labs": { "authProvisionId": "apn_xxxxxxx" },
      "timer": { "intervalSeconds": 900 },
      "workerId": "Worker ID"
    }
  }'
```

**MCP**

MCP servers expose Brainbase Labs actions as on-demand tools.

New Deployment Log Created is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

- App: https://pipedream.com/apps/brainbase-labs.md · All apps: https://pipedream.com/apps
