Skip to main content

GET Audio List

Overview


The following table contains information about the GET method for managing the proccess of retrieving all audios as a list.

GET Audios
MethodGET
URL or Endpoint/api/v1/projects/projectId/audios
HeadersAuthorization
ParametersfolderId, folderview, onlyReady, onlyPublishedAudios, key, value, search, order, insertedDate, page, take, projectId
BodyNot Applicable

The description of the URL parameter is as follows:

projectId Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
folderIdNointeger($int32)Unique identifier of the folder
folderViewNoboolIndicates wether the folder is enabled for viewing
onlyReadyNoboolIncludes only audios that have status ready
onlyPublishedAudiosNoboolInludes only audios that are published
keyNostringAudio key
valueNostringValue of the audio key
searchNostringSearch a specific audio
orderNostringSpecifies the sorting order.
insertedDateNostring($date-time)Date when the audio was inserted.
pageNointeger($int32)A specific page with audios.
takeNointeger($int32)Number of audios to take.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 8,
"pageSize": 10,
"totalCount": 72,
"items": [
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-03-05T22:35:00",
"canEmbed": true,
"thumbnail": null,
"duration": 15.072653,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
},
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-03-26T13:54:28.3102842",
"canEmbed": true,
"thumbnail": null,
"duration": 224.664,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
},
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-03-26T13:54:28.3328034",
"canEmbed": true,
"thumbnail": null,
"duration": 212.472,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
},
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-03-26T13:54:28.3422195",
"canEmbed": true,
"thumbnail": null,
"duration": 15.072653,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
},
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-03-26T15:14:45.7388724",
"canEmbed": true,
"thumbnail": null,
"duration": 224.664,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
},
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"status": "Ready",
"publishDate": "2024-04-08T07:52:47.8099051",
"canEmbed": true,
"thumbnail": null,
"duration": 197.955918,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"highlight": {}
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarray[Object]Returns the response object
currentPageinteger($int32)Number of the current page
totalPagesinteger($int32)Number of the total page
pageSizeinteger($int32)The size of the page
totalCountinteger($int32)Number of the total records
itemsarray[string]Array with records
titlestringTitle of the audio
publicIdstringUnique identifier of the audio
authorstringAuthor of the audio
statusstringStatus of the audio
publishDatestringPublish date of the audio
canEmbedbooleanIndicates if the audio can be embedded
thumbnailstringThumbnail of the audio
durationdoubleDuration of the audio in seconds
folderIdinteger($int32)Identifier of the folder
folderstringFolder details
progressdoubleProgress of the audio processing
estimatedFinishTimestringEstimated finish time for processing
showEncodingProgressbooleanIndicates if encoding progress should be shown
highlightobjectHighlight information
resultInfostringReturns extra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed