Pobierz logi uruchomienia skryptu
GET
/api/v1/runs/{id}/logs
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/1/logs?offset=0&limit=100';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 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/1/logs?offset=0&limit=100' \ --header 'Authorization: Bearer <token>'Zwraca logi wygenerowane podczas wskazanego uruchomienia – przydatne przy diagnozowaniu błędów skryptu.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Id of the run.
Parametry zapytania
Dział zatytułowany „Parametry zapytania”offset
integer format: int32
Number of logs to skip.
limit
integer format: int32
Number of logs to take.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
list
Array<object>
Log.
object
runId
Id of the run during which the log occurred.
integer format: int64
timestamp
Date and time when log occurred.
string format: date-time
message
Message of the log.
string
level
Level of the log.
string
pageNumber
integer format: int32
total
integer format: int32
object
list
Array<object>
Log.
object
runId
Id of the run during which the log occurred.
integer format: int64
timestamp
Date and time when log occurred.
string format: date-time
message
Message of the log.
string
level
Level of the log.
string
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ { "runId": 1, "timestamp": "2026-04-15T12:00:00Z", "message": "example", "level": "example" } ], "pageNumber": 1, "total": 1}object
list
Array<object>
Log.
object
runId
Id of the run during which the log occurred.
integer format: int64
timestamp
Date and time when log occurred.
string format: date-time
message
Message of the log.
string
level
Level of the log.
string
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ { "runId": 1, "timestamp": "2026-04-15T12:00:00Z", "message": "example", "level": "example" } ], "pageNumber": 1, "total": 1}Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
