Edits
Get Edit By Id
This endpoint returns an Edit document.
GET
/
v1
/
edits
Copy
curl --location --request GET 'https://api.golivecosmos.com/v1/edits/647f79a222e224369dbf7e92' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
Copy
{
"type": "edit",
"id": "647f79a222e224369dbf7e92",
"attributes": {
"createdAt": "2023-06-06T18:22:41.557Z",
"status": "done",
"commands": [
"image-to-video"
],
"options": {
"fps": 24,
"duration": 5
},
"assets": [
{ "type": "image", "src": "https://picsum.photos/200/300" }
]
"downloadUrls": ["https://cosmos-org-assets.s3.amazonaws.com/production/64249607732dd0eb4b42ce02/asset_0.mp4"]
},
"relationships": {
"organization": {
"links": {
"self": "/v1/organizations/647f79a222e224369dbf7e90"
},
"data": {
"type": "organization",
"id": "647f79a222e224369dbf7e90"
}
}
}
}
Parameters
The ID of the Edit document.
Response
Indicates the type of document returned in the response.
The attributes of the Edit document response.
Show Edit Document Attributes
Show Edit Document Attributes
The date the User was created.
The status of the edit. When an Edit is created, it will start in a queued
status. When the edit is complete the status will be updated to done
.
The array of commands to apply to the assets in the Edit.
The options to customize the edits applied to the assets.
An array of objects representing an asset file, with the file’s type and URL.
The URLs to download the edited files.
Copy
curl --location --request GET 'https://api.golivecosmos.com/v1/edits/647f79a222e224369dbf7e92' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
Copy
{
"type": "edit",
"id": "647f79a222e224369dbf7e92",
"attributes": {
"createdAt": "2023-06-06T18:22:41.557Z",
"status": "done",
"commands": [
"image-to-video"
],
"options": {
"fps": 24,
"duration": 5
},
"assets": [
{ "type": "image", "src": "https://picsum.photos/200/300" }
]
"downloadUrls": ["https://cosmos-org-assets.s3.amazonaws.com/production/64249607732dd0eb4b42ce02/asset_0.mp4"]
},
"relationships": {
"organization": {
"links": {
"self": "/v1/organizations/647f79a222e224369dbf7e90"
},
"data": {
"type": "organization",
"id": "647f79a222e224369dbf7e90"
}
}
}
}
Copy
curl --location --request GET 'https://api.golivecosmos.com/v1/edits/647f79a222e224369dbf7e92' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
Copy
{
"type": "edit",
"id": "647f79a222e224369dbf7e92",
"attributes": {
"createdAt": "2023-06-06T18:22:41.557Z",
"status": "done",
"commands": [
"image-to-video"
],
"options": {
"fps": 24,
"duration": 5
},
"assets": [
{ "type": "image", "src": "https://picsum.photos/200/300" }
]
"downloadUrls": ["https://cosmos-org-assets.s3.amazonaws.com/production/64249607732dd0eb4b42ce02/asset_0.mp4"]
},
"relationships": {
"organization": {
"links": {
"self": "/v1/organizations/647f79a222e224369dbf7e90"
},
"data": {
"type": "organization",
"id": "647f79a222e224369dbf7e90"
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.