> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Luma: Get V1 Calendars Events Lookup

> See if an event already exists on the calendar. This is useful when figuring out if you want to submit an event to the calendar.

See if an event already exists on the calendar.

<Info>
  Tool ID: `luma_get_v1_calendars_events_lookup`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'luma_get_v1_calendars_events_lookup',
  {
    "platform": "external",
    "url": "https://example.com",
    "event_id": "event_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute luma_get_v1_calendars_events_lookup --input '{
  "platform": "external",
  "url": "https://example.com",
  "event_id": "event_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "event": {
      "id": "id_123",
      "status": "approved",
      "submitted_by": {
        "id": "id_123",
        "name": "Example",
        "avatar_url": "https://example.com",
        "email": "jane.doe@example.com",
        "first_name": "Jane",
        "last_name": "Doe"
      }
    }
  }
}
```

Use `deepline tools get luma_get_v1_calendars_events_lookup --json` for the latest machine-readable contract.

## Input reference

See if an event already exists on the calendar. This is useful when figuring out if you want to submit an event to the calendar. Provide at least one of: url, event\_id, event\_api\_id.

| Name                   | Type                   | Required | Default | Details                                 |
| ---------------------- | ---------------------- | -------- | ------- | --------------------------------------- |
| `payload.platform`     | `"external" \| "luma"` | No       | —       | Allowed: `external`, `luma`.            |
| `payload.url`          | `string`               | No       | —       | —                                       |
| `payload.event_id`     | `string`               | No       | —       | Event ID, this usually starts with evt- |
| `payload.event_api_id` | `string`               | No       | —       | Use `event_id` instead.                 |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "See if an event already exists on the calendar. This is useful when figuring out if you want to submit an event to the calendar. Provide at least one of: url, event_id, event_api_id.",
    "properties": {
      "platform": {
        "type": "string",
        "enum": [
          "external",
          "luma"
        ]
      },
      "url": {
        "type": "string"
      },
      "event_id": {
        "type": "string",
        "description": "Event ID, this usually starts with evt-"
      },
      "event_api_id": {
        "type": "string",
        "description": "Use `event_id` instead."
      }
    },
    "required": [],
    "allOf": [
      {
        "anyOf": [
          {
            "properties": {
              "url": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "url"
            ],
            "additionalProperties": true
          },
          {
            "properties": {
              "event_id": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "event_id"
            ],
            "additionalProperties": true
          },
          {
            "properties": {
              "event_api_id": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "event_api_id"
            ],
            "additionalProperties": true
          }
        ]
      }
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                        | Type                                    | Required | Default | Details                                                                                                                       |
| ------------------------------------------- | --------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                               | `object`                                | Yes      | —       | Provider response payload.                                                                                                    |
| `result.data.event`                         | `object \| null`                        | Yes      | —       | —                                                                                                                             |
| `result.data.event.id`                      | `string`                                | Yes      | —       | —                                                                                                                             |
| `result.data.event.status`                  | `"approved" \| "pending" \| "rejected"` | Yes      | —       | Allowed: `approved`, `pending`, `rejected`.                                                                                   |
| `result.data.event.submitted_by`            | `object \| null`                        | Yes      | —       | The user who submitted or added this event to the calendar. Null when the submitter's account no longer exists or is blocked. |
| `result.data.event.submitted_by.id`         | `string`                                | Yes      | —       | —                                                                                                                             |
| `result.data.event.submitted_by.name`       | `string \| null`                        | Yes      | —       | —                                                                                                                             |
| `result.data.event.submitted_by.avatar_url` | `string`                                | Yes      | —       | —                                                                                                                             |
| `result.data.event.submitted_by.email`      | `string \| null`                        | Yes      | —       | The submitter's account email. Null when not returned.                                                                        |
| `result.data.event.submitted_by.first_name` | `string \| null`                        | Yes      | —       | —                                                                                                                             |
| `result.data.event.submitted_by.last_name`  | `string \| null`                        | Yes      | —       | —                                                                                                                             |
| `result.meta`                               | `object`                                | No       | —       | Additional response metadata (status, paging).                                                                                |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "event": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "approved",
                  "pending",
                  "rejected"
                ]
              },
              "submitted_by": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The user who submitted or added this event to the calendar. Null when the submitter's account no longer exists or is blocked.",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "avatar_url": {
                    "type": "string"
                  },
                  "email": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The submitter's account email. Null when not returned."
                  },
                  "first_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "last_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "avatar_url",
                  "email",
                  "first_name",
                  "last_name"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "status",
              "submitted_by"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "event"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Luma provider guide](/docs/providers/luma/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
