---
updatedAt: 2026-09-09T20:53:51.000Z
agentTools:
  projectIndex: https://authenticx.readme.io/llms.txt
---

# Create Agent

Adds an agent to your organization.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "AcxApi Experimental",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.authcx.com",
      "description": "AcxApi Experimental Server"
    }
  ],
  "paths": {
    "/Agent": {
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Create Agent",
        "description": "Adds an agent to your organization.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AcxApi.Models.Agent.CreateAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the newly created agent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcxApi.Models.Agent.AgentResponseModel"
                }
              }
            }
          },
          "400": {
            "description": "A user id was provided but did not correspond to an existing, active, user in your organization"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AcxApi.Models.Agent.AgentResponseModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The agent's unique ID",
            "format": "uuid",
            "readOnly": true
          },
          "userId": {
            "type": "string",
            "description": "The platform User ID linked to this agent, if any",
            "nullable": true,
            "readOnly": true,
            "example": "8f02de21-2d25-4a96-8973-7eb8ec9b6c1a"
          },
          "firstName": {
            "type": "string",
            "description": "The first name of this agent",
            "nullable": true,
            "example": "John"
          },
          "firstInitial": {
            "type": "string",
            "description": "The first initial of this agent",
            "nullable": true,
            "readOnly": true,
            "example": "J"
          },
          "lastName": {
            "type": "string",
            "description": "The last name of this agent",
            "nullable": true,
            "example": "Doe"
          },
          "agentEmail": {
            "type": "string",
            "description": "The email of this agent",
            "nullable": true,
            "example": "john.doe@organization.com"
          },
          "agentCode": {
            "type": "string",
            "description": "Your organization's internal code for this agent. Used as AgentCode when uploading interactions to match an agent by code rather than name",
            "nullable": true,
            "example": "007"
          },
          "createdOn": {
            "type": "string",
            "description": "The date this agent was created",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "modifiedOn": {
            "type": "string",
            "description": "The date this agent was last modified",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "isActive": {
            "type": "boolean",
            "description": "A value that is either \"true\" or \"false\" that indicates whether this agent is active",
            "nullable": true,
            "example": true
          },
          "managerId": {
            "type": "string",
            "description": "The ID of this agent's manager",
            "nullable": true,
            "example": "00000000-0000-0000-0000-00000000000"
          },
          "startDate": {
            "type": "string",
            "description": "The date this agent started employment",
            "format": "date-time",
            "nullable": true,
            "example": "2000-10-01T17:42:14.63798"
          }
        },
        "additionalProperties": false
      },
      "AcxApi.Models.Agent.CreateAgentRequest": {
        "required": [
          "agentEmail",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "minLength": 1,
            "type": "string",
            "description": "The first name of the new agent you intend to add",
            "example": "John"
          },
          "lastName": {
            "minLength": 1,
            "type": "string",
            "description": "The last name of the new agent you intend to add",
            "example": "Doe"
          },
          "agentEmail": {
            "minLength": 1,
            "type": "string",
            "description": "The email of the new agent you intend to add",
            "example": "john.doe@organization.com"
          },
          "agentCode": {
            "type": "string",
            "description": "Your organization's internal identifier for this agent. Used to match agents when uploading interactions",
            "nullable": true,
            "example": "007"
          },
          "osms": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "List of hierarchy node Id values (UUIDs) to assign this agent to. The agent is also automatically assigned to all nodes in each assigned node's parent chain",
            "nullable": true,
            "example": [
              "00000000-0000-0000-0000-000000000000",
              "00000000-0000-0000-0000-000000000001"
            ]
          },
          "userId": {
            "type": "string",
            "description": "The Id of a platform user to link to this agent. Must be an active user in your organization",
            "nullable": true,
            "example": "00000000-0000-0000-0000-00000000000"
          },
          "managerId": {
            "type": "string",
            "description": "The ID of this agent's manager",
            "nullable": true,
            "example": "00000000-0000-0000-0000-00000000000"
          },
          "startDate": {
            "type": "string",
            "description": "The date this agent started employment",
            "nullable": true,
            "example": "2000-10-01T17:42:14.63798"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "security": [
    {}
  ],
  "tags": [
    {
      "name": "Agent"
    }
  ]
}
```