Get log history
Retrieves historical log entries from the server's in-memory log buffer. The server maintains a rolling buffer of the last 300 log entries. Only returns non-personal logs that match the specified scope.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
application/json- body
Request to retrieve historical log entries from the server's log buffer.
scope*The scope defining which logs to retrieve. Personal logs are not included in historical retrieval as they are not stored.
count*integerThe maximum number of recent log entries to retrieve. Must not exceed 300 (the server's maximum log buffer size). Returns the newest entries that match the scope, up to this count.
int32Response containing historical log entries.
application/json- response
Response containing historical log entries.
messages*array<>The list of log entries matching the requested scope, ordered from oldest to newest. May contain fewer entries than requested if not enough matching logs exist in the buffer.
curl -X POST 'http://127.0.0.1:38765/v1/logs:history' \
-H 'Content-Type: application/json' \
-d '{
"count": 0
}'{
"messages": [
{
"id": "string",
"message": "string",
"instanceId": "string",
"botAccountId": "string",
"scriptId": "string",
"personal": true,
"instanceName": "string",
"botAccountName": "string",
"timestamp": "2019-08-24T14:15:22Z",
"loggerName": "string",
"level": "string"
}
]
}Was this page helpful?
Start login flow POST
Initiates a login flow for the specified email address. If the email is registered, a six-digit verification code is sent to that address. The response always indicates that an email code step is next, regardless of whether the email exists, to prevent email enumeration attacks.
Refresh Minecraft account POST
Refreshes the authentication tokens for an existing Minecraft account. Used to renew expired access tokens using stored refresh tokens. For Microsoft accounts, this refreshes the Minecraft token, profile, and player certificates. For offline accounts, returns the account unchanged (offline accounts never expire).
