---
# System prepended metadata

title: Gocial Server Documentation

---

# Gocial Server Documentation

## Commands
### Authentucation
#### Logging In
:::warning
:warning: This command doesn't actually log in, it just checks to see if the username and password is correct.
:::
```json
{"cmd": "login", "username": "[username]", "password": "[password]"}
```
:::success
**On success:**
```json
{"cmd": "ok"}
```
:::

:::danger
**On error:**
```json
{"cmd": "error", "val": "Invalid Username or Password"}
```
:::
#### Signing Up
```json
{"cmd": "signup", "username": "[username]", "password": "[password]"}
```
:::success
**On success:**
```json
{"cmd": "ok"}
```
:::

:::danger
**On error:**
```json
{"cmd": "error", "val": "Invalid Username or Password"}
```
:::
### Home
#### Fetching Home
```json
{"cmd": "home"}
```
:::success
**On success:**
```json
{"cmd": "home", "val": [], "len": 0}
```
:::
#### Posting
```json
{"cmd": "post", "username": "[username]", "password": "[password]", "val": "[content]"}
```
