---
title: "Get incoming and outgoing invites for user"
method: GET
path: "/invites/{user_id}"
---

# Get incoming and outgoing invites for user

`GET /invites/{user_id}`

Get a list of all incoming and outgoing invites for the user

## Path parameters

- `user_id` integer, required

## Headers

- `authorization` string, required

## Response `200`

List of incoming and outgoing invites for user

- object
  - `incoming` object[]
    - `id` integer — The ID of the invitation
    - `sender` object
      - `id` integer — The ID of the user who sent the invitation
      - `name` string — The name of the user who sent the invitation
      - `avatar` string — The URL of the avatar image of the user who sent the invitation
    - `created_at` string, date-time — The date and time the invitation was created
  - `outgoing` object[]
    - `id` integer — The ID of the invitation
    - `recipient` object
      - `id` integer — The ID of the user who received the invitation
      - `name` string — The name of the user who received the invitation
      - `avatar` string — The URL of the avatar image of the user who received the invitation
    - `created_at` string, date-time — The date and time the invitation was created

## Other responses

- `401` — Unauthorized request
- `500` — Internal server error

---

[API](https://skmtc.net/01-edu/apis/friend-tracker-api.md) · [All operations](https://skmtc.net/01-edu/apis/friend-tracker-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/01-edu/friend-tracker-api/versions/0a952c2d887c/schema)
