For the complete documentation index, see llms.txt. This page is also available as Markdown.

get_batches

imerit_ango.sdk.SDK.

get_batches(project_id)

Get all batches from your project.

Parameters

  • project_id: string

Returns:

  • output: List[dict]

    • A list of dictionaries, each containing the batch’s name and unique identifier.

Example:

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

batches = ango_sdk.get_batches(project_id=project_id)
curl -s -X GET "https://imeritapi.ango.ai/v2/project/$PROJECT_ID" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY" \
  | jq '.data.project.batches'
Sample Output

Last updated