Request an import upload token
curl --request POST \
--url https://beta.creatorcore.co/api/v2/imports/upload-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"importId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"sizeBytes": 123
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
importId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
sizeBytes: 123
})
};
fetch('https://beta.creatorcore.co/api/v2/imports/upload-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/imports/upload-token"
payload = {
"importId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<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,
"upload": {
"clientToken": "<string>",
"pathname": "<string>",
"maxBytes": 123,
"validUntil": "<string>"
}
}Imports
Request an import upload token
Issues a short-lived Vercel Blob client token for an import created with source: "upload". Upload the file privately to a path under the returned pathname (the token rejects any other path; max 10 MB), then pass the blob URL to POST /api/v2/imports//file. An import takes one file; create a new import to import a different file.
POST
/
api
/
v2
/
imports
/
upload-token
Request an import upload token
curl --request POST \
--url https://beta.creatorcore.co/api/v2/imports/upload-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"importId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"sizeBytes": 123
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
importId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
sizeBytes: 123
})
};
fetch('https://beta.creatorcore.co/api/v2/imports/upload-token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/imports/upload-token"
payload = {
"importId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<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,
"upload": {
"clientToken": "<string>",
"pathname": "<string>",
"maxBytes": 123,
"validUntil": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?