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

# Get Repository Microagents

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

Scan the microagents directory of a repository and return the list of microagents.

The microagents directory location depends on the git provider and actual repository name:
- If git provider is not GitLab and actual repository name is ".openhands": scans "microagents" folder
- If git provider is GitLab and actual repository name is "openhands-config": scans "microagents" folder
- Otherwise: scans ".openhands/microagents" folder

## Path parameters

- `repository_name` string, required

## Response `200`

Successful Response

- MicroagentResponse[]
  - `name` string, required
  - `path` string, required
  - `created_at` string, date-time, required

## 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)
