Skip to content

Discovery history

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

The last 50 discovery runs, newest first, without their snapshots.

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.

Up to 50 runs, newest first.

Media typeapplication/json
object
runs
required
Array<object>
object
id
required
string
status
required
string
moduleCount
required
number
fieldCount
required
number
activeUserCount
required
number | null
errors
required
Array
startedByUserId
required
string | null
createdAt
required
string
Examplegenerated
{
"runs": [
{
"id": "example",
"status": "example",
"moduleCount": 1,
"fieldCount": 1,
"activeUserCount": 1,
"errors": [
"example"
],
"startedByUserId": "example",
"createdAt": "example"
}
]
}

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"
}