Register a client-uploaded media asset (deprecated)
curl --request POST \
--url https://beta.creatorcore.co/api/v2/media/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"publicUrl": "<string>",
"storageKey": "<string>",
"contentType": "<string>",
"sizeBytes": 123
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
publicUrl: '<string>',
storageKey: '<string>',
contentType: '<string>',
sizeBytes: 123
})
};
fetch('https://beta.creatorcore.co/api/v2/media/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/media/register"
payload = {
"publicUrl": "<string>",
"storageKey": "<string>",
"contentType": "<string>",
"sizeBytes": 123
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"media": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purpose": "branding_logo",
"visibility": "org",
"url": "<string>",
"publicUrl": "<string>",
"fallbackUrl": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"originalFilename": "<string>",
"sha256": "<string>",
"cacheControl": "<string>",
"context": {},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"thumbnailUrl": "<string>"
}Media
Register a client-uploaded media asset (deprecated)
deprecated
Deprecated: use POST /api/v2/media/uploads//complete. The file must already be in storage under your organization’s path; its size and type are read from storage, not from this request. Creates a media asset record for a file already uploaded via the client upload flow. Optionally converts HEIC to JPEG or MOV to MP4 and generates a video thumbnail when supported. A generated thumbnail is a media asset of its own: thumbnailUrl is its /api/v2/media/{id} path, and its context.posterFor is the video’s id (unknown for posters created before this field existed).
POST
/
api
/
v2
/
media
/
register
Register a client-uploaded media asset (deprecated)
curl --request POST \
--url https://beta.creatorcore.co/api/v2/media/register \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"publicUrl": "<string>",
"storageKey": "<string>",
"contentType": "<string>",
"sizeBytes": 123
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
publicUrl: '<string>',
storageKey: '<string>',
contentType: '<string>',
sizeBytes: 123
})
};
fetch('https://beta.creatorcore.co/api/v2/media/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/media/register"
payload = {
"publicUrl": "<string>",
"storageKey": "<string>",
"contentType": "<string>",
"sizeBytes": 123
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"media": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purpose": "branding_logo",
"visibility": "org",
"url": "<string>",
"publicUrl": "<string>",
"fallbackUrl": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"originalFilename": "<string>",
"sha256": "<string>",
"cacheControl": "<string>",
"context": {},
"createdAt": "<string>",
"updatedAt": "<string>"
},
"thumbnailUrl": "<string>"
}Authorizations
Body
application/json
Was this page helpful?