Introduction

The FTP/sFTP Flow was built based on next feedback:

<aside> 💡 Jusqu’à présent nous utilisions l’intégration passive via l’approche suivante :

Ce serait l’intégration « idéale », en tout cas la moins couteuse pour nous en termes de temps.

</aside>

The flow consists of:

  1. API Key for authentions
  2. Registration endpoint
  3. Inbound FTP/sFTP watcher
  4. Classification
  5. Outbound FTP/sFTP to send highlighted videos
  6. Endpoint to fetch highlighted videos
  7. Endpoint to delete all videos and results from the system

API Key

The API Key can be found in the Integrations section of the website. Use it as bearer authentication.

curl -H "Content-Type: application/json" -H "Authorization: Bearer <API_KEY>" <https://vision.gaard.ai/version>

Registration endpoint

To preregister a video for classification, you can send a POST request with JSON.

POST <https://vision.gaard.ai/v1/integrations/sftp/classify>
{
  "videoname": "video.mp4",
  "metadata": {
    "analyse_id": 1254448,
    "client_id": 134188,
    "no_trans": "20818",
    "parc_origine": "XX",
    "code_msg": "VI08"
  }
}

<aside> đź’ˇ Important! The term "videoname" should be the name of the video file you will send to FTP/SFTP.

</aside>

FTP/SFTP