---
title: "Create a Link Between an Action and an Agent"
method: POST
path: "/v1/actions/{action_id}/ai-agents/{agent_id}/link"
tags: ["ActionAgentLink"]
---

# Create a Link Between an Action and an Agent

`POST /v1/actions/{action_id}/ai-agents/{agent_id}/link`

Create a Link Between an Action and an Agent

## Path parameters

- `action_id` string, required — ID of the action
- `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.net/tratahq/apis/trata-ai-api.md) · [All operations](https://skmtc.net/tratahq/apis/trata-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tratahq/trata-ai-api/revisions/8f7b69ee5a90/schema)
