# Share Meeting — Fireflies

> Share a meeting with up to 50 people by email, optionally expiring their access after a number of days. Only the meeting owner or a team admin (on the owner's team) can share a meeting. Rate-limited to 10 requests per hour per user. Use…

- Key: `fireflies-share-meeting`
- Type: Action (Write)
- Version: 0.0.2
- App: Fireflies (`fireflies`) — https://pipedream.com/apps/fireflies.md
- This page (HTML): https://pipedream.com/apps/fireflies/actions/share-meeting
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/fireflies/actions/share-meeting/share-meeting.mjs

## Description

Share a meeting with up to 50 people by email, optionally expiring their access after a number of days. Only the meeting owner or a team admin (on the owner's team) can share a meeting. Rate-limited to 10 requests per hour per user. Use **Revoke Meeting Access** to remove access later. [See the documentation](https://docs.fireflies.ai/graphql-api/mutation/share-meeting)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `meetingId` | `string` | Yes | The meeting to share. Use Find Meeting by ID or Find Recent Meeting to look up a meeting ID. Options are loaded from the connected account. |
| `emails` | `string[]` | Yes | Email addresses to share the meeting with (max 50). Example: ["jane@example.com", "john@example.com"]. |
| `expiryDays` | `integer` | No | Number of days after which shared access expires. Must be one of 7, 14, or 30. Omit for access that doesn't expire. |

## 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": "fireflies",
      },
    },
  },
)

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: "fireflies-share-meeting",
  arguments: {
    meetingId: "Meeting ID",
    emails: ["Emails"],
  },
})
```

**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: "fireflies-share-meeting",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fireflies: { authProvisionId: "apn_xxxxxxx" },
    meetingId: "Meeting ID",
    emails: ["Emails"],
  },
})

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": "fireflies-share-meeting",
    "configured_props": {
      "fireflies": { "authProvisionId": "apn_xxxxxxx" },
      "meetingId": "Meeting ID",
      "emails": ["Emails"]
    }
  }'
```

---

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