Skip to main content
||

Presentations

The Presentation APIs allow you to interrogate the folder and presentation structure of your Brainshark site. Use these endpoints to retrieve detailed information about content, search via tags or topics, and upload new media assets.

What you'll learn:

  • How to retrieve folder structures
  • Get presentation metadata and details
  • Upload new content
  • Work with tags and topics
TL;DR

Use folder.ashx to list folders, presentation.ashx to get content details, and tags.ashx/topic.ashx for organizational metadata.

Prerequisites

Folder Retrieval​

Use this endpoint to determine what folders are present in a site and get a count of the presentations contained within them.

Request​

MethodEndpointDescription
GET/brainshark/webservices_mobile/folder.ashxRetrieves a list of folders and their presentation counts.

Parameters​

ParameterTypeDescription
sid, sky, uid-Standard session identifiers.
includePresCountZerobooleanControls whether to include folders that contain zero presentations. Default: false
mobileonlybooleanWhen true, returns only folders containing mobile-optimized presentations.
login_dirstringThe company's unique site directory.
public_onlybooleanWhen true, returns only public folders.

Example request​

curl -X GET "https://www.brainshark.com/brainshark/webservices_mobile/folder.ashx?sid=987654321&sky=x9y8z7w6v5u4t3s2r1q0&uid=2548390"

Example response​

The response is hierarchical. Each folder can contain a Children array of nested folders.

[
{
"ID": 221385,
"Description": "Product Training",
"FullPath": "/Product Training",
"Parent": null,
"LongDescription": "",
"NumberOfPresentations": 21,
"Children": [
{
"ID": 221390,
"Description": "Onboarding",
"FullPath": "/Product Training/Onboarding",
"Parent": 221385,
"LongDescription": "",
"NumberOfPresentations": 7,
"Children": []
}
]
}
]

Get Presentation Details​

Retrieve complete metadata for a specific presentation or a list of presentations. This includes slide data, author information, and viewing URLs.

Request​

MethodEndpointDescription
GET/brainshark/webservices_mobile/presentation.ashxReturns detailed data for the specified content.

Parameters​

ParameterTypeDescription
pidstringA single Presentation ID or a comma-separated list of IDs. If omitted, the API returns all presentations authored by the logged-in user.
folderidintegerFilters results to only include presentations within a specific folder.
sortbystringSets the sort criteria. Values: title, desc, id, author
widgetsintegerSet to 1 to retrieve extended object data, required for some public session queries.
sortdirstringSets the sort direction. Values: asc, desc
offsetintegerNumber of results to skip. Use with perpage for pagination.
perpageintegerMaximum number of results to return per page.
authoridintegerFilters results to presentations by a specific author ID.
tagidintegerFilters results to presentations with a specific tag ID. See Tags.
topicidintegerFilters results to presentations in a specific topic ID. See Topics.
mobilebooleanWhen true, returns only mobile-optimized presentations.
login_dirstringThe company's unique site directory.
public_onlybooleanWhen true, returns only public presentations.
QstringSearch query string to filter presentations by title.
note

Attachments only appear in the response if the "Show link on attachments tab" setting is enabled for that specific asset in the Brainshark Edit Presentation interface.

Example Request​

GET https://www.brainshark.com/brainshark/webservices_mobile/presentation.ashx?pid=131724&sid=...

Presentation Password​

Use this endpoint to verify the password for a password-protected presentation before attempting to retrieve its content.

Request​

MethodEndpointDescription
GET/brainshark/webservices_mobile/password.ashxVerifies the password for a presentation.

Parameters​

ParameterTypeDescription
sid, sky, uid-Standard session identifiers.
pidintegerRequired. The ID of the password-protected presentation.
pwdstringRequired. The password to verify.

Example request​

GET https://www.brainshark.com/brainshark/webservices_mobile/password.ashx?pid=131724&pwd=secret&sid=...

Upload Presentation​

You can programmatically upload PowerPoint files or videos to a specific folder. The upload maps to the author associated with your current session.

Request​

MethodEndpointDescription
POST/brainshark/webservices_mobile/presentation.ashxUploads a media asset to a specified folder.

Parameters​

ParameterTypeDescription
folder_idintegerRequired. The ID of the destination folder.
titlestringRequired. The title for the new presentation.
uploadtypestringRequired. Use video for video files or leave blank for PowerPoint.
note

This endpoint requires a multipart/form-data POST with the file attached as form data.

Tags​

Use this endpoint to retrieve the list of available tags. Tag IDs can be used as filters in the Presentation API.

Request​

MethodEndpointDescription
GET/brainshark/webservices_mobile/tags.ashxRetrieves site-wide presentation tags.

Parameters​

ParameterTypeDescription
sid, sky, uid-Standard session identifiers.
tag_typestringSpecifies the type of tags to return. Values: predefined, userdefined, both. Default: predefined (We recommend using both)
sortbystringSets the sort criteria. Values: title, desc, id
sortdirstringSets the sort direction. Values: asc, desc
login_dirstringThe company's unique site directory.
maxintegerMaximum number of tags to return.
public_onlybooleanWhen true, returns only public tags.

Topics​

Use this endpoint to retrieve the list of available topics. Topic IDs can be used as filters in the Presentation API.

Request​

MethodEndpointDescription
GET/brainshark/webservices_mobile/topic.ashxRetrieves site-wide presentation topics.

Parameters​

ParameterTypeDescription
sid, sky, uid-Standard session identifiers.
includenetworktopicsbooleanWhen true, includes topics from network sites.
mobileonlybooleanWhen true, returns only topics marked for mobile.
includeprescountzerobooleanControls whether to include topics with zero presentations. Default: false
sortbystringSets the sort criteria. Values: title, desc, id
sortdirstringSets the sort direction. Values: asc, desc
login_dirstringThe company's unique site directory.
public_onlybooleanWhen true, returns only public topics.
QstringSearch query string to filter topics by name.

Was this page helpful?