---
title: "Get an agent by ID"
method: GET
path: "/agent-project-service/agents/{agentId}"
tags: ["Agent Project Service"]
---

# Get an agent by ID

`GET /agent-project-service/agents/{agentId}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/agent-project-service/agents/{agentId}`
- Auth: none declared

Returns a single Agent Definition by its _id within a FlowAI Project. Only returns if the current user has read access to the project.

## Path parameters

- `agentId` string, uuid, required

## Response `200`

The Agent Definition

- AgentProjectServiceGetAgentResponse200
  - `message` string, required
  - `data` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaData, required
    - `_id` string, uuid, required
    - `name` string, required
    - `description` string, required
    - `instructions` string, required
    - `inputSchema` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataInputSchema, required
    - `created` string, date-time, required
    - `createdBy` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataCreatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `lastUpdated` string, date-time, required
    - `lastUpdatedBy` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataLastUpdatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `operators` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataOperatorsItems[], required
      - `_id` string, required
      - `name` string, required
      - `provenance` string, required
    - `namespace` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataNamespace, required
      - `type` 'flowai_project', required
      - `_id` string, uuid, required
      - `name` string, required
    - `authorized` boolean, required
    - `provider` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataProvider
      - `profile` string, uuid, required
      - `model` string, uuid, required
      - `lastKnownProfileName` string, required
      - `lastKnownModelName` string, required
    - `tools` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataToolsItems[], required
      - union
        - AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataToolsItems0
          - `referenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
        - AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataToolsItems1
          - `unauthorizedReferenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
    - `skills` AgentProjectServiceAgentsAgentIdGetResponsesContentApplicationJsonSchemaDataSkillsItems[], required
      - `skillId` string, required
      - `version` integer, required
      - `latest` boolean, required
      - `lastKnownName` string, required

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Agent Project Service` added
  - api tag `agentProjectService` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/agent-project-service/agents/:agentId/get.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
