This API is part of a series of API calls you need to make to upload a file to our system.
Click here to see the APIs alongside code examples using cURL
  1. This API. It returns a URL (used in step #2) and the file's path (used in step #3): curl -H "Authorization: Bearer API_KEY" "{FILE_NAME}&type={CONTENT_TYPE}"
    curl -H "Authorization: Bearer API_KEY" ""
  2. Use the URL returned to upload the file directly to S3: curl -H "Content-Type: {CONTENT_TYPE}" --data-binary @'PATH/TO/YOUR/FILE' -X PUT "{S3_URL}"
    curl -H "Content-Type: text/csv" --data-binary @'~/Downloads/my_file.json' -X PUT "{S3_URL}"
  3. Look for the 'Store file information in DB' API or use the following code snippet: curl -d '{"path":"{FILE_PATH}","type":"{FILE_TYPE}"}' -H "Authorization: Bearer API_KEY" -H "Content-Type: application/json" ""
    curl -d '{"path":"1629889604893/my_file.json","type":"expenseReport"}' -H "Authorization: Bearer API_KEY" -H "Content-Type: application/json" ""
Click Try It! to start a request and see the response here!