---
title: "Create an agent in a FlowAI project"
method: POST
path: "/agent-project-service/projects/{projId}/agents"
tags: ["Agent Project Service"]
---

# Create an agent in a FlowAI project

`POST /agent-project-service/projects/{projId}/agents`

## Request

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

Creates an Agent as a member of a FlowAI Project. Requires editor or owner GBAC role on the project.

## Path parameters

- `projId` union, required
  - string, uuid
  - string

## Request body

- object
  - `name` string
  - `description` string
  - `instructions` string
  - `inputSchema` AgentProjectServiceProjectsProjIdAgentsPostRequestBodyContentApplicationJsonSchemaInputSchema
    - `type` unknown, required
    - `additionalProperties` unknown, required
    - `required` string[], required
    - `properties` object, required
  - `provider` AgentProjectServiceProjectsProjIdAgentsPostRequestBodyContentApplicationJsonSchemaProvider
    - `profile` string, uuid, required
    - `model` string, uuid, required
  - `tools` AgentProjectServiceProjectsProjIdAgentsPostRequestBodyContentApplicationJsonSchemaToolsItems[]
    - `referenceId` string, required
    - `decoratorId` string
    - `lastKnownName` string
  - `operators` string[]
  - `skills` AgentProjectServiceProjectsProjIdAgentsPostRequestBodyContentApplicationJsonSchemaSkillsItems[]
    - `skillId` string, required
    - `version` integer, required
    - `latest` boolean

## Response `200`

The created Agent Definition

- AgentProjectServiceCreateAgentResponse200
  - `message` string, required
  - `data` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaData, required
    - `_id` string, uuid, required
    - `name` string, required
    - `description` string, required
    - `instructions` string, required
    - `inputSchema` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataInputSchema, required
    - `created` string, date-time, required
    - `createdBy` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataCreatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `lastUpdated` string, date-time, required
    - `lastUpdatedBy` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataLastUpdatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `operators` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataOperatorsItems[], required
      - `_id` string, required
      - `name` string, required
      - `provenance` string, required
    - `namespace` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataNamespace, required
      - `type` 'flowai_project', required
      - `_id` string, uuid, required
      - `name` string, required
    - `authorized` boolean, required
    - `provider` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataProvider
      - `profile` string, uuid, required
      - `model` string, uuid, required
      - `lastKnownProfileName` string, required
      - `lastKnownModelName` string, required
    - `tools` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataToolsItems[], required
      - union
        - AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataToolsItems0
          - `referenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
        - AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataToolsItems1
          - `unauthorizedReferenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
    - `skills` AgentProjectServiceProjectsProjIdAgentsPostResponsesContentApplicationJsonSchemaDataSkillsItems[], 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/projects/:projId/agents/post.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)
