# Nightfall AI integrations: scans and file uploads

> Upload a file chunk and update a policy user scope in Nightfall AI, and start a workflow when Nightfall AI sends “File scan results ready”.

**Canonical page:** https://tray.ai/connectors/nightfall-ai-integrations/
**Categories:** Security and compliance
**Connects through:** HTTP Connector

## Overview

Nightfall AI is a data loss prevention platform that finds sensitive data such as secrets, credit card numbers and health records in text, files and SaaS apps. Tray.ai connects to Nightfall AI through the HTTP Connector, so your workflows can call the Nightfall AI API alongside the rest of your stack.

## Use cases

### Scans

Work with scans in Nightfall AI from any Tray.ai workflow. The Nightfall AI API covers calls such as scan plain text and scan an uploaded file.

- Scan plain text
- Scan an uploaded file

### File uploads

Create file uploads in Nightfall AI from any Tray.ai workflow. The Nightfall AI API covers calls such as initiate a file upload and upload a file chunk.

- Initiate a file upload
- Upload a file chunk
- Complete a file upload

### Violations

Read violations in Nightfall AI from any Tray.ai workflow. The Nightfall AI API covers calls such as fetch violations and search violations.

- Fetch violations
- Search violations
- Fetch a violation

### Findings

Read and delete findings in Nightfall AI from any Tray.ai workflow. The Nightfall AI API covers calls such as fetch violation findings and annotate a finding.

- Fetch violation findings
- Annotate a finding
- Remove a finding annotation

### Policies

Update policies in Nightfall AI from any Tray.ai workflow. The Nightfall AI API covers calls such as update a policy user scope and update a policy domain scope.

- Update a policy user scope
- Update a policy domain scope

### Nightfall AI events

Start a Tray.ai workflow the moment something happens in Nightfall AI. Nightfall AI sends events such as file scan results ready and text scan findings detected to a Tray.ai webhook trigger.

- File scan results ready
- Text scan findings detected

## Challenges Tray.ai solves

### Keeping Nightfall AI credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Nightfall AI credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Nightfall AI API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Nightfall AI API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Nightfall AI?

Yes. Tray.ai connects to Nightfall AI through the HTTP Connector, which calls the Nightfall AI API directly. Any call the Nightfall AI API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Nightfall AI?

The Nightfall AI API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Nightfall AI connector?

Nightfall AI runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Nightfall AI connector from the Nightfall AI API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
