Get user builds list
GET/v2/actor-builds
Gets a list of all builds for a user. The response is a JSON array of objects, where each object contains basic information about a single build.
The endpoint supports pagination using the limit and offset parameters
and it will not return more than 1000 records.
By default, the records are sorted by the startedAt field in ascending
order. Therefore, you can use pagination to incrementally fetch all builds while
new ones are still being started. To sort the records in descending order, use
the desc=1 parameter.
Request
Query Parameters
Number of records that should be skipped at the start. The default value
is 0.
10Maximum number of records to return. The default value as well as the
maximum is 1000.
99If true or 1 then the objects are sorted by the startedAt field in
descending order. By default, they are sorted in ascending order.
trueStatus 200
Response Headers
{
"data": {
"total": 2,
"offset": 0,
"limit": 1000,
"desc": false,
"count": 2,
"items": [
{
"id": "HG7ML7M8z78YcAPEB",
"actId": "janedoe~my-actor",
"status": "READY",
"startedAt": "2019-11-30T07:34:24.202Z",
"finishedAt": "2019-12-12T09:30:12.202Z",
"usageTotalUsd": 0.02,
"meta": {
"origin": "DEVELOPMENT",
"clientIp": "172.234.12.34",
"userAgent": "Mozilla/5.0 (iPad)"
}
}
]
}
}
Schema
data object required
Common pagination fields for list responses.
- total integer required
The total number of items available across all pages.
Possible values:
Example:>= 02 - offset integer required
The starting position for this page of results.
Possible values:
Example:>= 00 - limit integer required
The maximum number of items returned per page.
Possible values:
Example:>= 11000 - desc boolean required
Whether the results are sorted in descending order.
Example:false - count integer required
The number of items returned in this response.
Possible values:
Example:>= 02 items object[] required
- id string requiredExample:
HG7ML7M8z78YcAPEB - actId stringExample:
janedoe~my-actor - status ActorJobStatus (string) required
Status of an Actor job (run or build).
Possible values: [
READY,RUNNING,SUCCEEDED,FAILED,TIMING-OUT,TIMED-OUT,ABORTING,ABORTED] - startedAt string<date-time> requiredExample:
2019-11-30T07:34:24.202Z - finishedAt string<date-time> requiredExample:
2019-12-12T09:30:12.202Z - usageTotalUsd number requiredExample:
0.02 meta object
- origin RunOrigin (string) required
Possible values: [
DEVELOPMENT,WEB,API,SCHEDULER,TEST,WEBHOOK,ACTOR,CLI,STANDBY] - clientIp string
IP address of the client that started the build.
Example:172.234.12.34 - userAgent string
User agent of the client that started the build.
Example:Mozilla/5.0 (iPad)
- origin RunOrigin (string) required
- id string requiredExample:
- total integer required
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type string requiredExample:
run-failed - message string requiredExample:
Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)
- type string requiredExample: