---
title: "Invite the agent into a team chat: with conversation_id it joins that conversation's roster (RFC-0151); without, returns the Slack install URL [write]"
method: POST
path: "/agents/{id}/invite"
---

# Invite the agent into a team chat: with conversation_id it joins that conversation's roster (RFC-0151); without, returns the Slack install URL \[write\]

`POST /agents/{id}/invite`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/agents/{id}/invite`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `conversation_id` string: Channel conversation id, e.g. slack:C0123:1712345678.000100

## Response `200`

OK

- object
  - `session_id` string
  - `agent_ref` string
  - `agent_type` string
  - `install_url` string

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/agents/:id/invite/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
