App Integration Guide (Developers)
curl --location 'https://multipartformdata-fileupload.pabbly.workers.dev/' \
--header 'pabbly_api_key: test' \
--header 'Content-Type: application/json' \
--header 'Authorization: <TargetApplicationToken>' \
--data '{
"endpoint": "https://api.targetapp.com/upload",
"file_url": "https://drive.google.com/file/d/1234/view?usp=sharing",
"headers_to_forward": "authorization",
"method": "POST",
"file_key": "profile_photo",
"body":{
"file_key": "file"
}
}'
| Parameter | Type | Description | Example Value |
pabbly_api_key | Header | An authentication key is needed to validate worker access. It should match the predefined key set in the worker code. | pabbly_api_key: {{PabblyPrivateKeyForInternalUse}} NOTE: This key is only used for our internal development for now. |
Authorization | Header | Custom header to forward to the target endpoint for further authentication, if required. | Authorization: {{BearerTokenofApplication}} |
Content-Type | Header | Defines the content type of the data being uploaded, such as application/json. | Content-Type: application/json |
| endpoint | JSON Field | Specifies the destination endpoint where the file should be uploaded. Accepts the file path with placeholders for the file name. | "https://target-endpoint.com/api/files/upload/:filename.jpeg" |
| file_url | JSON Field | URL of the file to be fetched and uploaded to the destination endpoint. The file is downloaded by the worker before being forwarded. | |
| file_key | JSON Field | The key name to use for the file in the form data. | File_name |
body | JSON Field | An optional set of additional parameters to send in the form data. | { "user_id": "12345" } |
| method | JSON Field | Specifies the HTTP method for the request to the destination endpoint. Accepted values are POST, PUT, etc. | "POST" |
| headers_to_forward | JSON Field | An array of headers is to be forwarded from the initial request to the destination endpoint. Useful for passing tokens or other sensitive information. | ["Authorization"] |