Request client upload token (deprecated)
curl --request POST \
--url https://beta.creatorcore.co/api/v2/media/client-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{
"payload": {}
}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({payload: {}})
};
fetch('https://beta.creatorcore.co/api/v2/media/client-upload', 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/client-upload"
payload = { "payload": {} }
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){}Media
Request client upload token (deprecated)
deprecated
Deprecated: use POST /api/v2/media/uploads. Issues a short-lived token for direct browser uploads. After the upload completes, register the file with POST /api/v2/media/register. The response carries the server-chosen pathname next to clientToken: upload to exactly that path (privately for payout_invoice) — the token rejects any other.
POST
/
api
/
v2
/
media
/
client-upload
Request client upload token (deprecated)
curl --request POST \
--url https://beta.creatorcore.co/api/v2/media/client-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{
"payload": {}
}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({payload: {}})
};
fetch('https://beta.creatorcore.co/api/v2/media/client-upload', 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/client-upload"
payload = { "payload": {} }
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){}Authorizations
Body
application/json
Was this page helpful?