---
title: "Bind a Matrix account to a workspace"
method: POST
path: "/api/workspaces/{id}/im/matrix/configure"
tags: ["IM Channels"]
---

# Bind a Matrix account to a workspace

`POST /api/workspaces/{id}/im/matrix/configure`

## Path parameters

- `id` string, required

## Request body

- IMMatrixConfigureRequest
  - `access_token` string, required
  - `homeserver_url` string, required
  - `recovery_key` string — optional, for E2EE

## Response `200`

OK

- IMMatrixConfigureResponse
  - `bot_id` string, required
  - `connected` boolean, required

## Other responses

- `400` — invalid credentials
- `403` — not a member
- `500` — internal error

---

[API](https://skmtc.net/agentserver/apis/agentserver-api.md) · [All operations](https://skmtc.net/agentserver/apis/agentserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agentserver/agentserver-api/versions/e8c329825b4e/schema)
