---
title: "Connect Maxru Account"
method: POST
path: "/api/channels/maxru/accounts/connect"
tags: ["channels", "channels", "maxru"]
---

# Connect Maxru Account

`POST /api/channels/maxru/accounts/connect`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/maxru/accounts/connect`
- Auth: none declared

Connect a Max.ru account using a pasted auth token.

Validates the token by calling channel-sync-service, which creates a
temporary MaxClient and attempts login_by_token. On success, creates
an active channel_account record.

## Request body

- MaxruConnectRequest: Request body for connecting a Max.ru account via token paste.
  - `auth_token` string, required: Auth token from web.max.ru localStorage (__oneme_auth key)
  - `device_id` string, required: Device ID from web.max.ru localStorage (__oneme_device_id key)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
