# Pitch

> Browse templates, create presentations, and inspect sharing links and analytics in Pitch.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/pitch

## Actions

### Create folder

Create a folder in a teamspace or in the caller's private space, at the top level or inside another folder.

**Inputs**

- Name (`record_name`, text, required): Name of the new folder.
- Teamspace (`teamspace_id`, text): Teamspace id.
- Parent ID (`parent_id`, text): Parent id.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "folder_id": "example",
      "name": "example",
      "owner": {
        "id": "example",
        "name": "example"
      },
      "parent_id": "example",
      "updated_at": "example"
    }
  }
}
```

### Create presentation link

Create a link for an existing presentation.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.
- Name (`record_name`, text): Display label for the link. Defaults to the presentation name.
- Slug (`slug`, text): Human-readable portion of the link URL. A random suffix is always appended, so collisions are impossible. Defaults to the presentation name.
- Options (`options`, object): Link configuration. All booleans default to false, e.g. `{"collect_engagement_analytics": true, "require_passcode": true, "passcode": "q3-acme"}`.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "managed_link": {
      "created_at": "example",
      "disabled": false,
      "id": "example",
      "link_id": "example",
      "name": "example",
      "options": {
        "allow_duplication": false,
        "allow_pdf_download": false,
        "collect_engagement_analytics": false,
        "disable_after": "example",
        "require_passcode": false,
        "require_visitor_consent_for_analytics": false,
        "require_visitor_email": false
      },
      "presentation_id": "example",
      "slug": "example",
      "url": "example"
    }
  }
}
```

### Create presentations using variables

Create one or more presentations from a template, deterministically substituting variable values. The call fails with capability_not_available when the workspace plan does not include creating presentations with variables.

**Inputs**

- Template (`template_id`, text, required): UUID of a template, from list-templates.
- Data (`data`, list, required): One object per presentation to create. Each item has a `name` (the presentation's file name) and a `variables` map of template variable names to their replacement values, e.g. `[{"name": "Q3 Review. ACME", "variables": {"customer_name": "ACME", "quarter": "Q3"}}]`.
- Folder (`folder_id`, text): Folder id.
- Teamspace (`teamspace_id`, text): Teamspace id.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "job_id": "example",
      "status": "example"
    }
  }
}
```

### Get current workspace

Get the workspace the caller's API key is scoped to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "gallery_templates_hidden": false,
      "logo_url": "example",
      "member_count": 1,
      "name": "example",
      "usage": {
        "additional_ai": {
          "quota": {},
          "usage": 1
        },
        "advanced_links": {
          "quota": {},
          "usage": 1
        },
        "included_ai": {
          "quota": {},
          "usage": 1
        },
        "room_links": {
          "quota": {},
          "usage": 1
        },
        "teamspaces": {
          "quota": {},
          "usage": 1
        },
        "workspace_members_limit": {
          "quota": {},
          "usage": 1
        }
      },
      "workspace_id": "example"
    }
  }
}
```

### Get job

Get the status and result of an asynchronous job.

**Inputs**

- Job ID (`job_id`, text, required): Job UUID returned by create-presentation-with-variables, create-presentation-with-agent, edit-presentation-with-agent, update-presentation-variables, or move-content.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "job_id": "example",
      "status": "example"
    }
  }
}
```

### Get presentation

Get a presentation by ID: its editor and player URLs plus metadata; pass include_content=true for the content as Markdown, or include_images=true for the images placed on its slides.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.
- Include content (`include_content`, true/false): Include the presentation's textual content as Markdown (default false).
- Include metadata (`include_metadata`, true/false): Include location/ownership/edit-history metadata (default true).
- Include variables (`include_variables`, true/false): Include the presentation's in-use variables (default false).
- Include images (`include_images`, true/false): Include the images placed on the slides, each with its URL (default false).
- Include hidden slides (`include_hidden_slides`, true/false): Include hidden slides in the Markdown content and the image list (default false). Only meaningful together with include_content or include_images.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "editor_url": "example",
      "images": [],
      "markdown": "example",
      "metadata": {
        "author": {
          "id": "example",
          "name": {}
        },
        "breadcrumb": [],
        "created_at": "example",
        "last_edited_at": "example",
        "last_edited_by": {
          "id": "example",
          "name": {}
        },
        "owner": {
          "id": "example",
          "name": {}
        }
      },
      "player_url": "example",
      "presentation_id": "example",
      "title": "example",
      "variables": []
    }
  }
}
```

### Get presentation link analytics

Get a link's engagement analytics, aggregated across all of its visits.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.
- Link ID (`link_id`, text, required): UUID of the managed link.
- Interval (`interval`, text): Time window the visit counts cover (default all-time). Scopes visits_count and visits_over_time only. the medians and the slide breakdown always cover every visit the link ever got. One of: `all-time`, `24-hours`, `7-days`, `14-days`, `30-days`, `90-days`.
- Include slide breakdown (`include_slide_breakdown`, true/false): Set true to also get per-slide view counts and median time on slide (default false, one entry per visible slide).

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "analytics": {
      "engagement_analytics_enabled": false,
      "interval": "all-time",
      "link_id": "example",
      "median_slides_viewed_percentage": 1,
      "median_visit_duration_seconds": 1,
      "presentation_id": "example",
      "slides": [],
      "visits_count": 1,
      "visits_over_time": {
        "bucket": "hour",
        "points": []
      }
    }
  }
}
```

### Get presentation link visit

Get one visit of a link, including how long the visitor spent on each slide they reached.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation the link belongs to.
- Link ID (`link_id`, text, required): UUID of the link the visit belongs to.
- Visit ID (`visit_id`, text, required): UUID of the visit, as returned by the visit list.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "visit": {
      "at": "example",
      "browser": "example",
      "country": "example",
      "device_type": "example",
      "duration_seconds": 1,
      "embed": false,
      "slides": [],
      "slides_reached": 1,
      "slides_total": 1,
      "tracking_level": "basic",
      "visit_id": "example",
      "visitor_email": "example"
    }
  }
}
```

### Get teamspace

Get a teamspace by ID.

**Inputs**

- Teamspace (`teamspace_id`, text, required): Teamspace UUID to fetch.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "avatar": {
        "color": "example",
        "icon": "example",
        "type": "icon"
      },
      "created_at": "example",
      "description": "example",
      "join_policy": "open",
      "members_can_invite": false,
      "name": "example",
      "teamspace_id": "example",
      "updated_at": "example",
      "workspace_id": "example"
    }
  }
}
```

### Get template

Get a published template by ID, whether from the workspace or Pitch's gallery.

**Inputs**

- Template (`template_id`, text, required): Template UUID, as returned by list-templates.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "name": "example",
      "source": "example",
      "template_id": "example",
      "updated_at": "example",
      "variables": []
    }
  }
}
```

### List folders

List folders in a teamspace, in the caller's private space, or shared with the caller by other members.

**Inputs**

- Teamspace (`teamspace_id`, text): Teamspace UUID to list folders for. When omitted, folders in the caller's private space are listed.
- Shared with me (`shared_with_me`, true/false): true: the folders other members shared with the caller from their private spaces. Cannot be combined with teamspace_id.
- Limit (`limit`, number): Maximum number of folders to return (default 20, max 100). From 1 to 100.
- Cursor (`cursor`, text): Opaque pagination cursor returned by a previous call.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}
```

### List presentation link visits

List a link's individual visits, newest first.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.
- Link ID (`link_id`, text, required): UUID of the managed link.
- Limit (`limit`, number): Maximum number of visits to return (default 20, max 100). From 1 to 100.
- Cursor (`cursor`, text): Opaque pagination cursor returned by a previous call.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}
```

### List presentation links

List a presentation's links.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "managed_links": []
  }
}
```

### List teamspaces

List teamspaces in the workspace. Hidden teamspaces are included only for admins/owners and their members.

**Inputs**

- Limit (`limit`, number): Maximum number of teamspaces to return (default 20, max 100). From 1 to 100.
- Cursor (`cursor`, text): Opaque pagination cursor returned by a previous call.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}
```

### List templates

List published workspace templates, or Pitch's built-in gallery templates.

**Inputs**

- Source (`source`, text): Which templates to list: "workspace" for the workspace's published templates, "gallery" for Pitch's built-in gallery templates. "gallery" is rejected when the workspace admin has hidden gallery templates. One of: `workspace`, `gallery`.
- Include gallery templates (`include_gallery_templates`, true/false): Deprecated: use source. Also include Pitch's built-in gallery templates (default false). When true, workspace templates are returned first, then gallery templates, and every template carries a `source` of "workspace" or "gallery". Rejected when the workspace admin has hidden gallery templates. Ignored when source is set.
- Limit (`limit`, number): Maximum number of templates to return (default 20, max 100). From 1 to 100.
- Cursor (`cursor`, text): Opaque pagination cursor returned by a previous call.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}
```

### Move content

Move presentations and folders into a teamspace, folder or private space.

**Inputs**

- Presentation IDs (`presentation_ids`, list): UUIDs of the presentations to move.
- Folder IDs (`folder_ids`, list): UUIDs of the folders to move. Everything inside a folder moves with it.
- Target teamspace ID (`target_teamspace_id`, text): Target teamspace id.
- Target folder ID (`target_folder_id`, text): Target folder id.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "job_id": "example",
      "moved_folders": [],
      "moved_items": 1,
      "status": "complete",
      "total_items": 1,
      "unshared_count": 1
    }
  }
}
```

### Rename content

Rename a presentation or folder.

**Inputs**

- Presentation ID (`presentation_id`, text): Presentation id.
- Folder (`folder_id`, text): Folder id.
- Name (`record_name`, text, required): The new name. Renaming a presentation changes its file name, not the title on its slides.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "folder_id": "example",
      "name": "example",
      "presentation_id": "example",
      "previous_name": "example"
    }
  }
}
```

### Search presentations

Search presentations by title, across everything the caller can access in the workspace.

**Inputs**

- Query (`query`, text, required): Text to match against presentation titles.
- Limit (`limit`, number): Maximum number of presentations to return (default 20, max 100). From 1 to 100.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### Update presentation link

Update a link's options or disabled state.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation.
- Link ID (`link_id`, text, required): UUID of the managed link.
- Name (`record_name`, text): New display label for the link.
- Slug (`slug`, text): New human-readable portion of the link URL. The random suffix is preserved.
- Disabled (`disabled`, true/false): Set true to disable the link (it stops resolving), or false to re-enable it.
- Options (`options`, object): Link configuration fields to change. Only the fields you include are modified; the rest are left as they are, e.g. `{"allow_pdf_download": true, "disable_after": "2027-01-31T00:00:00Z"}`.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "managed_link": {
      "created_at": "example",
      "disabled": false,
      "id": "example",
      "link_id": "example",
      "name": "example",
      "options": {
        "allow_duplication": false,
        "allow_pdf_download": false,
        "collect_engagement_analytics": false,
        "disable_after": "example",
        "require_passcode": false,
        "require_visitor_consent_for_analytics": false,
        "require_visitor_email": false
      },
      "presentation_id": "example",
      "slug": "example",
      "url": "example"
    }
  }
}
```

### Update presentation variables

Update an existing presentation's variables.

**Inputs**

- Presentation ID (`presentation_id`, text, required): UUID of the presentation to update. Use search to find it.
- Variables (`variables`, object, required): Variable names mapped to their new string values, e.g. `{"customer_name": "ACME", "quarter": "Q3"}`. Only the variables present here are updated; any variable omitted keeps its current value. Every name must be a text variable the presentation defines, otherwise the call is rejected. Must be a non-empty map.

**Outputs**

- `data` (object): The response from Pitch.

**Example output**

```json
{
  "data": {
    "data": {
      "job_id": "example",
      "status": "example"
    }
  }
}
```
