A run’s rows with their results
const url = 'https://api.sloose.com/orgs/org_9f3c/imports/imp_4d1a/results.csv';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/imports/imp_4d1a/results.csv \ --header 'Authorization: Bearer <token>'The file a run read, as a CSV a spreadsheet opens: the file’s own columns, then what the run did with each row — Result (Written, Written, may be unfinished for one of the last rows a run that stopped short wrote — the last ten rows its own log wrote a record or an after-save field of, in any of its files, of those that read written — which a window cut short may have left holding only some of its records (not of a run its page closed in order, or a run the day stopped that named the rows it left; a retry’s are its own last rows, never one it only inherited), Failed, No answer for a write that was sent and never answered, Skipped, Written before for a retry’s row an earlier run in its chain made — and of the rows a retry did not walk, what the runs it stands on left them as: Failed, in the words of the run that failed it, for a failed row a retry that stopped short never reached; Written, may be unfinished for one a lower retry that stopped short wrote last; Not reached for a row the run at the foot of its chain left part-written or never reached, which a resume takes — Excluded for a row the cleaning struck out, Not reached for a row of the rows the run set out to walk that a run which stopped before its end never reached, and for a row the row limit refused before its first write — its Error empty — Replaced, Not replaced and No parent for a row of a file that feeds a subform of a parent record — its rows replace the subform’s rows, all or none of a parent’s at once, and a row naming no parent is No parent — Not in this run for a row outside the rows the run was set to walk, Not recorded for a row inside them that a run which completed has no record of — its page left while the outcomes it had settled were still going out, and these never arrived — said only where a record was owed: not of a file a row filter read, of a file the run holds no record of at all, of a run that did not complete or a retry whose plan was not kept), one <module> record column per module with the record’s id, and Error — which also says when a create was sent before and never answered, since it may have made the record: one made after it may exist twice, so look for a duplicate; and what each search lookup came to where it was not one record — the link left empty, the first or a chosen record linked, or the record skipped for it — in the words the page’s own results file uses. Modules and lookup fields are named as the connection names them. A column of the file already called one of these keeps its name, and the run’s is prefixed Sloose: . A cell a spreadsheet would run as a formula — one beginning =, +, - or @, a plain number aside — is written with an apostrophe in front, so opening the file runs nothing somebody uploaded. Every row the file read, in order, so line N under the header is row N (RowNumber); any other row the run has no record of — held back by the row filter, of a run whose plan was not kept, or of a file a row filter read, whose rows held back cannot be told from rows not reached, or of a file the run holds no record of — has its values and no result. The file begins with a byte-order mark, so a spreadsheet opens it as UTF-8 and accented names stay as written. Read from the run’s snapshot (the file, its reader’s options and its cleaning as they were when the run was authorised), never from the import as it is now, so an old run’s file pairs its outcomes with the rows that produced them. A run that read several files needs source. Any member of the organisation may read it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation id the session was issued for. A token for one organisation can never read another.
Example
org_9f3cThe organisation id the session was issued for. A token for one organisation can never read another.
The import id.
Example
imp_4d1aThe import id.
Query Parameters
Section titled “Query Parameters”The run, from GET /orgs/{org}/imports/{id}/runs. Required.
The run, from GET /orgs/{org}/imports/{id}/runs. Required.
1 from the session or token that ran the run, once its own close has been answered: it has reported every row it settled, so the file is made without waiting out the two minutes a run’s results may still arrive in (RUN_SETTLING). Ignored from anyone else.
1 from the session or token that ran the run, once its own close has been answered: it has reported every row it settled, so the file is made without waiting out the two minutes a run’s results may still arrive in (RUN_SETTLING). Ignored from anyone else.
Which of the run’s files, by source id: required when the run read more than one, since two files have different columns and each row is its own file’s.
Which of the run’s files, by source id: required when the run read more than one, since two files have different columns and each row is its own file’s.
Responses
Section titled “Responses”The rows with their results.
No run was named (RUN_REQUIRED), or the run read several files and none was named (SOURCE_REQUIRED, with sources: each one’s id and label).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No bearer, or one that no longer resolves: a session that is unknown or expired (code: AUTH_REQUIRED), or an API token that was revoked or expired (TOKEN_REVOKED, TOKEN_EXPIRED), whose organisation is gone (ORG_NOT_FOUND) or whose member or user row is (MEMBERSHIP_GONE).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low (code: ROLE_REQUIRED), or it was issued for a different organisation; the organisation has been closed (code: ORG_CLOSED, either kind of bearer); the person is banned (code: BANNED, a session); or it is a session that is signed in but in no organisation (code: NO_ORG): one that never joined one, or whose person was taken out of the one it was in, or left it. Signing in again changes nothing for NO_ORG; choosing or making an organisation does.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No such import (IMPORT_NOT_FOUND), run of it (RUN_NOT_FOUND) or file of that run (SOURCE_NOT_FOUND).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}Nothing to pair: a dry run writes nothing (DRY_RUN), a run that has not ended has no whole results yet (RUN_NOT_ENDED), nor one whose runner may still report its last rows, for two minutes after its own close (RUN_SETTLING), and a run that stored no file for it has nothing to read again (NO_FILE). Or the file cannot be read: it is no longer in storage (FILE_GONE), it will not read under its options (UNREADABLE — a row of more than 1,048,576 characters in its cells, or more than 16,384 cells, among them), its options were written by a newer build than this one (FROM_FUTURE), it is a workbook whose XML unpacks to more than the server reads whole (WORKBOOK_TOO_LARGE, with unpacked and limit in bytes), or this deployment has no storage for imports (NOT_CONFIGURED). Or the run’s records are being moved to storage as they are read and have not settled (RECORDS_MOVING — ask again in a minute). Or its results are too large to make on the server: what the file’s rows, the modules its run wrote, their patches and their messages take, with the file’s cleaning and what reading its widest row takes, past the 64 MB the server sets aside for one (RESULTS_TOO_LARGE, with rows, and bytes against the limit).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).