Skip to content

A project’s run history

GET
/orgs/{org}/projects/{id}/runs
curl --request GET \
--url https://api.sloose.com/orgs/org_9f3c/projects/b3f1c8a2/runs \
--header 'Authorization: Bearer <token>'

The last 50 runs of this project, newest first.

org
required

The org id the session was issued for. A token for one org can never read another.

string
Example
org_9f3c

The org id the session was issued for. A token for one org can never read another.

id
required

The project id.

string
Example
b3f1c8a2

The project id.

Up to 50 runs, newest first.

Media typeapplication/json
object
runs
required
Array<object>

One import run. Retired nightly past the plan’s history window.

object
id
required
string
orgId
required
string
connectorId
required

The destination this run wrote to. Null means the org’s default CRM: a run from before connectors were named, or one authorised by an API token or an older session, which name no connector.

string | null
projectId
required
string | null
userId
required
string | null
mode
required
string
Allowed values: widget server
dryRun
required
boolean
status
required
string
Allowed values: authorised running complete cancelled error
declaredRows
required
number
rowsWritten
required
number
rowsCreated
required
number
rowsUpdated
required
number
rowsFailed
required
number
modules
required
Array<string> | null
error
required
string | null
summary
required
object | null
startedAt
required
string | null
finishedAt
required
string | null
createdAt
required
string
Example
{
"runs": [
{
"mode": "widget",
"status": "authorised"
}
]
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

The bearer’s role is too low, or it was issued for a different org.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No such project, or it is not visible to this session.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}