---
title: "Run an agent with specified parameters"
method: POST
path: "/run-agent/{agent_id}"
---

# Run an agent with specified parameters

`POST /run-agent/{agent_id}`

## Request

- Base URL: `https://api.finic.ai`
- URL: `https://api.finic.ai/run-agent/{agent_id}`
- Auth: HTTP bearer

Creates a new session and starts execution of the specified agent

## Path parameters

- `agent_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `browser_id` string, required: The ID of the browser instance to use
  - `agent_input` object, required: Input parameters for the agent
  - `max_retries` integer: Maximum number of retry attempts

## Response `200`

Successfully started agent execution

- object
  - `session_id` string: The unique identifier for the created session

## Other responses

- `401`: Unauthorized - Invalid or missing authentication token
- `500`: Internal server error

## Changes

- **2024-10-30** `49ae4d076e01`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/finic/apis/finic-ai-api/changes/run-agent/:agent_id/post.md)

---

[API](https://skmtc.dev/finic/apis/finic-ai-api.md) - [All operations](https://skmtc.dev/finic/apis/finic-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/finic/apis/finic-ai-api/revisions/49ae4d076e01?raw)
