cURL
curl --request POST \ --url https://api.orion.file.ai/prod/v1/files/preview \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "s3Path": "s3://orion.com/649e2d2d2d2d2d2d2d2d2d2d" }'
{ "signedUrl": "https://s3.amazonaws.com/bucket/upload/file.txt?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Signature=1%2F6%2BN7Z6h%2F7oV7Z6i%2F9oV7Z4%3D&Expires=3600" }
Create a file preview using a S3 Path.
The input should contain the following information:
s3Path
API key for authentication
The signed URL for the file preview is retrieved
The response is of type object.
object