## Get Classify Job `ClassifyGetResponse classify().get(ClassifyGetParamsparams = ClassifyGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())` **get** `/api/v2/classify/{job_id}` Get a classify job by ID. Returns the job status, configuration, and classify result when complete. The result includes the matched document type, confidence score, and reasoning. ### Parameters - `ClassifyGetParams params` - `Optional jobId` - `Optional organizationId` - `Optional projectId` ### Returns - `class ClassifyGetResponse:` Response for a classify job. - `String id` Unique identifier - `ClassifyConfiguration configuration` Classify configuration used for this job - `List rules` Classify rules to evaluate against the document (at least one required) - `String description` Natural language criteria for matching this rule - `String type` Document type to assign when rule matches - `Optional mode` Classify execution mode - `FAST("FAST")` - `Optional parsingConfiguration` Parsing configuration for classify jobs. - `Optional lang` ISO 639-1 language code for the document - `Optional maxPages` Maximum number of pages to process. Omit for no limit. - `Optional targetPages` Comma-separated page numbers or ranges to process (1-based). Omit to process all pages. - `DocumentInputType documentInputType` Whether the input was a file or parse job (FILE or PARSE_JOB) - `URL("url")` - `FILE_ID("file_id")` - `PARSE_JOB_ID("parse_job_id")` - `String fileInput` ID of the input file or parse job - `String projectId` Project this job belongs to - `Status status` Current job status: PENDING, RUNNING, COMPLETED, or FAILED - `PENDING("PENDING")` - `RUNNING("RUNNING")` - `COMPLETED("COMPLETED")` - `FAILED("FAILED")` - `String userId` User who created this job - `Optional configurationId` Product configuration ID - `Optional createdAt` Creation datetime - `Optional errorMessage` Error message if job failed - `Optional parseJobId` Associated parse job ID - `Optional result` Result of classifying a document. - `double confidence` Confidence score between 0.0 and 1.0 - `String reasoning` Why the document matched (or didn't match) the returned rule - `Optional type` Matched rule type, or null if no rule matched - `Optional transactionId` Idempotency key - `Optional updatedAt` Update datetime ### Example ```java package com.llamacloud_prod.api.example; import com.llamacloud_prod.api.client.LlamaCloudClient; import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient; import com.llamacloud_prod.api.models.classify.ClassifyGetParams; import com.llamacloud_prod.api.models.classify.ClassifyGetResponse; public final class Main { private Main() {} public static void main(String[] args) { LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv(); ClassifyGetResponse classify = client.classify().get("job_id"); } } ``` #### Response ```json { "id": "id", "configuration": { "rules": [ { "description": "contains invoice number, line items, and total amount", "type": "invoice" } ], "mode": "FAST", "parsing_configuration": { "lang": "en", "max_pages": 10, "target_pages": "1,3,5-7" } }, "document_input_type": "url", "file_input": "file_input", "project_id": "project_id", "status": "PENDING", "user_id": "user_id", "configuration_id": "configuration_id", "created_at": "2019-12-27T18:11:19.117Z", "error_message": "error_message", "parse_job_id": "parse_job_id", "result": { "confidence": 0, "reasoning": "reasoning", "type": "type" }, "transaction_id": "transaction_id", "updated_at": "2019-12-27T18:11:19.117Z" } ```