cURL
curl --request POST \ --url https://api.leanmcp.com/api/projects/{id}/upload-url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "fileName": "project.zip", "fileType": "application/zip", "fileSize": 1024 } '
{ "url": "<string>", "s3Location": "<string>" }
Get a pre-signed URL for uploading project files using API key authentication. Requires BUILD_AND_DEPLOY scope.
Enter your LeanMCP API key
Project ID
"proj_123456789"
File name
"project.zip"
File MIME type
"application/zip"
File size in bytes
1024
Pre-signed URL generated successfully