> For the complete documentation index, see [llms.txt](https://indiemarc.gitbook.io/user-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://indiemarc.gitbook.io/user-api/requests/contacts-friends.md).

# Contacts/Friends

Can be used as a friend list for each user. Use these functions to add/remove users to someone's list. Users can only add/remove contacts on their own account.

To accept/reject a friend request, you also use the same add/remove functions.

All requests in this page require the same header

Header `authorization` `access_token`

### Add Contact

```
POST http://127.0.0.1/users/friends/add
```

```
{
    "username" : "player"
}
```

### Remove Contact

```
POST http://127.0.0.1/users/friends/remove
```

```
{
    "username" : "player"
}
```

### Get Contact List

```
GET http://127.0.0.1/users/friends/list
```
