POST
/
rest
/
model
/
logs
/
get
curl --location 'https://api.inferless.com/rest/model/logs/get/' \
--header 'Authorization: <workspace-token>' \
--header 'Content-Type: application/json' \
--data '{
    "model_id": "<your-model-id>",
    "time_from": "2024-05-28T00:00:00.000Z",
    "time_to": "2024-06-01T23:59:59.000Z",
    "is_less_logs": false
}'
{
    "status": "success",
    "details": [
        {
            "time": "2024-06-01T00:54:45.370369921Z",
            "log": "<log-item>",
            "stream": "stderr"
        },
        {
            "time": "2024-06-01T00:54:44.56988728Z",
            "log": "<log-item>",
            "stream": "stdout"
        }
    ],
    "next_token": "1716196866721"
}

Authorizations


Authorization
string
required

Your workspace API token.

Body


model_id
string
required

The ID of the model whose settings you want to update.

time_from
string
required

The start time of the logs you want to retrieve.

time_to
string
required

The end time of the logs you want to retrieve.

is_less_logs
boolean

Whether to retrieve less logs or more.

next_token
string

The token to retrieve the next set of logs.

curl --location 'https://api.inferless.com/rest/model/logs/get/' \
--header 'Authorization: <workspace-token>' \
--header 'Content-Type: application/json' \
--data '{
    "model_id": "<your-model-id>",
    "time_from": "2024-05-28T00:00:00.000Z",
    "time_to": "2024-06-01T23:59:59.000Z",
    "is_less_logs": false
}'
{
    "status": "success",
    "details": [
        {
            "time": "2024-06-01T00:54:45.370369921Z",
            "log": "<log-item>",
            "stream": "stderr"
        },
        {
            "time": "2024-06-01T00:54:44.56988728Z",
            "log": "<log-item>",
            "stream": "stdout"
        }
    ],
    "next_token": "1716196866721"
}