API log rows without workspace (failed authentication, Admin calls)
GET
/admin/logs/api
const url = 'http://localhost:3000/admin/logs/api?sort=createdAt&page=1&pageSize=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/admin/logs/api?sort=createdAt&page=1&pageSize=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”connectionId
string
dialect
Array<string>
status
Array<string>
errorCode
string
method
string
path
string
messageId
string
since
string format: date-time
until
string format: date-time
sort
string
page
integer
pageSize
integer
Responses
Section titled “Responses”One page.
Media typeapplication/json
object
data
required
total
required
integer
page
required
integer
pageSize
required
integer
Example
{ "data": [ { "dialect": "native" } ]}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.
Error: unauthorized
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.
WWW-Authenticate
required
Sent with every 401.
string
Sent with every 401.
Error: forbidden
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.
Error: validation_error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.
Error: internal_error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
requestId
required
string
Example
{ "error": { "code": "unauthorized" }}Headers
Section titled “Headers”X-Request-Id
required
Id of the request (req_…), also the id of its request log row.
string
Id of the request (req_…), also the id of its request log row.