Import media
curl --request POST \
--url https://api.sigmora.org/v1/assets/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"projectId": "prj_9x2a4c",
"sourceUrl": "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"title": "Big Buck Bunny (reference cut)",
"platform": "youtube"
}
'import requests
url = "https://api.sigmora.org/v1/assets/import"
payload = {
"projectId": "prj_9x2a4c",
"sourceUrl": "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"title": "Big Buck Bunny (reference cut)",
"platform": "youtube"
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
projectId: 'prj_9x2a4c',
sourceUrl: 'https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
title: 'Big Buck Bunny (reference cut)',
platform: 'youtube'
})
};
fetch('https://api.sigmora.org/v1/assets/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"projectId": "<string>",
"asset": {
"id": "<string>",
"projectId": "<string>",
"contentId": "<string>",
"title": "<string>",
"status": "processing",
"ingestStatus": "pending",
"durationSeconds": 1,
"mimeType": "<string>",
"source": "import",
"platform": "tiktok",
"previewAvailable": true,
"transcriptReady": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"checksum": {
"algorithm": "sha256",
"value": "<string>"
},
"provenance": {
"provider": "url",
"canonicalUrl": "<string>"
}
}
}{
"success": true,
"projectId": "<string>",
"asset": {
"id": "<string>",
"projectId": "<string>",
"contentId": "<string>",
"title": "<string>",
"status": "processing",
"ingestStatus": "pending",
"durationSeconds": 1,
"mimeType": "<string>",
"source": "import",
"platform": "tiktok",
"previewAvailable": true,
"transcriptReady": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"checksum": {
"algorithm": "sha256",
"value": "<string>"
},
"provenance": {
"provider": "url",
"canonicalUrl": "<string>"
}
}
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Import media
Import remote media into a project. Fetches a public HTTPS media URL through the guarded media freezer, stores immutable bytes, and returns a stable project asset. The Idempotency-Key makes retries converge after timeouts.
POST
/
v1
/
assets
/
import
Import media
curl --request POST \
--url https://api.sigmora.org/v1/assets/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"projectId": "prj_9x2a4c",
"sourceUrl": "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"title": "Big Buck Bunny (reference cut)",
"platform": "youtube"
}
'import requests
url = "https://api.sigmora.org/v1/assets/import"
payload = {
"projectId": "prj_9x2a4c",
"sourceUrl": "https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
"title": "Big Buck Bunny (reference cut)",
"platform": "youtube"
}
headers = {
"idempotency-key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
projectId: 'prj_9x2a4c',
sourceUrl: 'https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
title: 'Big Buck Bunny (reference cut)',
platform: 'youtube'
})
};
fetch('https://api.sigmora.org/v1/assets/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"projectId": "<string>",
"asset": {
"id": "<string>",
"projectId": "<string>",
"contentId": "<string>",
"title": "<string>",
"status": "processing",
"ingestStatus": "pending",
"durationSeconds": 1,
"mimeType": "<string>",
"source": "import",
"platform": "tiktok",
"previewAvailable": true,
"transcriptReady": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"checksum": {
"algorithm": "sha256",
"value": "<string>"
},
"provenance": {
"provider": "url",
"canonicalUrl": "<string>"
}
}
}{
"success": true,
"projectId": "<string>",
"asset": {
"id": "<string>",
"projectId": "<string>",
"contentId": "<string>",
"title": "<string>",
"status": "processing",
"ingestStatus": "pending",
"durationSeconds": 1,
"mimeType": "<string>",
"source": "import",
"platform": "tiktok",
"previewAvailable": true,
"transcriptReady": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"checksum": {
"algorithm": "sha256",
"value": "<string>"
},
"provenance": {
"provider": "url",
"canonicalUrl": "<string>"
}
}
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"success": false,
"error": "<string>",
"code": "invalid_request",
"details": "<unknown>",
"requestId": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}Authorizations
A workspace API key.
Headers
Required stable id for this logical write; reuse it after a timeout. Upload endpoints also require the same value in body.idempotencyKey.
Required string length:
1 - 255Body
application/json
Workspace project that will own the frozen media.
Required string length:
1 - 200Public HTTPS media URL. Signed query parameters are never persisted.
Maximum string length:
2048Display title for the frozen media; defaults to the source title when omitted.
Required string length:
1 - 160Primary source/output platform; defaults to youtube.
Available options:
tiktok, instagram, youtube, reddit, x