# Create Ingress From URL — LiveKit

> Create a new ingress from url in LiveKit. See the documentation.

- Key: `livekit-create-ingress-from-url`
- Type: Action (Write)
- Version: 0.0.3
- App: LiveKit (`livekit`) — https://pipedream.com/apps/livekit.md
- This page (HTML): https://pipedream.com/apps/livekit/actions/create-ingress-from-url
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/livekit/actions/create-ingress-from-url/create-ingress-from-url.mjs

## Description

Create a new ingress from url in LiveKit. [See the documentation](https://docs.livekit.io/home/ingress/overview/#url-input-example).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `roomName` | `string` | Yes | The name of the room to send media to Options are loaded from the connected account. |
| `url` | `string` | Yes | URL of the media to pull for ingresses of type URL |
| `participantIdentity` | `string` | Yes | Unique identity of the participant |
| `participantName` | `string` | No | Participant display name |
| `participantMetadata` | `string` | No | Metadata to attach to the participant |
| `name` | `string` | No | The name of the ingress |
| `bypassTranscoding` | `boolean` | No | Whether to skip transcoding and forward the input media directly. Only supported by WHIP |
| `enableTranscoding` | `boolean` | No | Whether to enable transcoding or forward the input media directly. Transcoding is required for all input types except WHIP. For WHIP, the default is to not transcode. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "livekit",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "livekit-create-ingress-from-url",
  arguments: {
    roomName: "Room Name",
    url: "URL",
  },
})
```

**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 result = await pd.actions.run({
  id: "livekit-create-ingress-from-url",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    livekit: { authProvisionId: "apn_xxxxxxx" },
    roomName: "Room Name",
    url: "URL",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "livekit-create-ingress-from-url",
    "configured_props": {
      "livekit": { "authProvisionId": "apn_xxxxxxx" },
      "roomName": "Room Name",
      "url": "URL"
    }
  }'
```

---

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