Get a clip
This endpoint retrieves one clip in a project.
HTTP Request
GET https://app.resemble.ai/api/v2/projects/<project_uuid>/clips/<clip_uuid>
URL Parameters | Type | Description |
---|---|---|
clip_uuid | string | UUID of the clip to fetch |
project_uuid | string | UUID of the project to which the clip belongs |
HTTP Response
danger
Please note that clips created through the clip editor user interface will not return all the attributes specified below until the "create all" button has been clicked. This does not apply to clips created through the API.
Only the following attributes will be returned on a clip resource if the clip was created through the user interface and the "Create All" button was not clicked.
- uuid
- title
- body
- is_archived
- created_at
- updated_at
Also note, a clip created through the user interface in which the "Create All" button was clicked will return a comma seperated list of voice_uuid's if multiple voices are present in the clip. For example:
"voice_uuid": "4fe4e18e,922705cb"
{
"success": true,
"item": {
"uuid": <string>,
"title": <string>,
"body": <string>,
"voice_uuid": <string>,
"is_archived": <boolean>,
"timestamps": {
"graph_chars": <string[]>,
"graph_times": <float[[]]>,
"phon_chars": <string[]>,
"phon_times": <float[[]]>
},
"audio_src": <string>,
"created_at": <UTC Date>,
"updated_at": <UTC Date>,
}
}
Examples
NodeJS
1
2
3
4
5
import { Resemble } from '@resemble/node'
Resemble.setApiKey('YOUR_API_TOKEN')
await Resemble.v2.clips.get(projectUuid, clipUuid)
Try it out
API Key:
Project UUID:
Clip UUID: