Discovery history
GET
/orgs/{org}/discovery/runs
const url = 'https://api.sloose.com/orgs/org_9f3c/discovery/runs';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://api.sloose.com/orgs/org_9f3c/discovery/runs \ --header 'Authorization: Bearer <token>'The last 50 discovery runs, newest first, without their snapshots.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
The org id the session was issued for. A token for one org can never read another.
string
Example
org_9f3cThe org id the session was issued for. A token for one org can never read another.
Responses
Section titled “Responses”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"}