Skip to main content
POST
/
v1
/
flow
/
data-jobs
/
{data_job_id}
/
add-files
Add files to data job
curl --request POST \
  --url https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_ids": [
    "<string>"
  ],
  "method": "best"
}
'
import requests

url = "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files"

payload = {
"file_ids": ["<string>"],
"method": "best"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_ids: ['<string>'], method: 'best'})
};

fetch('https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_ids' => [
'<string>'
],
'method' => 'best'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files"

payload := strings.NewReader("{\n \"file_ids\": [\n \"<string>\"\n ],\n \"method\": \"best\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_ids\": [\n \"<string>\"\n ],\n \"method\": \"best\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://flow.seekr.com/v1/flow/data-jobs/{data_job_id}/add-files")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_ids\": [\n \"<string>\"\n ],\n \"method\": \"best\"\n}"

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "user_id": "<string>",
  "name": "<string>",
  "job_type": "<string>",
  "alignment_job_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "origin_data_job_id": "<string>",
  "status_message": "<string>",
  "system_prompt": "<string>",
  "system_prompt_updated_at": "2023-11-07T05:31:56Z",
  "instructions": "<string>",
  "instructions_updated_at": "2023-11-07T05:31:56Z",
  "resolved_instructions": "<string>",
  "vector_database_id": "<string>",
  "additional_alignment_file_ids": [
    "<string>"
  ],
  "ingestion_jobs": [
    {
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "file_ids": [
        "<string>"
      ],
      "records": [
        {
          "record_id": "<string>",
          "ingestion_job_id": "<string>",
          "alignment_file_id": "<string>",
          "user_id": "<string>",
          "filename": "<string>",
          "status": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "metaflow_job_id": "<string>",
          "method": "<string>",
          "queue_position": 123,
          "error_message": "<string>",
          "suggested_fix": "<string>",
          "worker_id": "<string>",
          "deleted": false,
          "processing_at": "2023-11-07T05:31:56Z",
          "completed_at": "2023-11-07T05:31:56Z",
          "failed_at": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ],
  "alignment_job": {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "stopped_at": "2023-11-07T05:31:56Z",
    "current_step": "<string>",
    "step_progress": 123,
    "progress": 123,
    "estimated_completion_at": "2023-11-07T05:31:56Z",
    "eta_minutes": 123,
    "status_message": "<string>"
  },
  "files": [
    {
      "file_id": "<string>",
      "record_id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "status": "<string>",
      "suggested_fix": "<string>",
      "bytes": 123
    }
  ],
  "fine_tuning_job_ids": [
    "<string>"
  ],
  "timeline": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "event_type": "<string>",
      "message": "<string>",
      "metadata": {}
    }
  ]
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
Attach one or more uploaded file IDs to a data job. For non-Markdown files (PDF, DOCX, PPT), ingestion starts automatically — no separate ingestion call is needed. Markdown files bypass ingestion and are alignment-ready immediately. The job status moves to file_processing while ingestion runs, then transitions to needs_review or ready_to_start once complete. For status states and per-file tracking, see Monitor ingestion.

Authorizations

Authorization
string
header
required

Your Seekr API key, sent in the Authorization header with no 'Bearer' prefix.

Path Parameters

data_job_id
string
required

Body

application/json
file_ids
string[]
required

Files to associate with the data job

Minimum array length: 1
method
string | null
default:best

Ingestion method used for non-alignment-ready files

Response

Successful Response

Extends DataJobResponse Full detail payload for the per-job view.

id
string
required
user_id
string
required
name
string
required
job_type
string
required
alignment_job_id
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
status
required

Status values that exist BEFORE an alignment job is linked. Once linked, the real status comes from AlignmentJobStatus directly — see DataJobResponse.status's union type and derive_data_job_status.

Available options:
file_processing,
needs_review,
ready_to_start
origin_data_job_id
string | null
status_message
string | null
system_prompt
string | null
system_prompt_updated_at
string<date-time> | null
instructions
string | null
instructions_updated_at
string<date-time> | null
resolved_instructions
string | null
vector_database_id
string | null
additional_alignment_file_ids
string[]
ingestion_jobs
IngestionJobDetail · object[]
alignment_job
AlignmentResponse · object | null
files
DataJobFile · object[]
fine_tuning_job_ids
string[]
timeline
TimelineEvent · object[]
Last modified on June 18, 2026