Skip to content

Update by email — who may send the file

PUT
/v1/artifacts/{id}/email-sync/senders
curl --request PUT \
--url https://shareout.site/v1/artifacts/example/email-sync/senders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "senders": [ "ana@acme.com" ] }'

Replaces the list of addresses allowed to update the page by email, and turns the page’s inbox on (its address is in the response). Call it before creating the email_sheet_sync job, which refuses an empty list. Exact addresses, or a company @domain; never a whole free-mail domain (@gmail.com, @outlook.com, …). Mail from anyone else is bounced, and so is mail whose sender Cloudflare cannot vouch for (DMARC, or a DKIM signature by the sender’s own domain). Owner or editor of the page. It also turns a switched-off address back on (state: inbox_off).

id
required
string

Artifact ID (e.g. art_abc123).

Media typeapplication/json
object
senders
required

One address, or a list of up to 20.

One of:
Array<string>
<= 20 items

The address to send to and the saved list

Media typeapplication/json
object
address
string
senders
Array<string>

Example generated

{
"address": "example",
"senders": [
"example"
]
}

BAD_SENDER (param = the entry) — not an email address; FREE_MAIL_DOMAIN — a whole free-mail domain; NO_SENDERS — the list is empty; TOO_MANY_SENDERS; VALIDATION_ERROR.

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

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