The Wistia TypeScript SDK provides comprehensive programmatic access to the Wistia Data, stats, and upload API, enabling developers to integrate with Wistia's video hosting and marketing platform. The SDK supports core video management operations including media upload, organization within projects and subfolders, caption and localization management, analytics and stats retrieval, live streaming events, and domain security controls.
Important: Please do not use this library in a client context, as exposing bearer tokens in client-side applications is inherently insecure.
For complete API documentation and platform guides, please visit docs.wistia.com.
This SDK wrapper is currently in beta; functionality is subject to change. When released, the API will use a date-based versioning system instead of (but compliant with) SemVer.
- Server-side only
- Official docs
- Version note
- SDK Installation
- Requirements
- SDK Example Usage
- Authentication
- Available Resources and Operations
- Standalone functions
- File uploads
- Retries
- Error Handling
- Server Selection
- Custom HTTP Client
- Debugging
- Development
The SDK can be installed with either npm, pnpm, bun or yarn package managers.
npm add @wistia/wistia-api-clientpnpm add @wistia/wistia-api-clientbun add @wistia/wistia-api-clientyarn add @wistia/wistia-api-clientNote
This package is published with CommonJS and ES Modules (ESM) support.
For supported JavaScript runtimes, please consult RUNTIMES.md.
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
});
console.log(result);
}
run();This SDK supports the following security scheme globally:
| Name | Type | Scheme | Environment Variable |
|---|---|---|---|
bearerAuth |
http | HTTP Bearer | WISTIA_BEARER_AUTH |
To authenticate with the API the bearerAuth parameter must be set when initializing the SDK client instance. For example:
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
});
console.log(result);
}
run();Available methods
- get - Get Current Account
- getTokenDetails - Get Current Token
- list - List Allowed Domains
- create - Create Allowed Domain
- get - Show Allowed Domain
- delete - Delete Allowed Domain
- getAnalyticsMediasMediaId - Show Media Analytics
- getAnalyticsMediasMediaIdTimeseries - Show Media Analytics Timeseries
- getAnalyticsMediasMediaIdEmbedLocations - Show Media Embed Locations
- getAnalyticsMediasMediaIdTraffic - Show Media Traffic Breakdown
- getAnalyticsMediasMediaIdConversions - Show Media Form Conversions
- getAnalyticsMediasMediaIdLanguages - Show Media Languages
- getAnalyticsWebinarsWebinarId - Show Webinar Analytics
- getAnalyticsWebinarsWebinarIdRegistration - Show Webinar Registration Timeseries
- getAnalyticsWebinarsWebinarIdTraffic - Show Webinar Traffic Breakdown
- getAnalyticsWebinarsWebinarIdAudience - Show Webinar Audience
- getAnalyticsWebinarsWebinarIdHistograms - Show Webinar Histograms
- get - Show Background Job Status
- list - List Captions by Media
- create - Create Captions
- createMultipart - Create Captions
- getCaptions - List Captions
- purchase - Purchase Captions
- get - Show Captions
- update - Update Captions
- updateMultipart - Update Captions
- delete - Delete Captions
- get - Show Channel Episode
- create - Create Channel Episode
- list - List Channel Episodes
- putChannelEpisodesChannelEpisodeHashedId - Update Channel Episode
- deleteChannelEpisodesChannelEpisodeHashedId - Delete Channel Episode
- putChannelEpisodesChannelEpisodeHashedIdPublish - Publish Channel Episode
- putChannelEpisodesChannelEpisodeHashedIdUnpublish - Un-publish Channel Episode
- list - List Channels
- postChannels - Create Channel
- get - Show Channel
- putChannelsChannelHashedId - Update Channel
- deleteChannelsChannelHashedId - Delete Channel
- list - List Channel Episodes by Channel
- get - Show Customizations
- create - Create Customizations
- update - Update Customizations
- delete - Delete Customizations
- create - Create Expiring Access Token
- getFoldersFolderIdSharings - List Folder Sharings
- postFoldersFolderIdSharings - Create Folder Sharing
- getFoldersFolderIdSharingsSharingId - Show Folder Sharing
- putFoldersFolderIdSharingsSharingId - Update Folder Sharing
- deleteFoldersFolderIdSharingsSharingId - Delete Folder Sharing
- getFolders - List Folders
- postFolders - Create Folder
- getFoldersId - Show Folder
- putFoldersId - Update Folder
- deleteFoldersId - Delete Folder
- postFoldersIdCopy - Copy Folder
- list - List Localizations
- create - Create Localization
- get - Show Localization
- delete - Delete Localization
- uploadForm - Upload or Import Media
- uploadMultipart - Upload or Import Media
- list - List Media
- get - Show Media
- update - Update Media
- delete - Delete Media
- copy - Copy Media
- swap - Swap Media
- getStats - Show Media Aggregated Stats
- translate - Translate Media
- postMediasImportUrl - Import Media from URL
- archive - Archive Media
- move - Move Media
- restore - Restore Media
- putMediasCopy - Bulk Copy Media
- getMediaExtendedAudioDescriptions - List Media Extended Audio Descriptions
- getMediaExtendedAudioDescriptionsId - Show Media Extended Audio Description
- deleteMediaExtendedAudioDescriptionsId - Delete Media Extended Audio Description
- postMediaExtendedAudioDescriptionsOrder - Order Extended Audio Description
- getMediaExtendedAudioDescriptionsOrderStatusId - Get Order Status
- search - Search
- get - Show Current Account Stats
- getStatsAccountByDate - Show Account Stats by Date
- get - Show Media Stats
- getByDate - Show Media Stats by Date
- getEngagement - Show Media Engagement
- get - Show Project Stats
- getFoldersFolderIdSubfolders - List Subfolders
- postFoldersFolderIdSubfolders - Create Subfolder
- getFoldersFolderIdSubfoldersSubfolderId - Show Subfolder
- putFoldersFolderIdSubfoldersSubfolderId - Update Subfolder
- deleteFoldersFolderIdSubfoldersSubfolderId - Delete Subfolder
- deleteFoldersFolderIdSubfoldersBulkDelete - Bulk Delete Subfolders
- postTaggingsBulkCreate - Bulk Tag Media
- create - Create Media from Trims
- postWebinarsWebinarIdRegistrations - Create Webinar Registration
- getWebinars - List Webinars
- postWebinars - Create Webinar
- getWebinarsId - Show Webinar
- putWebinarsId - Update Webinar
- deleteWebinarsId - Delete Webinar
All the methods listed above are available as standalone functions. These functions are ideal for use in applications running in the browser, serverless runtimes or other environments where application bundle size is a primary concern. When using a bundler to build your application, all unused functionality will be either excluded from the final bundle or tree-shaken away.
To read more about standalone functions, check FUNCTIONS.md.
Available standalone functions
accountGet- Get Current AccountaccountGetTokenDetails- Get Current TokenallowedDomainsCreate- Create Allowed DomainallowedDomainsDelete- Delete Allowed DomainallowedDomainsGet- Show Allowed DomainallowedDomainsList- List Allowed DomainsanalyticsMediaGetAnalyticsMediasMediaId- Show Media AnalyticsanalyticsMediaGetAnalyticsMediasMediaIdConversions- Show Media Form ConversionsanalyticsMediaGetAnalyticsMediasMediaIdEmbedLocations- Show Media Embed LocationsanalyticsMediaGetAnalyticsMediasMediaIdLanguages- Show Media LanguagesanalyticsMediaGetAnalyticsMediasMediaIdTimeseries- Show Media Analytics TimeseriesanalyticsMediaGetAnalyticsMediasMediaIdTraffic- Show Media Traffic BreakdownanalyticsWebinarGetAnalyticsWebinarsWebinarId- Show Webinar AnalyticsanalyticsWebinarGetAnalyticsWebinarsWebinarIdAudience- Show Webinar AudienceanalyticsWebinarGetAnalyticsWebinarsWebinarIdHistograms- Show Webinar HistogramsanalyticsWebinarGetAnalyticsWebinarsWebinarIdRegistration- Show Webinar Registration TimeseriesanalyticsWebinarGetAnalyticsWebinarsWebinarIdTraffic- Show Webinar Traffic BreakdownbackgroundJobStatusGet- Show Background Job StatuscaptionsCreate- Create CaptionscaptionsCreateMultipart- Create CaptionscaptionsDelete- Delete CaptionscaptionsGet- Show CaptionscaptionsGetCaptions- List CaptionscaptionsList- List Captions by MediacaptionsPurchase- Purchase CaptionscaptionsUpdate- Update CaptionscaptionsUpdateMultipart- Update CaptionschannelEpisodesCreate- Create Channel EpisodechannelEpisodesDeleteChannelEpisodesChannelEpisodeHashedId- Delete Channel EpisodechannelEpisodesGet- Show Channel EpisodechannelEpisodesList- List Channel EpisodeschannelEpisodesPutChannelEpisodesChannelEpisodeHashedId- Update Channel EpisodechannelEpisodesPutChannelEpisodesChannelEpisodeHashedIdPublish- Publish Channel EpisodechannelEpisodesPutChannelEpisodesChannelEpisodeHashedIdUnpublish- Un-publish Channel EpisodechannelsChannelEpisodesList- List Channel Episodes by ChannelchannelsDeleteChannelsChannelHashedId- Delete ChannelchannelsGet- Show ChannelchannelsList- List ChannelschannelsPostChannels- Create ChannelchannelsPutChannelsChannelHashedId- Update ChannelcustomizationsCreate- Create CustomizationscustomizationsDelete- Delete CustomizationscustomizationsGet- Show CustomizationscustomizationsUpdate- Update CustomizationsexpiringAccessTokensCreate- Create Expiring Access TokenfoldersDeleteFoldersId- Delete FolderfoldersGetFolders- List FoldersfoldersGetFoldersId- Show FolderfolderSharingsDeleteFoldersFolderIdSharingsSharingId- Delete Folder SharingfolderSharingsGetFoldersFolderIdSharings- List Folder SharingsfolderSharingsGetFoldersFolderIdSharingsSharingId- Show Folder SharingfolderSharingsPostFoldersFolderIdSharings- Create Folder SharingfolderSharingsPutFoldersFolderIdSharingsSharingId- Update Folder SharingfoldersPostFolders- Create FolderfoldersPostFoldersIdCopy- Copy FolderfoldersPutFoldersId- Update FolderlocalizationsCreate- Create LocalizationlocalizationsDelete- Delete LocalizationlocalizationsGet- Show LocalizationlocalizationsList- List LocalizationsmediaArchive- Archive MediamediaCopy- Copy MediamediaDelete- Delete MediamediaExtendedAudioDescriptionsDeleteMediaExtendedAudioDescriptionsId- Delete Media Extended Audio DescriptionmediaExtendedAudioDescriptionsGetMediaExtendedAudioDescriptions- List Media Extended Audio DescriptionsmediaExtendedAudioDescriptionsGetMediaExtendedAudioDescriptionsId- Show Media Extended Audio DescriptionmediaExtendedAudioDescriptionsGetMediaExtendedAudioDescriptionsOrderStatusId- Get Order StatusmediaExtendedAudioDescriptionsPostMediaExtendedAudioDescriptionsOrder- Order Extended Audio DescriptionmediaGet- Show MediamediaGetStats- Show Media Aggregated StatsmediaList- List MediamediaMove- Move MediamediaPostMediasImportUrl- Import Media from URLmediaPutMediasCopy- Bulk Copy MediamediaRestore- Restore MediamediaSwap- Swap MediamediaTranslate- Translate MediamediaUpdate- Update MediamediaUploadForm- Upload or Import MediamediaUploadMultipart- Upload or Import MediasearchSearch- SearchstatsAccountGet- Show Current Account StatsstatsAccountGetStatsAccountByDate- Show Account Stats by DatestatsEventsGet- Show EventstatsEventsList- List EventsstatsMediaGet- Show Media StatsstatsMediaGetByDate- Show Media Stats by DatestatsMediaGetEngagement- Show Media EngagementstatsProjectsGet- Show Project StatsstatsVisitorsGet- Show VisitorstatsVisitorsList- List VisitorssubfoldersDeleteFoldersFolderIdSubfoldersBulkDelete- Bulk Delete SubfolderssubfoldersDeleteFoldersFolderIdSubfoldersSubfolderId- Delete SubfoldersubfoldersGetFoldersFolderIdSubfolders- List SubfolderssubfoldersGetFoldersFolderIdSubfoldersSubfolderId- Show SubfoldersubfoldersPostFoldersFolderIdSubfolders- Create SubfoldersubfoldersPutFoldersFolderIdSubfoldersSubfolderId- Update SubfoldertaggingsPostTaggingsBulkCreate- Bulk Tag MediatagsCreate- Create TagstagsDelete- Delete TagtagsList- List TagstrimsCreate- Create Media from TrimswebinarRegistrationsPostWebinarsWebinarIdRegistrations- Create Webinar RegistrationwebinarsDeleteWebinarsId- Delete WebinarwebinarsGetWebinars- List WebinarswebinarsGetWebinarsId- Show WebinarwebinarsPostWebinars- Create WebinarwebinarsPutWebinarsId- Update Webinar
Certain SDK methods accept files as part of a multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
Tip
Depending on your JavaScript runtime, there are convenient utilities that return a handle to a file without reading the entire contents into memory:
- Node.js v20+: Since v20, Node.js comes with a native
openAsBlobfunction innode:fs. - Bun: The native
Bun.filefunction produces a file handle that can be used for streaming file uploads. - Browsers: All supported browsers return an instance to a
Filewhen reading the value from an<input type="file">element. - Node.js v18: A file stream can be created using the
fileFromhelper fromfetch-blob/from.js.
import { Wistia } from "@wistia/wistia-api-client";
import { openAsBlob } from "node:fs";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadMultipart({
file: await openAsBlob("example.file"),
});
console.log(result);
}
run();Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
}, {
retries: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
});
console.log(result);
}
run();If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
retryConfig: {
strategy: "backoff",
backoff: {
initialInterval: 1,
maxInterval: 50,
exponent: 1.1,
maxElapsedTime: 100,
},
retryConnectionErrors: false,
},
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
});
console.log(result);
}
run();WistiaError is the base class for all HTTP error responses. It has the following properties:
| Property | Type | Description |
|---|---|---|
error.message |
string |
Error message |
error.statusCode |
number |
HTTP response status code eg 404 |
error.headers |
Headers |
HTTP response headers |
error.body |
string |
HTTP body. Can be empty string if no body is returned. |
error.rawResponse |
Response |
Raw HTTP response |
error.data$ |
Optional. Some errors may contain structured data. See Error Classes. |
import { Wistia } from "@wistia/wistia-api-client";
import * as errors from "@wistia/wistia-api-client/models/errors";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
try {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
});
console.log(result);
} catch (error) {
// The base class for HTTP error responses
if (error instanceof errors.WistiaError) {
console.log(error.message);
console.log(error.statusCode);
console.log(error.body);
console.log(error.headers);
// Depending on the method different errors may be thrown
if (error instanceof errors.PostFormBadRequestError) {
console.log(error.data$.error); // operations.PostFormError
}
}
}
}
run();Primary error:
WistiaError: The base class for HTTP error responses.
Less common errors (383)
Network errors:
ConnectionError: HTTP client was unable to make a request to a server.RequestTimeoutError: HTTP request timed out due to an AbortSignal signal.RequestAbortedError: HTTP request was aborted by the client.InvalidRequestError: Any input used to create a request is invalid.UnexpectedClientError: Unrecognised or unexpected error.
Inherit from WistiaError:
PostFormBadRequestError: Error due to reaching the video limit of your account or other issues. Status code400. Applicable to 1 of 108 methods.*PostMultipartBadRequestError: Error due to reaching the video limit of your account or other issues. Status code400. Applicable to 1 of 108 methods.*GetMediasBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCopyBadRequestError: Bad request, e.g. copy failure. Status code400. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdSwapBadRequestError: Bad request, e.g. missing replacement_media_id or media type mismatch. Status code400. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdStatsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostMediasImportUrlBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PutMediasMoveBadRequestError: Invalid request. Status code400. Applicable to 1 of 108 methods.*PostMediaExtendedAudioDescriptionsOrderBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetFoldersBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostAllowedDomainsBadRequestError: Bad request - missing or invalid domain. Status code400. Applicable to 1 of 108 methods.*GetCaptionsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetTagsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostTagsBadRequestError: Bad request - missing or invalid parameters. Status code400. Applicable to 1 of 108 methods.*GetSearchBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetChannelsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*PostChannelsChannelHashedIdChannelEpisodesBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetChannelEpisodesBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTimeseriesBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdEmbedLocationsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTrafficBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdConversionsBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdLanguagesBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdRegistrationBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdTrafficBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdChannelEpisodesBadRequestError: Bad request. Status code400. Applicable to 1 of 108 methods.*GetMediasUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCopyUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdSwapUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdStatsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasImportUrlUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasArchiveUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMoveUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasRestoreUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasCopyUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteMediaExtendedAudioDescriptionsIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediaExtendedAudioDescriptionsOrderUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostFoldersUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutFoldersIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteFoldersIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostFoldersIdCopyUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostFoldersFolderIdSubfoldersUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersSubfolderIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersBulkDeleteUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersFolderIdSharingsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostFoldersFolderIdSharingsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetFoldersFolderIdSharingsSharingIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutFoldersFolderIdSharingsSharingIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostTaggingsBulkCreateUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAccountDetailsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetTokenDetailsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAllowedDomainsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostAllowedDomainsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAllowedDomainsDomainUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteAllowedDomainsDomainUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetBackgroundJobStatusBackgroundJobStatusIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaIdCustomizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaIdCustomizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaIdCustomizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteMediasMediaIdCustomizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdCaptionsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsMultipartUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetCaptionsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsPurchaseUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdCaptionsLanguageCodeUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdCaptionsLanguageCodeUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdCaptionsLanguageCodeMultipartUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdCaptionsLanguageCodeUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTrimsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsLocalizationHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdLocalizationsLocalizationHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetTagsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostTagsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteTagsNameUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetSearchUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetChannelsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostChannelsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutChannelsChannelHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteChannelsChannelHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdChannelEpisodesChannelEpisodeIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostChannelsChannelHashedIdChannelEpisodesUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetChannelEpisodesUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteChannelEpisodesChannelEpisodeHashedIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdPublishUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostExpiringTokenUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetWebinarsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostWebinarsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetWebinarsIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutWebinarsIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*DeleteWebinarsIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PostWebinarsWebinarIdRegistrationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsAccountUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsAccountByDateUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsProjectsProjectIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdByDateUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdEngagementUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsVisitorsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsVisitorsVisitorKeyUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsEventsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetStatsEventsEventKeyUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTimeseriesUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdEmbedLocationsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTrafficUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdConversionsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdLanguagesUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdRegistrationUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdTrafficUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdAudienceUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdHistogramsUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdChannelEpisodesUnauthorizedError: Unauthorized, invalid or missing token. Status code401. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCopyForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdSwapForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdStatsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasImportUrlForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutMediasArchiveForbiddenError: Forbidden, e.g. account does not have access to archiving. Status code403. Applicable to 1 of 108 methods.*PutMediasMoveForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutMediasRestoreForbiddenError: Forbidden, e.g. account does not have access to archiving. Status code403. Applicable to 1 of 108 methods.*PutMediasCopyForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteMediaExtendedAudioDescriptionsIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediaExtendedAudioDescriptionsOrderForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutFoldersIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteFoldersIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostFoldersFolderIdSubfoldersForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostFoldersFolderIdSharingsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostTaggingsBulkCreateForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostAllowedDomainsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteAllowedDomainsDomainForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaIdCustomizationsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsMultipartForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTrimsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdLocalizationsLocalizationHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostTagsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteTagsNameForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostChannelsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutChannelsChannelHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteChannelsChannelHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PostChannelsChannelHashedIdChannelEpisodesForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*DeleteChannelEpisodesChannelEpisodeHashedIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdPublishForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetWebinarsForbiddenError: Webinar feature not available. Status code403. Applicable to 1 of 108 methods.*PostWebinarsForbiddenError: Webinar feature not available. Status code403. Applicable to 1 of 108 methods.*GetWebinarsIdForbiddenError: Webinar feature not available. Status code403. Applicable to 1 of 108 methods.*PutWebinarsIdForbiddenError: Webinar feature not available. Status code403. Applicable to 1 of 108 methods.*DeleteWebinarsIdForbiddenError: Webinar feature not available. Status code403. Applicable to 1 of 108 methods.*PostWebinarsWebinarIdRegistrationsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsAccountForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsAccountByDateForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsProjectsProjectIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdByDateForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdEngagementForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsVisitorsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsVisitorsVisitorKeyForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsEventsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetStatsEventsEventKeyForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTimeseriesForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdEmbedLocationsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTrafficForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdConversionsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdLanguagesForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdRegistrationForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdTrafficForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdAudienceForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdHistogramsForbiddenError: Forbidden, token is valid but account does not have access to feature. Status code403. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCopyNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdSwapNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdStatsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostMediasImportUrlNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutMediasMoveNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutMediasRestoreNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteMediaExtendedAudioDescriptionsIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostMediaExtendedAudioDescriptionsOrderNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetFoldersIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutFoldersIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteFoldersIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostFoldersIdCopyNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersNotFoundError: Folder not found. Status code404. Applicable to 1 of 108 methods.*PostFoldersFolderIdSubfoldersNotFoundError: Folder not found. Status code404. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersSubfolderIdNotFoundError: Folder or subfolder not found. Status code404. Applicable to 1 of 108 methods.*PutFoldersFolderIdSubfoldersSubfolderIdNotFoundError: Folder or subfolder not found. Status code404. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersSubfolderIdNotFoundError: Folder or subfolder not found. Status code404. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersBulkDeleteNotFoundError: Folder not found. Status code404. Applicable to 1 of 108 methods.*GetFoldersFolderIdSharingsSharingIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutFoldersFolderIdSharingsSharingIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSharingsSharingIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetAllowedDomainsDomainNotFoundError: Domain not found. Status code404. Applicable to 1 of 108 methods.*DeleteAllowedDomainsDomainNotFoundError: Domain not found. Status code404. Applicable to 1 of 108 methods.*GetMediasMediaIdCustomizationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PutMediasMediaIdCustomizationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteMediasMediaIdCustomizationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsLocalizationHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdLocalizationsLocalizationHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*PostWebinarsWebinarIdRegistrationsNotFoundError: Resource not found. Status code404. Applicable to 1 of 108 methods.*MethodNotAllowedError: Method not allowed, e.g. trying to copy archived media. Status code405. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdConflictError: The event has not yet reached a terminal state. Analytics are only available after the event has ended. Status code409. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdHistogramsConflictError: The event has not yet reached a terminal state. Analytics are only available after the event has ended. Status code409. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateUnprocessableEntityError: Unprocessible entity, parameters provided were invalid. Status code422. Applicable to 1 of 108 methods.*PostMediasImportUrlUnprocessableEntityError: Unprocessable entity, the URL domain is not permitted for import. Status code422. Applicable to 1 of 108 methods.*PutMediasArchiveUnprocessableEntityError: Unprocessable entity, e.g. too many media requested. Status code422. Applicable to 1 of 108 methods.*PutMediasRestoreUnprocessableEntityError: Missing arguments for restoration of media. Status code422. Applicable to 1 of 108 methods.*PutMediasCopyUnprocessableEntityError: Unprocessable entity, e.g. missing required parameters. Status code422. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersBulkDeleteUnprocessableEntityError: Unprocessable entity, e.g. missing required parameters. Status code422. Applicable to 1 of 108 methods.*PostTaggingsBulkCreateUnprocessableEntityError: Unprocessable entity, e.g. missing required parameters. Status code422. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsPurchaseUnprocessableEntityError: Unprocessable entity. Account not eligible, captions already purchased, or other validation error. Status code422. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTrimsUnprocessableEntityError: Unprocessable entity, the request parameters were invalid. Status code422. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsUnprocessableEntityError: Unprocessible entity, parameters provided were invalid. Status code422. Applicable to 1 of 108 methods.*PostTagsUnprocessableEntityError: Validation error - tag already exists. Status code422. Applicable to 1 of 108 methods.*PostExpiringTokenUnprocessableEntityError: Unprocessable entity, the request parameters were invalid. Status code422. Applicable to 1 of 108 methods.*PostWebinarsUnprocessableEntityError: Validation errors. Status code422. Applicable to 1 of 108 methods.*PutWebinarsIdUnprocessableEntityError: Validation errors. Status code422. Applicable to 1 of 108 methods.*PostWebinarsWebinarIdRegistrationsUnprocessableEntityError: Unprocessable entity, the request parameters were invalid. Status code422. Applicable to 1 of 108 methods.*GetStatsEventsUnprocessableEntityError: Unprocessable entity, the request parameters were invalid. Status code422. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdUnprocessableEntityError: Unprocessable entity. Status code422. Applicable to 1 of 108 methods.*GetMediasInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCopyInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdSwapInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdStatsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTranslateInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasImportUrlInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasArchiveInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMoveInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasRestoreInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasCopyInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteMediaExtendedAudioDescriptionsIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediaExtendedAudioDescriptionsOrderInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostFoldersInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutFoldersIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteFoldersIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostFoldersIdCopyInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostFoldersFolderIdSubfoldersInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersFolderIdSubfoldersSubfolderIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutFoldersFolderIdSubfoldersSubfolderIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersSubfolderIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSubfoldersBulkDeleteInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersFolderIdSharingsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostFoldersFolderIdSharingsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetFoldersFolderIdSharingsSharingIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutFoldersFolderIdSharingsSharingIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteFoldersFolderIdSharingsSharingIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostTaggingsBulkCreateInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAccountDetailsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetTokenDetailsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAllowedDomainsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostAllowedDomainsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAllowedDomainsDomainInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteAllowedDomainsDomainInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetBackgroundJobStatusBackgroundJobStatusIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaIdCustomizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaIdCustomizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMediaIdCustomizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteMediasMediaIdCustomizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdCaptionsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsMultipartInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetCaptionsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdCaptionsPurchaseInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdCaptionsLanguageCodeInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdCaptionsLanguageCodeInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutMediasMediaHashedIdCaptionsLanguageCodeMultipartInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdCaptionsLanguageCodeInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdTrimsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostMediasMediaHashedIdLocalizationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetMediasMediaHashedIdLocalizationsLocalizationHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteMediasMediaHashedIdLocalizationsLocalizationHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetTagsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostTagsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteTagsNameInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetSearchInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetChannelsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostChannelsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutChannelsChannelHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteChannelsChannelHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdChannelEpisodesChannelEpisodeIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostChannelsChannelHashedIdChannelEpisodesInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetChannelEpisodesInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteChannelEpisodesChannelEpisodeHashedIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdPublishInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostExpiringTokenInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetWebinarsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostWebinarsInternalServerError: Internal server error during webinar creation. Status code500. Applicable to 1 of 108 methods.*GetWebinarsIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PutWebinarsIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*DeleteWebinarsIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*PostWebinarsWebinarIdRegistrationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsAccountInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsAccountByDateInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsProjectsProjectIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdByDateInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsMediasMediaIdEngagementInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsVisitorsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsVisitorsVisitorKeyInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsEventsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetStatsEventsEventKeyInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTimeseriesInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdEmbedLocationsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTrafficInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdConversionsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdLanguagesInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdRegistrationInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdTrafficInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdAudienceInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdHistogramsInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*GetChannelsChannelHashedIdChannelEpisodesInternalServerError: Internal server error. Status code500. Applicable to 1 of 108 methods.*NotImplementedError: Not implemented - expiring tokens cannot be created from other expiring tokens. Status code501. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTimeseriesServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdEmbedLocationsServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdTrafficServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdConversionsServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsMediasMediaIdLanguagesServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdRegistrationServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdTrafficServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdAudienceServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*GetAnalyticsWebinarsWebinarIdHistogramsServiceUnavailableError: Analytics service is temporarily unavailable. Status code503. Applicable to 1 of 108 methods.*ResponseValidationError: Type mismatch between the data returned from the server and the structure expected by the SDK. Seeerror.rawValuefor the raw value anderror.pretty()for a nicely formatted multi-line string.
* Check the method documentation to see if the error is applicable.
The default server can be overridden globally by passing a URL to the serverURL: string optional parameter when initializing the SDK client instance. For example:
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
serverURL: "https://api.wistia.com/modern",
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.list({});
console.log(result);
}
run();The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example:
import { Wistia } from "@wistia/wistia-api-client";
const wistia = new Wistia({
bearerAuth: process.env["WISTIA_BEARER_AUTH"] ?? "",
});
async function run() {
const result = await wistia.media.uploadForm({
url:
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
lowPriority: true,
}, {
serverURL: "https://upload.wistia.com",
});
console.log(result);
}
run();The TypeScript SDK makes API calls using an HTTPClient that wraps the native
Fetch API. This
client is a thin wrapper around fetch and provides the ability to attach hooks
around the request lifecycle that can be used to modify the request or handle
errors and response.
The HTTPClient constructor takes an optional fetcher argument that can be
used to integrate a third-party HTTP client or when writing tests to mock out
the HTTP client and feed in fixtures.
The following example shows how to:
- route requests through a proxy server using undici's ProxyAgent
- use the
"beforeRequest"hook to add a custom header and a timeout to requests - use the
"requestError"hook to log errors
import { Wistia } from "@wistia/wistia-api-client";
import { ProxyAgent } from "undici";
import { HTTPClient } from "@wistia/wistia-api-client/lib/http";
const dispatcher = new ProxyAgent("http://proxy.example.com:8080");
const httpClient = new HTTPClient({
// 'fetcher' takes a function that has the same signature as native 'fetch'.
fetcher: (input, init) =>
// 'dispatcher' is specific to undici and not part of the standard Fetch API.
fetch(input, { ...init, dispatcher } as RequestInit),
});
httpClient.addHook("beforeRequest", (request) => {
const nextRequest = new Request(request, {
signal: request.signal || AbortSignal.timeout(5000)
});
nextRequest.headers.set("x-custom-header", "custom value");
return nextRequest;
});
httpClient.addHook("requestError", (error, request) => {
console.group("Request Error");
console.log("Reason:", `${error}`);
console.log("Endpoint:", `${request.method} ${request.url}`);
console.groupEnd();
});
const sdk = new Wistia({ httpClient: httpClient });You can setup your SDK to emit debug logs for SDK requests and responses.
You can pass a logger that matches console's interface as an SDK option.
Warning
Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
import { Wistia } from "@wistia/wistia-api-client";
const sdk = new Wistia({ debugLogger: console });You can also enable a default debug logger by setting an environment variable WISTIA_DEBUG to true.
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.