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

# Account Routes

## Create Account

<mark style="color:green;">`POST`</mark> `https://api.byte.co/account/register/precheck`

This endpoint allows you to create a Byte account or see if a username is available.

#### Headers

| Name                                              | Type   | Description           |
| ------------------------------------------------- | ------ | --------------------- |
| 'Content-Type': 'application/json; charset=utf-8' | string | Requests JSON format. |

#### Request Body

| Name     | Type   | Description                                                  |
| -------- | ------ | ------------------------------------------------------------ |
| username | string | The username to create an account or check availability for. |

{% tabs %}
{% tab title="200 Username is available." %}

```
{"data":{},"success":1}
```

{% endtab %}

{% tab title="400 Username is not available." %}

```
{"success":0,"error":{"code":1401,"message":"invalid username"}}
```

{% endtab %}
{% endtabs %}

## Get User

<mark style="color:blue;">`GET`</mark> `https://api.byte.co/account/id/:id`

This endpoint allows you to get information about a Byte account.

#### Path Parameters

| Name | Type   | Description          |
| ---- | ------ | -------------------- |
| id   | string | The Byte account ID. |

#### Request Body

| Name          | Type   | Description                                    |
| ------------- | ------ | ---------------------------------------------- |
| access\_token | string | A token that allows you to query the endpoint. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
