Batches
Create Batch
client.batches.create(BatchCreateParams { requests, callback_url } body, RequestOptionsoptions?): BatchJob { id, agent_id, background, 15 more }
/v1/messages/batches
List Batches
client.batches.list(BatchListParams { after, before, limit, 2 more } query?, RequestOptionsoptions?): ArrayPage<BatchJob { id, agent_id, background, 15 more } >
/v1/messages/batches
Retrieve Batch
client.batches.retrieve(stringbatchID, RequestOptionsoptions?): BatchJob { id, agent_id, background, 15 more }
/v1/messages/batches/{batch_id}
Cancel Batch
client.batches.cancel(stringbatchID, RequestOptionsoptions?): BatchCancelResponse
/v1/messages/batches/{batch_id}/cancel
Models
BatchesMessages
List Messages For Batch
client.batches.messages.list(stringbatchID, MessageListParams { after, agent_id, before, 3 more } query?, RequestOptionsoptions?): ObjectPage<Message { id, role, agent_id, 21 more } >
/v1/messages/batches/{batch_id}/messages