---
title: "Get Repository Microagent Content"
method: GET
path: "/api/user/repository/{repository_name}/microagents/content"
---

# Get Repository Microagent Content

`GET /api/user/repository/{repository_name}/microagents/content`

Fetch the content of a specific microagent file from a repository.

## Path parameters

- `repository_name` string, required

## Query parameters

- `file_path` string, required — Path to the microagent file within the repository

## Response `200`

Successful Response

- MicroagentContentResponse — Response model for individual microagent content endpoint.
  - `content` string, required
  - `path` string, required
  - `triggers` string[]
  - `git_provider` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/all-hands/apis/openhands.md) · [All operations](https://skmtc.dev/all-hands/apis/openhands/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/all-hands/openhands/revisions/4daa2bb4dbf1/schema)
