Create Classify Job
POST/api/v1/classifier/jobs
Create a classify job. Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Query Parameters
organization_id: optional string
project_id: optional string
Cookie Parameters
session: optional string
Body Parameters
Returns
Create Classify Job
curl https://api.cloud.llamaindex.ai/api/v1/classifier/jobs \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
-d '{
"file_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
],
"rules": [
{
"description": "contains invoice number, line items, and total amount",
"type": "invoice"
}
]
}'{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"rules": [
{
"description": "contains invoice number, line items, and total amount",
"type": "invoice"
}
],
"status": "PENDING",
"user_id": "user_id",
"created_at": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"job_record_id": "job_record_id",
"mode": "FAST",
"parsing_configuration": {
"lang": "af",
"max_pages": 0,
"target_pages": [
0
]
},
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"rules": [
{
"description": "contains invoice number, line items, and total amount",
"type": "invoice"
}
],
"status": "PENDING",
"user_id": "user_id",
"created_at": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"job_record_id": "job_record_id",
"mode": "FAST",
"parsing_configuration": {
"lang": "af",
"max_pages": 0,
"target_pages": [
0
]
},
"updated_at": "2019-12-27T18:11:19.117Z"
}