# 로그인 Token 요청하기

## Get server token

<mark style="color:green;">`POST`</mark> `https://backends.xyz/api/user/auth-token/`

Frontend에서는 http:localhost:3000에서 post 요청 하시면 됩니다. \
도메인 변경 시 알려주시면 추가하도록 하겠습니다.&#x20;

#### Request Body

| Name        | Type   | Description    |
| ----------- | ------ | -------------- |
| email       | string | .email address |
| last\_name  | string | .last\_name    |
| first\_name | string | first\_name    |
| user\_id    | string | unique user id |

{% tabs %}
{% tab title="200 Token successfully retrieved." %}

```javascript
{
    "token": "aecf4a8b1a3e4e5563fde9d63cd0b489cb80017a",
    "user": {
        "username": "testuser",
        "email": "non@non.com",
        "date_joined": "2018-11-29T17:24:50.556318+09:00",
        "img_profile": null,
        "id": 3,
        "last_login": null,
        "saved_room": []
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fastbnb.gitbook.io/project/sns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
