---
title: "Create Link"
method: POST
path: "/api/v1/account-links/me"
tags: ["api", "api", "account-links"]
---

# Create Link

`POST /api/v1/account-links/me`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/account-links/me`
- Auth: HTTP bearer

Email orqali yangi bog'lanish qo'shadi.

## Request body

- LinkCreateRequest: Yangi bog'lanish — email orqali odam tanlanadi, unga rol beriladi.
  - `email` string, email, required
  - `role` 'ustoz' | 'oquvchi' | 'ota' | 'ona' | 'vasiy' | 'yaqin_qarindosh' | 'farzand' | 'boshliq' | 'yordamchi' | 'administrator', required: Bog'langan akkauntning (qarama-qarshi tomonning) roli. AccountLinkModel.role_of_addressee / role_of_requester ustunlarida string sifatida saqlanadi. Qiymatlar frontend `AccountLinkRole` enumi bilan AYNAN mos kelishi shart.

## Response `200`

Successful Response

- LinkedProfileListResponse
  - `items` LinkedProfileResponse[]
    - `id` integer, required
    - `email` string, required
    - `name` string, nullable
    - `role` string, required
    - `counterpart_role` string, nullable
    - `status` string, required
    - `is_incoming` boolean
    - `awaiting_my_cancel_confirm` boolean
    - `can_cancel` boolean
    - `cancel_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
