Update by email — status
const url = 'https://shareout.site/v1/artifacts/example/email-sync';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://shareout.site/v1/artifacts/example/email-sync \ --header 'Authorization: Bearer <token>'What the “Update by email” panel shows for an email_sheet_sync job: the page’s own address, who may send the file, the job’s last result, the last email that arrived and the data it last wrote. Owner or editor of a page inside a workspace (else 404). Use it to confirm to the person that their file landed (“365 rows updated at 10:32”) or to say why not (message and job.lastError are one plain sentence with what to do, in the caller’s and the owner’s language). Before setting it up, suggestedDataset is the dataset to write: the one the live page reads (reads) when it reads exactly one. null means the page reads several — ask which one. A job whose dataset the page does not read has job.datasetReadByPage: false: the page would stay empty, so say so.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Artifact ID (e.g. art_abc123).
Responses
Section titled “Responses”Status
object
Where to send the file — the short address (first word of the slug, a dot, six letters/digits). The long slug address keeps working. null until senders are set, and while the address is off.
The page’s datasets, most recently written first.
Dataset names the live page reads (sdk.dataset('…') in its HTML and scripts). Empty = it reads none; null = it cannot be told (no live version, not an HTML page).
The dataset to write: the job’s, else the one the page reads when it reads exactly one, else the most recently written one, else data. null = the page reads several: ask which.
The caller’s email — the default sender.
off — no email sync; inbox_off — the sync exists but the page’s address is off, so mail is not accepted (setting the senders again turns it back on); waiting_first_email — on, no file has updated the page yet; ok — the last file updated the page; failed — the last file could not be used and the page kept its data.
One line for the person, in the caller’s language: what the state means and what to do.
What one email can bring.
object
Emails per page per day.
The last email the address refused (it was bounced to the sender; nothing changed).
object
Why, and what to do, in the caller’s language.
Times this sender was bounced for this reason.
Cloudflare vouched for the sender’s domain.
The email carried an .xlsx or .csv file.
The allowed mailbox that auto-forwarded it (Cloudflare’s SPF pass for a Gmail +caf_= or Microsoft +SRS= envelope).
A report an allowed mailbox auto-forwarded, whose verified sender is not on the list: adding exactly that sender (PUT …/senders) lets the next one in.
The recent emails the address refused, newest first (up to 5, one per sender and reason; a sender now on the list is left out). Same fields as lastRejected, which is the first of them.
object
Gmail forwarding confirmations waiting for the page’s editors: requesters on the list first, then newest (up to 3, strangers’ dropped first; 7 days). Gmail emails the page’s address a confirmation link before it forwards to it; a genuine one (DKIM and DMARC pass for google.com per Cloudflare, Google’s forwarding sender, its signed To is this address, its link on Google’s own host) is kept here and never becomes data. Outlook / Microsoft 365 has no such step.
object
The Gmail account asking to forward to the page.
The requester is on the list of senders.
Google’s confirmation page (https://mail-settings.google.com/mail/vf-…); the person presses Confirm there.
Only older confirmations carry a code.
An editor opened the link from the panel.
object
False = the live page does not read this dataset, so the file would not show; null = cannot be told.
Unix seconds.
object
Unix seconds.
The last write made from an emailed file (null if the dataset came from elsewhere).
object
Example
{ "state": "off", "limits": { "fileMb": 8, "rows": 100000, "mailMb": 25, "perDay": 200 }, "lastRejected": { "reason": "not_allowed" }, "forwarding": [ { "provider": "gmail" } ], "job": { "lastStatus": "success" }}Authentication required
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}Resource not found
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}NO_WORKSPACE — the page is not inside a workspace.
