# Mobile App Token

## Mobile App Token은 무엇인가요?

> 모바일 앱 토큰은 모바일 기기에서 서버 API를 사용하기 위하여 발행하는 인증토큰입니다.

## 누가 사용하는 건가요?

projectroom을 서버 API를 사용하는 용도로만 사용하는 사용자들이 필요한 토큰 정보라고 볼 수 있습니다.

보통 모바일 개발을 하는 사용자의 경우 화면은 모바일화면을 사용하고 서버 API를 통해 db 데이터에 접근합니다.

{% hint style="info" %}
공공데이터 OPEN API와 같이 외부에서 호출가능 하게 해주는 필수 헤더 값입니다.

다른 점은 projectroom에선 서버 로직을 사용자가 직접 핸들링하여 API를 구성할 수 있다는 점입니다.
{% endhint %}

## 요청에 필요한 정보는 어떻게 되나요?

요청에 필요한 정보는 두가지이며 '요청을 보낼 URL'과 'Header 값(Mobile App Token)'입니다.

&#x20;

## 해당 정보는 어디에 있나요?

{% tabs %}
{% tab title="요청 URL" %}
{% hint style="info" %} <mark style="color:blue;">**프로젝트 -> 워크스페이스 -> Web Tester**</mark>
{% endhint %}

[Web Tester의 URL](https://docs.projectroom.io/guide/projectroom/04.workspace/web-tester)을 참고하세요.

<figure><img src="https://3827589507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F07123S9dcROkDhTs2j5c%2Fuploads%2F5neZRzOoVoAmsOJ1p96s%2F%E1%84%8B%E1%85%AA%E1%86%AB_webtester_2.png?alt=media&#x26;token=08a066f6-b68b-451c-ad08-b1f053858104" alt=""><figcaption></figcaption></figure>

1. https\://${dev||stg}-${프로젝트id}-${사용자id}.user${1\~9}.projectroom.cloud/api/${모듈이름}/${모듈함수}
   {% endtab %}

{% tab title="Mobile App Token" %}
{% hint style="info" %} <mark style="color:blue;">**프로젝트 -> 대시보드 -> Mobile App Token**</mark>
{% endhint %}

<figure><img src="https://3827589507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F07123S9dcROkDhTs2j5c%2Fuploads%2FYAoTrr7pjJLnqXNqwaeT%2F%E1%84%8B%E1%85%AA%E1%86%AB_%E1%84%86%E1%85%A9%E1%84%87%E1%85%A1%E1%84%8B%E1%85%B5%E1%86%AF%E1%84%8B%E1%85%A2%E1%86%B8%E1%84%90%E1%85%A9%E1%84%8F%E1%85%B3%E1%86%AB_%E1%84%86%E1%85%A6%E1%86%B7%E1%84%87%E1%85%A5.png?alt=media&#x26;token=46d5f5ec-5a37-482c-9282-c03d043125fd" alt=""><figcaption></figcaption></figure>

1. 모바일 앱 토큰을 클릭하면 복사가 됩니다.
   {% endtab %}
   {% endtabs %}

## Postman을 통해 확인해보겠습니다

<figure><img src="https://3827589507-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F07123S9dcROkDhTs2j5c%2Fuploads%2FJPPK8pGlTEINpznX6346%2F%E1%84%8B%E1%85%AA%E1%86%AB_%E1%84%91%E1%85%A9%E1%84%90%E1%85%B3%E1%84%89%E1%85%B3%E1%84%86%E1%85%A2%E1%86%AB_%E1%84%8B%E1%85%A2%E1%86%B8%E1%84%90%E1%85%A9%E1%84%8F%E1%85%B3%E1%86%AB.png?alt=media&#x26;token=f7455c7f-ef5f-44f3-b756-3e95d6ee7161" alt=""><figcaption></figcaption></figure>

1. 요청을 보낼 URL입니다. 규격은 아래와 같습니다.

> https\://${dev||stg}-${프로젝트id}-${사용자id}.user${1\~9}.projectroom.cloud/api/${모듈이름}/${모듈함수}

2. 모바일 앱 토큰입니다. Header 정보에 x-mobileapp-access-token을 입력합니다.

| key                    | value     |
| ---------------------- | --------- |
| mobileapp-access-token | ${모바일앱토큰} |


---

# 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://docs.projectroom.io/guide/projectroom/04.workspace/mobile-app-token.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.
