Skip to main content

GET Audio by ID

Overview


The table below provides information about the GET method for managing the process of retrieving an audio by its ID.

GET Audio by PublicId
MethodGET
URL or Endpoint/api/v1/projectId/audios/id
HeadersAuthorization
Parametersid, projectId
BodyNot Applicable

The description of the URL parameter is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
idYesstringUnique Id of the audio.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{audioId}",
"title": "{title}",
"description": "",
"source": "",
"author": "",
"publishStatusName": "Ready",
"thumbnail": "",
"canEmbed": true,
"link": "",
"chapterState": true,
"duration": 93.727347,
"publishStartDate": null,
"publishEndDate": null,
"insertDate": "2024-05-20T14:10:01.9248475",
"customParameters": [],
"chapters": [
{
"title": "Chapter 1",
"time": 90
},
{
"title": "Chapter 2",
"time": 93
}
]
},
"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
publicIdstringThe unique Id of the audio
titlestringTitle of the audio
descriptionstringDescription of the audio
sourcestringThe source of the audio.
authorstringThe author of the audio.
publishStatusNamestringName of the publish status.
thumbnailstringURL of the audio's thumbnail image
canEmbedboolIndicates whether the audio can be embedded.
linkstringUrl of the embed.
chapterStateboolIndicates whether chapters are enabled
durationstringDuration of the audio in seconds
publishStartDateDateDate and time when the audio was published
publishEndDateDateDate and time when audio will not be available.
insertDateDateDate and time when the audio was inserted
customParametersarray[Object]An array of custom parameters.
chaptersarray[Object]Returns an array of chapters.
titlestringThe title of the chapter.
timeinteger($int32)The end time for the specific chapter.
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