---
title: "Get friends"
method: GET
path: "/api/v5/admin/friendships/get-friends"
tags: ["Admin Friendships"]
---

# Get friends

`GET /api/v5/admin/friendships/get-friends`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/admin/friendships/get-friends`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/admin/friendships/get-friends/get.ts> (a function with typed inputs; its response is checked against the schema)

Get current user friends

## Query parameters

- `user_id` integer, required

## Response `200`

Successful Response

- Friends: List of users (light user)
  - `users` UserLight[], required
    - `id` integer
    - `username` string
    - `email` string
    - `firstName` string
    - `lastName` string
    - `profilePictureUrl` string
    - `phone` string
    - `role` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
