---
title: "Create a Link Between a Hive and an Agent"
method: POST
path: "/v1/hives/{hive_id}/ai-agents/{agent_id}/link"
tags: ["HiveAgentLink"]
---

# Create a Link Between a Hive and an Agent

`POST /v1/hives/{hive_id}/ai-agents/{agent_id}/link`

## Request

- Base URL: `https://api.trata.ai`
- URL: `https://api.trata.ai/v1/hives/{hive_id}/ai-agents/{agent_id}/link`
- Auth: HTTP bearer

Create a Link Between a Hive and an Agent

## Path parameters

- `hive_id` string, required: ID of the hive
- `agent_id` string, required: ID of the agent

## Response `200`

Link created successfully

- BaseResponse
  - `message` string, required: Address line 1

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tratahq/apis/trata-ai-api.md) - [All operations](https://skmtc.dev/tratahq/apis/trata-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tratahq/apis/trata-ai-api/revisions/8f7b69ee5a90?raw)
