---
title: "Add Agent To Organization"
method: POST
path: "/agent/add-agent-to-organization"
tags: ["Agent User"]
---

# Add Agent To Organization

`POST /agent/add-agent-to-organization`

## Request

- Base URL: `https://api.dante-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dante-ai.com/agent/add-agent-to-organization`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/jwt/login`
- TypeScript: <https://skmtc.dev/dante-ai/apis/dante-ai-api/docs/agent/add-agent-to-organization/post.ts> (a function with typed inputs; its response is checked against the schema)

Accept an invitation using the provided token.

## Query parameters

- `agent_email` string, required

## Response `200`

Successful Response

- AgentInvitation
  - `id` string, uuid
  - `date_created` string, date-time
  - `date_updated` string, date-time
  - `invited_by_user_id` string, uuid: The ID of the user who invited the agent.
  - `name` string: The name of the invited agent.
  - `email` string: The email address of the invited agent.
  - `permission` string: The permissions granted to the invited agent.
  - `knowledge_base` string: The UUID references of the knowledge bases associated with the agent, separated by semicolon.
  - `invitation_token` string, uuid: The token associated with the invitation.
  - `accepted` boolean: Indicates if the invitation has been accepted.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dante-ai/apis/dante-ai-api.md) - [All operations](https://skmtc.dev/dante-ai/apis/dante-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dante-ai/apis/dante-ai-api/revisions/38b6c9a4246d?raw)
