모든 애플리케이션 조회 GET
계정에 있는 모든 애플리케이션 목록을 조회합니다.
엔드포인트
GET https://api.pocketalert.app/v1/applications인증
필수
요청에 다음 헤더 중 하나를 포함하세요:
요청
헤더
| 헤더 | 필수 | 설명 |
|---|---|---|
Token | ✅ | API 키 |
Authorization | ✅ | Bearer <jwt-token> |
* Token 또는 Authorization 중 하나는 필수입니다
요청 예시
bash
curl -X GET "https://api.pocketalert.app/v1/applications" \
-H "Token: your-api-key"javascript
const response = await fetch('https://api.pocketalert.app/v1/applications', {
headers: {
'Token': 'your-api-key'
}
});
const applications = await response.json();
console.log(applications);python
import requests
response = requests.get(
'https://api.pocketalert.app/v1/applications',
headers={'Token': 'your-api-key'}
)
print(response.json())php
$response = Http::withHeaders([
'Token' => 'your-api-key',
])->get('https://api.pocketalert.app/v1/applications');
return $response->json();응답
성공 응답
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:31:32"
},
{
"tid": "zah97tnq4re45ych91byjzwa",
"name": "Development Alerts",
"is_active": true,
"created_at": "18.09.2023 02:31:14"
}
]에러 응답
| 상태 | 설명 |
|---|---|
401 | 인증 실패 — 토큰이 잘못되었거나 누락됨 |
429 | 요청 제한 초과 — 요청이 너무 많음 |