Pitch

App · 20 actions

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

Actions

ActionWhat it does
Create folderCreate a folder in a teamspace or in the caller's private space, at the top level or inside another folder.
Create presentation linkCreate a link for an existing presentation.
Create presentations using variablesCreate one or more presentations from a template, deterministically substituting variable values.
Get current workspaceGet the workspace the caller's API key is scoped to.
Get jobGet the status and result of an asynchronous job.
Get presentationGet 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.
Get presentation link analyticsGet a link's engagement analytics, aggregated across all of its visits.
Get presentation link visitGet one visit of a link, including how long the visitor spent on each slide they reached.
Get teamspaceGet a teamspace by ID.
Get templateGet a published template by ID, whether from the workspace or Pitch's gallery.
List foldersList folders in a teamspace, in the caller's private space, or shared with the caller by other members.
List presentation link visitsList a link's individual visits, newest first.
List presentation linksList a presentation's links.
List teamspacesList teamspaces in the workspace.
List templatesList published workspace templates, or Pitch's built-in gallery templates.
Move contentMove presentations and folders into a teamspace, folder or private space.
Rename contentRename a presentation or folder.
Search presentationsSearch presentations by title, across everything the caller can access in the workspace.
Update presentation linkUpdate a link's options or disabled state.
Update presentation variablesUpdate an existing presentation's variables.

Create folder

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

Inputs

Namerecord_nametextRequired
Name of the new folder.
Teamspaceteamspace_idtext
Teamspace id.
Parent IDparent_idtext
Parent id.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": {
      "created_at": "example",
      "folder_id": "example",
      "name": "example",
      "owner": {
        "id": "example",
        "name": "example"
      },
      "parent_id": "example",
      "updated_at": "example"
    }
  }
}

Create a link for an existing presentation.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation.
Namerecord_nametext
Display label for the link. Defaults to the presentation name.
Slugslugtext
Human-readable portion of the link URL. A random suffix is always appended, so collisions are impossible. Defaults to the presentation name.
Optionsoptionsobject
Link configuration. All booleans default to false, e.g. `{"collect_engagement_analytics": true, "require_passcode": true, "passcode": "q3-acme"}`.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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

Templatetemplate_idtextRequired
UUID of a template, from list-templates.
DatadatalistRequired
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"}}]`.
Folderfolder_idtext
Folder id.
Teamspaceteamspace_idtext
Teamspace id.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": {
      "job_id": "example",
      "status": "example"
    }
  }
}

Get current workspace

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

Inputs

None.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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 IDjob_idtextRequired
Job UUID returned by create-presentation-with-variables, create-presentation-with-agent, edit-presentation-with-agent, update-presentation-variables, or move-content.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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 IDpresentation_idtextRequired
UUID of the presentation.
Include contentinclude_contenttrue/false
Include the presentation's textual content as Markdown (default false).
Include metadatainclude_metadatatrue/false
Include location/ownership/edit-history metadata (default true).
Include variablesinclude_variablestrue/false
Include the presentation's in-use variables (default false).
Include imagesinclude_imagestrue/false
Include the images placed on the slides, each with its URL (default false).
Include hidden slidesinclude_hidden_slidestrue/false
Include hidden slides in the Markdown content and the image list (default false). Only meaningful together with include_content or include_images.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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 a link's engagement analytics, aggregated across all of its visits.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation.
Link IDlink_idtextRequired
UUID of the managed link.
Intervalintervaltext
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 breakdowninclude_slide_breakdowntrue/false
Set true to also get per-slide view counts and median time on slide (default false, one entry per visible slide).

Outputs

dataobject
The response from Pitch.
Example output
{
  "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 one visit of a link, including how long the visitor spent on each slide they reached.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation the link belongs to.
Link IDlink_idtextRequired
UUID of the link the visit belongs to.
Visit IDvisit_idtextRequired
UUID of the visit, as returned by the visit list.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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

Teamspaceteamspace_idtextRequired
Teamspace UUID to fetch.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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

Templatetemplate_idtextRequired
Template UUID, as returned by list-templates.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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

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

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}

List a link's individual visits, newest first.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation.
Link IDlink_idtextRequired
UUID of the managed link.
Limitlimitnumber
Maximum number of visits to return (default 20, max 100).From 1 to 100.
Cursorcursortext
Opaque pagination cursor returned by a previous call.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}

List a presentation's links.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "managed_links": []
  }
}

List teamspaces

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

Inputs

Limitlimitnumber
Maximum number of teamspaces to return (default 20, max 100).From 1 to 100.
Cursorcursortext
Opaque pagination cursor returned by a previous call.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}

List templates

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

Inputs

Sourcesourcetext
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 templatesinclude_gallery_templatestrue/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.
Limitlimitnumber
Maximum number of templates to return (default 20, max 100).From 1 to 100.
Cursorcursortext
Opaque pagination cursor returned by a previous call.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": [],
    "pagination": {
      "has_more": false,
      "next_cursor": "example"
    }
  }
}

Move content

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

Inputs

Presentation IDspresentation_idslist
UUIDs of the presentations to move.
Folder IDsfolder_idslist
UUIDs of the folders to move. Everything inside a folder moves with it.
Target teamspace IDtarget_teamspace_idtext
Target teamspace id.
Target folder IDtarget_folder_idtext
Target folder id.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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 IDpresentation_idtext
Presentation id.
Folderfolder_idtext
Folder id.
Namerecord_nametextRequired
The new name. Renaming a presentation changes its file name, not the title on its slides.

Outputs

dataobject
The response from Pitch.
Example output
{
  "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

QueryquerytextRequired
Text to match against presentation titles.
Limitlimitnumber
Maximum number of presentations to return (default 20, max 100).From 1 to 100.

Outputs

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": []
  }
}

Update a link's options or disabled state.

Inputs

Presentation IDpresentation_idtextRequired
UUID of the presentation.
Link IDlink_idtextRequired
UUID of the managed link.
Namerecord_nametext
New display label for the link.
Slugslugtext
New human-readable portion of the link URL. The random suffix is preserved.
Disableddisabledtrue/false
Set true to disable the link (it stops resolving), or false to re-enable it.
Optionsoptionsobject
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

dataobject
The response from Pitch.
Example output
{
  "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 IDpresentation_idtextRequired
UUID of the presentation to update. Use search to find it.
VariablesvariablesobjectRequired
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

dataobject
The response from Pitch.
Example output
{
  "data": {
    "data": {
      "job_id": "example",
      "status": "example"
    }
  }
}

On this page