# Get Booking — Ticket Source

> Retrieves details of a specific booking. See the documentation

- Key: `ticket_source-get-booking`
- Type: Action (Read-only)
- Version: 0.0.1
- App: Ticket Source (`ticket_source`) — https://pipedream.com/apps/ticket-source.md
- This page (HTML): https://pipedream.com/apps/ticket-source/actions/get-booking
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/ticket_source/actions/get-booking/get-booking.mjs

## Description

Retrieves details of a specific booking. [See the documentation](https://reference.ticketsource.io/#/operations/get-booking)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `eventId` | `string` | Yes | The unique identifier of the event Options are loaded from the connected account. |
| `eventDate` | `string` | Yes | The unique identifier of the event date Options are loaded from the connected account. |
| `bookingId` | `string` | Yes | The unique identifier of the booking Options are loaded from the connected account. |

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

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: "ticket_source-get-booking",
  arguments: {
    eventId: "Event ID",
    eventDate: "Event Date ID",
  },
})
```

**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: "ticket_source-get-booking",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ticket_source: { authProvisionId: "apn_xxxxxxx" },
    eventId: "Event ID",
    eventDate: "Event Date ID",
  },
})

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": "ticket_source-get-booking",
    "configured_props": {
      "ticket_source": { "authProvisionId": "apn_xxxxxxx" },
      "eventId": "Event ID",
      "eventDate": "Event Date ID"
    }
  }'
```

---

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