Skip to content

Update by email — status

GET
/v1/artifacts/{id}/email-sync
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.

id
required
string

Artifact ID (e.g. art_abc123).

Status

Media typeapplication/json
object
address

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.

string
nullable
senders
Array<string>
datasets

The page’s datasets, most recently written first.

Array<string>
reads

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).

Array<string>
nullable
suggestedDataset

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.

string
nullable
you

The caller’s email — the default sender.

string
nullable
state

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.

string
Allowed values: off inbox_off waiting_first_email ok failed
message

One line for the person, in the caller’s language: what the state means and what to do.

string
limits

What one email can bring.

object
fileMb
integer
rows
integer
mailMb
integer
perDay

Emails per page per day.

integer
lastRejected

The last email the address refused (it was bounced to the sender; nothing changed).

object
from
string
reason
string
Allowed values: not_allowed unverified too_large rate_limited inbox_off
at
string format: date-time
message

Why, and what to do, in the caller’s language.

string
count

Times this sender was bounced for this reason.

integer
verified

Cloudflare vouched for the sender’s domain.

boolean
hasFile

The email carried an .xlsx or .csv file.

boolean
forwardedBy

The allowed mailbox that auto-forwarded it (Cloudflare’s SPF pass for a Gmail +caf_= or Microsoft +SRS= envelope).

string
canAllow

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.

boolean
recentRejected

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.

Array<object>
object
forwarding

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.

Array<object>
object
id
string
provider
string
Allowed values: gmail
requester

The Gmail account asking to forward to the page.

string
requesterAllowed

The requester is on the list of senders.

boolean
confirmUrl

Google’s confirmation page (https://mail-settings.google.com/mail/vf-…); the person presses Confirm there.

string
code

Only older confirmations carry a code.

string
nullable
receivedAt
string format: date-time
expiresAt
string format: date-time
openedAt

An editor opened the link from the panel.

string format: date-time
nullable
job
object
id
string
enabled
boolean
dataset
string
datasetReadByPage

False = the live page does not read this dataset, so the file would not show; null = cannot be told.

boolean
nullable
sheet
string
nullable
attachment
string
nullable
lastRunAt

Unix seconds.

integer
nullable
lastStatus
string
nullable
Allowed values: success failed
lastError
string
nullable
lastEmail
object
from
string
subject
string
nullable
receivedAt

Unix seconds.

integer
files
Array<string>
lastUpdate

The last write made from an emailed file (null if the dataset came from elsewhere).

object
rowCount
integer
nullable
file
string
nullable
sheet
string
nullable
at
string format: date-time
nullable

Example

{
"state": "off",
"limits": {
"fileMb": 8,
"rows": 100000,
"mailMb": 25,
"perDay": 200
},
"lastRejected": {
"reason": "not_allowed"
},
"forwarding": [
{
"provider": "gmail"
}
],
"job": {
"lastStatus": "success"
}
}

Authentication required

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

Resource not found

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}

NO_WORKSPACE — the page is not inside a workspace.