Request presigned upload target
curl --request POST \
--url https://api.plansync.dev/api/v1/files/presign-upload \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"projectId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileName: '<string>',
contentType: '<string>',
sizeBytes: 123,
projectId: '<string>'
})
};
fetch('https://api.plansync.dev/api/v1/files/presign-upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plansync.dev/api/v1/files/presign-upload"
payload = {
"fileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"projectId": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"uploadUrl": "<string>",
"s3Key": "<string>",
"uploadId": "<string>"
}Files
Request presigned upload target
POST
/
api
/
v1
/
files
/
presign-upload
Request presigned upload target
curl --request POST \
--url https://api.plansync.dev/api/v1/files/presign-upload \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"projectId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fileName: '<string>',
contentType: '<string>',
sizeBytes: 123,
projectId: '<string>'
})
};
fetch('https://api.plansync.dev/api/v1/files/presign-upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plansync.dev/api/v1/files/presign-upload"
payload = {
"fileName": "<string>",
"contentType": "<string>",
"sizeBytes": 123,
"projectId": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"uploadUrl": "<string>",
"s3Key": "<string>",
"uploadId": "<string>"
}Authorizations
apiKeyAuthcookieAuth
Project API key (psk_…) from Project Settings → API keys.
Required scopes depend on the route (e.g. issues:read for listing issues).
Only works on project-scoped /api/v1/projects/{projectId}/… routes.
Body
application/json