List Classify Jobs
client.Classify.List(ctx, query) (*PaginatedCursor[ClassifyListResponse], error)
GET/api/v2/classify
List classify jobs with optional filtering and pagination.
Filter by status, configuration_id, specific job_ids,
or creation date range.
List Classify Jobs
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Classify.List(context.TODO(), llamacloudprod.ClassifyListParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"items": [
{
"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"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"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"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}