# Surefire

## Overview

Surefire's Uploader API enables the automated upload of Loan Files & Loan Data to Surefire.

## Authentication

When using the Surefire connector, the first thing you will have to do is click on 'New Authentication' in the step editor:
![add-auth](https://tray.ai/documentation/images/connectors/service/surefire/b795d31f-550b03d3_../../../../../images/add-auth.png)
In order to create a new authentication two keys are required. An APIKey and a ClientKey. Instructions on how to create an API key and Client Key for your account can be found here: `https://surefirehelp.zendesk.com/hc/en-us/articles/115009241247-Upload-Data-via-API`.
You can then enter your Surefire credentials to link to your account:
![Surefire auth](https://tray.ai/documentation/images/connectors/service/surefire/b795d31f-061a2b0d_auth-surefire.png)

## Note on Operations usage

The maximum file size that can be uploaded using the Upload file operation is 990MB.

## Example Usage - Upload a file to your Surefire account using the File helper connector

This short example will demonstrate the **Upload file** operation.

1. Create a file object using the File Helper connector. *Note- A file object can also be created by other connectors available at Tray.io*
2. Upload the file to the Surefire account.
   ![Complete workflow](https://tray.ai/documentation/images/connectors/service/surefire/b795d31f-a6258ff8_complete-surefire.png)

## 1 - Create a file object

A new file object is created here using an URL.
![Create a file](https://tray.ai/documentation/images/connectors/service/surefire/b795d31f-f4d7bcca_create-file-surefire.png)

## 2 - Upload a file

File object is inputted to the "Upload file" operation of the Surefire connector using the json path ready to be uploaded to the Surefire account.
![Add a file](https://tray.ai/documentation/images/connectors/service/surefire/b795d31f-5d89c5fb_input-file-surefire.png)
