API 요청 로그 목록 조회
curl --request POST \
--url https://api.pubrio.com/api_keys/logs \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"profile_id": 123,
"page": 1,
"per_page": 25,
"order_by": "created_at",
"is_ascending_order": false,
"search_term": "<string>",
"log_types": [
123
],
"log_type_slugs": [
"<string>"
],
"status_codes": [
123
],
"methods": [
"<string>"
]
}
'import requests
url = "https://api.pubrio.com/api_keys/logs"
payload = {
"profile_id": 123,
"page": 1,
"per_page": 25,
"order_by": "created_at",
"is_ascending_order": False,
"search_term": "<string>",
"log_types": [123],
"log_type_slugs": ["<string>"],
"status_codes": [123],
"methods": ["<string>"]
}
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile_id: 123,
page: 1,
per_page: 25,
order_by: 'created_at',
is_ascending_order: false,
search_term: '<string>',
log_types: [123],
log_type_slugs: ['<string>'],
status_codes: [123],
methods: ['<string>']
})
};
fetch('https://api.pubrio.com/api_keys/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pubrio.com/api_keys/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_id' => 123,
'page' => 1,
'per_page' => 25,
'order_by' => 'created_at',
'is_ascending_order' => false,
'search_term' => '<string>',
'log_types' => [
123
],
'log_type_slugs' => [
'<string>'
],
'status_codes' => [
123
],
'methods' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pubrio.com/api_keys/logs"
payload := strings.NewReader("{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.pubrio.com/api_keys/logs")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/api_keys/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"filters": {
"page": 1,
"per_page": 3,
"status_codes": [
200
]
}
},
"data": {
"pagination": {
"page": 1,
"per_page": 3,
"total_entries": 1109,
"total_pages": 370,
"total_display_pages": 250,
"is_timeout": false
},
"query_logs": [
{
"query_log_id": "fc1ce3dd-39f7-4fbd-9d22-569a17115c11",
"created_at": "2026-05-14 12:04:32.243",
"profile_id": 1,
"user_id": "2981d4b3-f8b1-44d8-9759-889f3bfa2faf",
"method": "POST",
"path": "/api_keys/usage/daily",
"status_code": 200,
"duration_ms": 1821,
"log_type_id": 0,
"authentication_type": "pubrio-api-key",
"masked_authentication": "0••••••••••••••••f39",
"response_size": 2180,
"ip": "127.0.0.1",
"email": "[email protected]",
"nickname": "Example User",
"user": {
"user_id": "2981d4b3-f8b1-44d8-9759-889f3bfa2faf",
"nickname": "Example User",
"email": "[email protected]"
},
"log_type_slug": null,
"credits": 0,
"log_type_name": null,
"authentication_type_name": "API Key"
}
]
}
}{
"code": 40001,
"message": "오류 코드 및 메시지는 상황에 따라 다를 수 있습니다. 자세한 내용은 문서를 참조하세요.",
"details": {}
}{
"error": "요청 빈도가 제한을 초과했습니다. 잠시 후 다시 시도해주세요."
}{
"error": "요청을 처리하는 중 서버에서 예기치 않은 오류가 발생했습니다"
}API 키
API 요청 로그 목록
워크스페이스에서 실행된 API 요청 로그를 페이지네이션 형식으로 조회합니다. 각 항목은 pubrio-api-key로 실행된 단일 요청을 의미하며, 경로, 메서드, 상태 코드, 소요 시간, 응답 크기, 사용 크레딧을 포함합니다. 특정 로그의 전체 요청 및 응답 본문을 확인하려면 로그 상세 조회 엔드포인트를 사용하세요.
POST
/
api_keys
/
logs
API 요청 로그 목록 조회
curl --request POST \
--url https://api.pubrio.com/api_keys/logs \
--header 'Content-Type: application/json' \
--header 'pubrio-api-key: <api-key>' \
--data '
{
"profile_id": 123,
"page": 1,
"per_page": 25,
"order_by": "created_at",
"is_ascending_order": false,
"search_term": "<string>",
"log_types": [
123
],
"log_type_slugs": [
"<string>"
],
"status_codes": [
123
],
"methods": [
"<string>"
]
}
'import requests
url = "https://api.pubrio.com/api_keys/logs"
payload = {
"profile_id": 123,
"page": 1,
"per_page": 25,
"order_by": "created_at",
"is_ascending_order": False,
"search_term": "<string>",
"log_types": [123],
"log_type_slugs": ["<string>"],
"status_codes": [123],
"methods": ["<string>"]
}
headers = {
"pubrio-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'pubrio-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile_id: 123,
page: 1,
per_page: 25,
order_by: 'created_at',
is_ascending_order: false,
search_term: '<string>',
log_types: [123],
log_type_slugs: ['<string>'],
status_codes: [123],
methods: ['<string>']
})
};
fetch('https://api.pubrio.com/api_keys/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pubrio.com/api_keys/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profile_id' => 123,
'page' => 1,
'per_page' => 25,
'order_by' => 'created_at',
'is_ascending_order' => false,
'search_term' => '<string>',
'log_types' => [
123
],
'log_type_slugs' => [
'<string>'
],
'status_codes' => [
123
],
'methods' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"pubrio-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pubrio.com/api_keys/logs"
payload := strings.NewReader("{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("pubrio-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.pubrio.com/api_keys/logs")
.header("pubrio-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pubrio.com/api_keys/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["pubrio-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_id\": 123,\n \"page\": 1,\n \"per_page\": 25,\n \"order_by\": \"created_at\",\n \"is_ascending_order\": false,\n \"search_term\": \"<string>\",\n \"log_types\": [\n 123\n ],\n \"log_type_slugs\": [\n \"<string>\"\n ],\n \"status_codes\": [\n 123\n ],\n \"methods\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"filters": {
"page": 1,
"per_page": 3,
"status_codes": [
200
]
}
},
"data": {
"pagination": {
"page": 1,
"per_page": 3,
"total_entries": 1109,
"total_pages": 370,
"total_display_pages": 250,
"is_timeout": false
},
"query_logs": [
{
"query_log_id": "fc1ce3dd-39f7-4fbd-9d22-569a17115c11",
"created_at": "2026-05-14 12:04:32.243",
"profile_id": 1,
"user_id": "2981d4b3-f8b1-44d8-9759-889f3bfa2faf",
"method": "POST",
"path": "/api_keys/usage/daily",
"status_code": 200,
"duration_ms": 1821,
"log_type_id": 0,
"authentication_type": "pubrio-api-key",
"masked_authentication": "0••••••••••••••••f39",
"response_size": 2180,
"ip": "127.0.0.1",
"email": "[email protected]",
"nickname": "Example User",
"user": {
"user_id": "2981d4b3-f8b1-44d8-9759-889f3bfa2faf",
"nickname": "Example User",
"email": "[email protected]"
},
"log_type_slug": null,
"credits": 0,
"log_type_name": null,
"authentication_type_name": "API Key"
}
]
}
}{
"code": 40001,
"message": "오류 코드 및 메시지는 상황에 따라 다를 수 있습니다. 자세한 내용은 문서를 참조하세요.",
"details": {}
}{
"error": "요청 빈도가 제한을 초과했습니다. 잠시 후 다시 시도해주세요."
}{
"error": "요청을 처리하는 중 서버에서 예기치 않은 오류가 발생했습니다"
}본문
application/json
선택 사항. 요청을 수행하는 팀 식별자입니다. API 키에 이미 워크스페이스 정보가 포함되어 있으므로 이 매개변수는 더 이상 필수가 아닙니다. 제공되면 조회 및 사용 크레딧 추적을 위해 특정 팀(작업 공간)과 연계됩니다.
자세한 내용은 팀 탭의 user details 엔드포인트를 참고하세요.
조회할 데이터 페이지 번호입니다.
예시:
1
페이지당 반환할 검색 결과 수입니다. 결과 수를 제한하면 API 성능이 향상됩니다.
예시:
25
로그 목록 정렬에 사용할 필드.
사용 가능한 옵션:
created_at, duration_ms, status_code 정렬 방향. true는 오름차순, false(기본값)는 내림차순.
요청 경로, 로그 타입 슬러그, 원본 요청 본문에 대한 자유 검색.
로그 타입 ID로 필터링.
로그 타입 슬러그로 필터링(예: people_search, company_search).
HTTP 상태 코드로 필터링(예: [200, 400, 500]).
HTTP 메서드로 필터링(예: ["POST", "GET"]).
⌘I

