---
title: "Get an Agent."
method: GET
path: "/v1/agents/{id}"
tags: ["agents"]
---

# Get an Agent.

`GET /v1/agents/{id}`

Retrieve a specific Agent by its unique identifier.

## Path parameters

- `id` string, required

## Response `200`

Agent retrieved successfully.

- AgentView — An Agent represents a registered AI agent entity.
  - `id` string, required — The unique identifier of the Agent.
  - `name` string, required — The name of the Agent.
  - `version` string, nullable — Optional version identifier for the Agent. For npm/pip sources this is typically a semver string (e.g. '2.0.65'). For git sources it can be a branch or tag. Omitted for object sources or when not provided.
  - `create_time_ms` integer, required — The creation time of the Agent (Unix timestamp milliseconds).
  - `is_public` boolean, required — Whether the Agent is publicly accessible.
  - `source` AgentSource — Agent source configuration.
    - `type` string, required — Source type: npm, pip, object, or git
    - `npm` NpmSource — NPM-based agent source configuration.
      - `package_name` string, required — NPM package name
      - `registry_url` string, nullable — NPM registry URL
      - `agent_setup` string[], nullable — Setup commands to run after installation
    - `pip` PipSource — Pip-based agent source configuration.
      - `package_name` string, required — Pip package name
      - `registry_url` string, nullable — Pip registry URL
      - `agent_setup` string[], nullable — Setup commands to run after installation
    - `object` ObjectSource — Object store agent source configuration.
      - `object_id` string, required — Object ID
      - `agent_setup` string[], nullable — Setup commands to run after unpacking
    - `git` GitSource — Git-based agent source configuration.
      - `repository` string, required — Git repository URL
      - `ref` string, nullable — Optional Git ref (branch/tag/commit), defaults to main/HEAD
      - `agent_setup` string[], nullable — Setup commands to run after cloning

## Other responses

- `401` — Unauthorized. Invalid or missing authentication.
- `403` — Forbidden. Account does not have devbox capability.
- `404` — Agent not found.
- `500` — Internal server error.

## Changes

- **2026-05-27** `d3ddb452754c` — 2 breaking, 4 warning, 1 info
  - the `source` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `source/type` from the response with the `200` status
  - removed the optional property `source/git` from the response with the `200` status
  - removed the optional property `source/npm` from the response with the `200` status
  - …3 more
- **2026-05-13** `cd3a17e212ec` — 2 breaking
  - the response property `version` became nullable for the status `200`
  - the response property `version` became optional for the status `200`
- **2025-12-13** `370a5d676ff0` — 2 warning, 1 info
  - removed the optional property `source/npm/npm_version` from the response with the `200` status
  - removed the optional property `source/pip/pip_version` from the response with the `200` status
  - added the required property `version` to the response with the `200` status
- **2025-11-19** `5f33221208c1` — 1 breaking, 2 warning, 5 info
  - removed the required property `source/object/unpack_target` from the response with the `200` status
  - removed the optional property `source/git/auth_token` from the response with the `200` status
  - removed the optional property `source/git/subpath` from the response with the `200` status
  - added the optional property `source/git/agent_setup` to the response with the `200` status
  - …4 more

[Change history](https://skmtc.dev/runloopai/apis/runloop-api/changes/v1/agents/:id/get.md)

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/e9dc776053e4/schema)
