GPTMaker icon

GPTMaker

Consume GPTMaker API

Training → Get Many

AI-generated

Summary

List trainings for a selected agent, optionally filtered and paginated.

Inputs

  • agentId (required) — Agent identifier or name; required to scope the request.
  • type (required) — Training type filter; must be one of TEXT, WEBSITE, VIDEO, DOCUMENT.
  • query — Optional free‑text filter applied to training titles or content.
  • page — Page number (0‑based); use 0 to omit pagination.
  • pageSize — Number of items per page; use 0 to omit pagination.

Output shape

a paginated collection of training records

If page or pageSize are set, only the requested slice is returned; otherwise the full list is returned. Fields vary by training type (TEXT, WEBSITE, VIDEO, DOCUMENT).

Examples

Example 1: List all TEXT trainings for an agent, first page, 10 items per page

Select agent, set Type to TEXT, leave Query empty, Page 0, Page Size 10

Example 2: Search for trainings containing the word "marketing" across all types

Select agent, optionally set Query to "marketing", leave Type unchanged, Page 0, Page Size 5

Example 3: Paginate through website trainings, second page, 20 per page

Select agent, set Type to WEBSITE, set Query to "", Page 1, Page Size 20

Links

Discussion