H’s Agent Platform API lets you create, manage, and observe agent trajectories. Trajectories are automated agent runs that pursue a defined objective by interacting with the web. An objective can be anything from gathering data, to automating processes, to navigating a website, and more. The Agent Platform API, however, does more than just execute pre-set tasks. It lets you launch agents, see how they act, and adapt based on your own input while they’re running.

What you can do with the Agent Platform API

You can use our endpoints to perform the following actions:
  • Create trajectories: Start a new run by defining an agent and an objective.
  • Monitor progress: Retrieve a trajectory’s current status, events, and changes in real time.
  • Interact with agents: Send messages, commands, or simulated user actions.
  • Access resources: Fetch data and artifacts generated during a run.
  • Manage agents: List available agents and their identifiers.
  • Submit feedback: Report bugs, issues, or suggestions directly from your integration.

Key concepts

This section covers the main concepts and objects that shape how the Agent Platform API works:
ConceptDescription
TrajectoryThe lifecycle of an agent pursuing an objective. Trajectories move through statuses such as pending, running, completed, or failed.
AgentA worker capable of executing a trajectory.
ObjectiveThe goal or task you assign to an agent, for example, “find the most highly rated hotels in Paris” or “create a list of meeting objectives.”
InteractionUser inputs that can influence a running trajectory, including messages, commands, and browser-like actions.
EventsLogs of what happened during a trajectory, including agent actions and state changes.

Use cases

This section provides a few of the many potential use cases the Agent Platform API can fulfill:
Use CaseDescription
Workflow automationAutomate web actions, like navigating pages, filling forms, or clicking buttons.
Data collectionGather structured information from web pages or resources in a trajectory.
Process monitoringTrack the progress and status of automated tasks in real time.
Interactive simulationsSimulate user interactions with web applications for testing or experimentation.
Event-driven triggersView trajectory events, such as errors, completions, or specific agent actions.

Get started

Follow these steps to start using the Agent Platform API:
1

Generate an API Key

Log into PortalH or see our Authentication guide to create your API key.
2

Create a trajectory

Define a task for an agent by specifying an objective and any relevant parameters such as agent type, visibility, or timeout. Submit this to start the trajectory.
3

Monitor the trajectory

Track the status of your trajectory, check for updates or view events such as ChatMessageEvent or AgentStartedEvent to see what your agent does during a run.
4

Modify the trajectory (Optional)

Send messages, commands, or execute actions to influence a running trajectory.
5

Retrieve outputs or resources

Once the trajectory completes, fetch any generated resources or results. This could include logs, files, or other outputs captured during the run.