curl -X PUT -d '{"file_name": "test.pdf", "file_size": 1024}' -H "Content-Type: application/json" https://api.getguru.ai/automations/files
{
"file_id" : "123456789" ,
"url" : "https://guru-automations-documents.s3.amazonaws.com/" ,
"fields" : {
"AWSAccessKeyId" : "access-key-value" ,
"key" : "123456789.pdf" ,
"policy" : "policy-value" ,
"signature" : "signature-value" ,
"x-amz-security-token" : "security-token-value"
} ,
"extension" : "pdf"
}
This endpoint tells Guru the details of a file you wish to pass as input to an Automation.
Its response will tell the caller where they can upload the file to make it accessible
to the Guru platform.
Request
The name of the file, including extension.
The size of the file, in bytes.
Response
A unique identifier for the file.
You will pass the ID to a subsequent call to invoke the Automation.
The URL to which the file should be uploaded in the next step.
A key-value map of parameters which need to be passed when the file is uploaded,
in order to authenticate the call.
The identified extension of the file.
curl -X PUT -d '{"file_name": "test.pdf", "file_size": 1024}' -H "Content-Type: application/json" https://api.getguru.ai/automations/files
{
"file_id" : "123456789" ,
"url" : "https://guru-automations-documents.s3.amazonaws.com/" ,
"fields" : {
"AWSAccessKeyId" : "access-key-value" ,
"key" : "123456789.pdf" ,
"policy" : "policy-value" ,
"signature" : "signature-value" ,
"x-amz-security-token" : "security-token-value"
} ,
"extension" : "pdf"
}