DeepFellow DOCS

Get the status of a graph ingestion job

GET
/v1/graph/ingestion_jobs/{job_id}

Get the status of a background graph-ingestion job.

Authorization

headerAuthorizationBearer <token>

Path Parameters

job_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Response Body

Successful Response

application/json
  1. response

API-facing view of a graph-ingestion job.

id*string
file_id*string
status*GraphIngestionStatus

Status of a background graph-ingestion job.

PENDING is not set by current code (jobs are created IN_PROGRESS); it is kept so previously stored jobs still validate, and is resumable like FAILED.

Value in"pending""in_progress""completed""failed"
document_count*integer
document_counts*

How many of a job's documents are in each status.

documents*array<>
last_error?string|null
stale?boolean

Whether the job is in_progress but has had no update for graph.ingestion_stale_after_seconds, so it can be resumed or removed.

Defaultfalse
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://deepfellow-server-host/v1/graph/ingestion_jobs/5eb7cf5a86d9755df3a6c593'
Example Response
{  "id": "string",  "file_id": "string",  "status": "pending",  "document_count": 0,  "document_counts": {    "pending": 0,    "in_progress": 0,    "completed": 0,    "failed": 0,    "removed": 0  },  "documents": [    {      "index": 0,      "name": "string",      "content": "string",      "source": "message",      "source_description": "string",      "status": "pending",      "document_id": "string",      "error": "string",      "warnings": [        "string"      ]    }  ],  "last_error": "string",  "stale": false,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.