Skip to main content
POST
/
v1
/
process
/
knowledges
/
urlStorage
curl --location 'https://api.sarasfinance.com/v1/process/knowledges/urlStorage' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "subProjectId": "93d599a6-a396-4ef6-b30e-aff95c56c523",
    "processId": "ef341826-1cab-4680-aa52-efd001f9da00",
    "fileId": "file_cf90172b"
}'
{
  "urls": [
    {
      "fileId": "file_cf90172b",
      "url": "https://gf-saras-storage.s3.amazonaws.com/uploads/litigation_brief.txt?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1442431600&Signature=vjbyPxybdZaNmGaEXAMPLE="
    }
  ]
}

Body Parameters

subProjectId
string
required
The unique identifier for the sub-project.
processId
string
required
The unique identifier for the process associated with the file.
fileId
string
required
The unique ID of the file to download.

Response

urls
object[]
curl --location 'https://api.sarasfinance.com/v1/process/knowledges/urlStorage' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "subProjectId": "93d599a6-a396-4ef6-b30e-aff95c56c523",
    "processId": "ef341826-1cab-4680-aa52-efd001f9da00",
    "fileId": "file_cf90172b"
}'
{
  "urls": [
    {
      "fileId": "file_cf90172b",
      "url": "https://gf-saras-storage.s3.amazonaws.com/uploads/litigation_brief.txt?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1442431600&Signature=vjbyPxybdZaNmGaEXAMPLE="
    }
  ]
}

Error Codes

CodeIDDescription
ERROR_PROCESS_META_IS_MISSING_IN_REQUEST1200Metadata missing in request
ERROR_SUBPROCESS_META_NOT_FOUND1202Sub-project metadata not found
ERROR_FILE_ID_NOT_FOUND1704File ID does not exist
ERROR_STORAGE_PRESIGN_FAILED1709Presigned download URL generation failed