runsync-endpoint
Submit synchronous jobs to RunPod serverless endpoints and retrieve results directly for tasks under 90 seconds, or receive a job ID to poll for completion. Supports customizable wait times, webhooks, and S3 storage for large outputs.
Instructions
Submit a synchronous job to a Serverless endpoint and wait for the result. Best for tasks completing within 90 seconds. If processing exceeds 90 seconds, the response returns a job ID to poll with get-job-status. Max payload: 20 MB. Results expire after 1 minute. Use the wait parameter to extend the server-side wait up to 5 minutes (300000 ms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpointId | Yes | ID of the Serverless endpoint to run synchronously | |
| input | Yes | Input payload for the worker handler. The expected fields depend on the deployed model or worker. | |
| wait | No | How long in milliseconds the server should wait for a result before returning a job ID to poll (1000–300000). Defaults to 90000 (90 seconds). | |
| webhook | No | Webhook URL to receive job completion notifications instead of polling | |
| policy | No | Execution policy options | |
| s3Config | No | S3-compatible storage config for large outputs |