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 | |
---|---|
Method | GET |
URL or Endpoint | /api/v1/projectId /audios/id |
Headers | Authorization |
Parameters | id, projectId |
Body | Not Applicable |
The description of the URL parameter is as follows:
URL Parameter Name | Mandatory | Type | Description |
---|---|---|---|
projectId | Yes | string | Unique Id of the project. |
id | Yes | string | Unique 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 Name | Type | Description |
---|---|---|
success | bool | If the response is successful it will return true. Otherwise will return false |
errors | array[string] | Indicates if there was an error |
messages | array[string] | Returns the response message from back-end |
result | array[Object] | Returns the response object |
publicId | string | The unique Id of the audio |
title | string | Title of the audio |
description | string | Description of the audio |
source | string | The source of the audio. |
author | string | The author of the audio. |
publishStatusName | string | Name of the publish status. |
thumbnail | string | URL of the audio's thumbnail image |
canEmbed | bool | Indicates whether the audio can be embedded. |
link | string | Url of the embed. |
chapterState | bool | Indicates whether chapters are enabled |
duration | string | Duration of the audio in seconds |
publishStartDate | Date | Date and time when the audio was published |
publishEndDate | Date | Date and time when audio will not be available. |
insertDate | Date | Date and time when the audio was inserted |
customParameters | array[Object] | An array of custom parameters. |
chapters | array[Object] | Returns an array of chapters. |
title | string | The title of the chapter. |
time | integer($int32) | The end time for the specific chapter. |
resultInfo | string | Returns extra information about the result |
statusCode | integer($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