Skip to main content
GET
/
storage
/
generate-signed-path
Generate signed path
curl --request GET \
  --url https://api.techforgeinnovate.com/storage/generate-signed-path \
  --header 'x-api-key: <api-key>'
{
  "signedUrl": "<string>",
  "error": "<string>"
}

Generate signed path

Returns a signed URL for the storage path you provide.

Query parameters

path
string
required
Storage key to sign, such as ai-talking-videos/{projectId}/outputs/{file}.mp4.

Example request

curl -G "https://api.techforgeinnovate.com/storage/generate-signed-path" \
  -H "x-api-key: $TFI_API_KEY" \
  --data-urlencode "path=ai-talking-videos/468ea7a0-66e1-4357-a760-236e54167f3e/outputs/15a6331b-3837-4ae8-8fa7-d3ead3388d77.mp4"

Responses

signedUrl
string
required
Signed URL for downloading the file.
error
string
Returned when the path query parameter is omitted.
Example success response:
{
  "signedUrl": "https://cdn.techforgeinnovate.com/..."
}
Example validation response:
{
  "error": "Path query parameter is required"
}

Status codes

  • 200 OK when the path is provided
  • 401 Unauthorized when the key is missing or invalid

Notes

  • Generate the URL from the storage path returned by your job output.
  • The current controller does not return an explicit expiration timestamp.