## Get Split Job

`SplitGetResponse split().get(SplitGetParamsparams = SplitGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())`

**get** `/api/v1/split/jobs/{split_job_id}`

Get a document split job.

### Parameters

- `SplitGetParams params`

  - `Optional<String> splitJobId`

  - `Optional<String> organizationId`

  - `Optional<String> projectId`

### Returns

- `class SplitGetResponse:`

  A split job.

  - `String id`

    Unique identifier for the split job.

  - `List<SplitCategory> categories`

    Categories used for splitting.

    - `String name`

      Name of the category.

    - `Optional<String> description`

      Optional description of what content belongs in this category.

  - `DocumentInputType documentInputType`

    Whether the input was a file or parse job

    - `FILE_ID("file_id")`

    - `PARSE_JOB_ID("parse_job_id")`

    - `URL("url")`

  - `String fileInput`

    File ID or parse job ID

  - `String projectId`

    Project this job belongs to.

  - `String status`

    Current job status. Valid values are: pending, processing, completed, failed, cancelled.

  - `String userId`

    User who created this job.

  - `Optional<String> configurationId`

    Split configuration ID used for this job.

  - `Optional<LocalDateTime> createdAt`

    Creation datetime

  - `Optional<String> errorMessage`

    Error message if the job failed.

  - `Optional<SplitResultResponse> result`

    Result of a completed split job.

    - `List<SplitSegmentResponse> segments`

      List of document segments.

      - `String category`

        Category name this split belongs to.

      - `String confidenceCategory`

        Categorical confidence level. Valid values are: high, medium, low.

      - `List<long> pages`

        1-indexed page numbers in this split.

  - `Optional<SplittingStrategy> splittingStrategy`

    Strategy used for splitting.

    - `Optional<AllowUncategorized> allowUncategorized`

      Controls handling of pages that don't match any category. 'include': pages can be grouped as 'uncategorized' and included in results. 'forbid': all pages must be assigned to a defined category. 'omit': pages can be classified as 'uncategorized' but are excluded from results.

      - `FORBID("forbid")`

      - `INCLUDE("include")`

      - `OMIT("omit")`

    - `Optional<String> customInstructions`

      Free-form guidance for where segment boundaries are placed.

    - `Optional<Long> minPagesPerSplit`

      Minimum pages per segment. Shorter segments are merged into an adjacent segment; 1 disables merging.

  - `Optional<String> transactionId`

    Idempotency key scoped to the project, if one was provided.

  - `Optional<LocalDateTime> updatedAt`

    Update datetime

### Example

```java
package ai.llamaindex.llamacloud.example;

import ai.llamaindex.llamacloud.client.LlamaCloudClient;
import ai.llamaindex.llamacloud.client.okhttp.LlamaCloudOkHttpClient;
import ai.llamaindex.llamacloud.models.split.SplitGetParams;
import ai.llamaindex.llamacloud.models.split.SplitGetResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        SplitGetResponse split = client.split().get("split_job_id");
    }
}
```

#### Response

```json
{
  "id": "id",
  "categories": [
    {
      "name": "x",
      "description": "x"
    }
  ],
  "document_input_type": "file_id",
  "file_input": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
  "project_id": "project_id",
  "status": "status",
  "user_id": "user_id",
  "configuration_id": "configuration_id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "error_message": "error_message",
  "result": {
    "segments": [
      {
        "category": "category",
        "confidence_category": "confidence_category",
        "pages": [
          0
        ]
      }
    ]
  },
  "splitting_strategy": {
    "allow_uncategorized": "forbid",
    "custom_instructions": "Start a new segment at every signature page.",
    "min_pages_per_split": 1
  },
  "transaction_id": "transaction_id",
  "updated_at": "2019-12-27T18:11:19.117Z"
}
```
