# 애플리케이션 조회 (GET)

고유 식별자로 특정 애플리케이션의 상세 정보를 조회합니다.

## 엔드포인트

```
GET https://api.pocketalert.app/v1/applications/{tid}
```

## 인증

> **Info: 필수**
>
> 요청에 다음 헤더 중 하나를 포함하세요:
> - `Token: <your-api-key>` — [API 키](https://pocketalert.app/account/apikeys)에서 발급받으세요
> - `Authorization: Bearer <jwt-token>` — [로그인](https://info.pocketalert.app/api/user/login.md)에서 발급받은 토큰

## 요청

### 경로 매개변수

| 매개변수 | 타입 | 필수 | 설명 |
|-----------|------|:--------:|-------------|
| `tid` | string | ✅ | 애플리케이션 고유 식별자 |

### 헤더

| 헤더 | 필수 | 설명 |
|--------|:--------:|-------------|
| `Token` | ✅ | API 키 |
| `Authorization` | ✅ | `Bearer <jwt-token>` |

### 요청 예제

**cURL**

```bash
curl -X GET "https://api.pocketalert.app/v1/applications/sozb3yswlwoqdd1l1msi1nnh" \
  -H "Token: your-api-key"
```

**JavaScript**

```javascript
const tid = 'sozb3yswlwoqdd1l1msi1nnh';

const response = await fetch(`https://api.pocketalert.app/v1/applications/${tid}`, {
  headers: {
    'Token': 'your-api-key'
  }
});

const application = await response.json();
console.log(application);
```

**Python**

```python
import requests

tid = 'sozb3yswlwoqdd1l1msi1nnh'

response = requests.get(
    f'https://api.pocketalert.app/v1/applications/{tid}',
    headers={'Token': 'your-api-key'}
)

print(response.json())
```

**PHP**

```php
$tid = 'iemkz2tlbakj4lgns961ohx0o';
$response = Http::withHeaders([
    'Token' => 'your-api-key',
])->get('https://api.pocketalert.app/v1/applications/'.$tid);

return $response->json();
```

## 응답

### 성공 응답

> **Tip: 200 OK**
>
> 애플리케이션 객체를 반환합니다

| 필드 | 타입 | 설명 |
|-------|------|-------------|
| `tid` | string | 애플리케이션 고유 식별자 |
| `name` | string | 애플리케이션 이름 |
| `is_active` | boolean | 애플리케이션 활성화 여부 |
| `created_at` | string | 생성 시각 |

```json
{
  "tid": "sozb3yswlwoqdd1l1msi1nnh",
  "name": "Production Monitoring",
  "is_active": true,
  "created_at": "18.09.2023 02:29:02"
}
```

### 오류 응답

| 상태 | 설명 |
|:------:|-------------|
| `401` | 인증 실패 — 토큰이 잘못되었거나 없습니다 |
| `404` | 찾을 수 없음 — 애플리케이션이 존재하지 않습니다 |
