Skip to content
Console
Menu

Getting Started

Authentication

KV Store

On this page

sylphx notify mailbox_connect_links

Every sylphx notify mailbox_connect_links command: its argument, its flags and a run line.

The mailbox_connect_links commands of Sylphx Notify, as the CLI spells them: the same calls as the mailbox_connect_links API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets a mailbox connect link.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx notify mailbox-connect-links get orgs/acme/projects/shop/envs/production/mailbox_connect_links/mailbox-connect-link

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/mailbox_connect_links/mailbox-connect-link · scope notify:read · effect read · Request, response and examples

#list

Lists mailbox connect links.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx notify mailbox-connect-links list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/mailbox_connect_links · scope notify:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over labels and filterable fields.
--order-bystringAIP-132 ordering over filterable fields.

#create

Mints a mailbox connect link for one end user; the response carries its url, which no later call returns.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx notify mailbox-connect-links create --parent orgs/acme/projects/shop/envs/production --provider google --return-url …

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/mailbox_connect_links · scope notify:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--providerenumThe provider whose consent the page opens; the environment needs that provider's Mailbox OAuth App. Required. One of google, microsoft.
--mailboxstringThe mailbox to reconnect, keeping its id and feed; it must be signed in as the same address. Empty creates a new connected mailbox.
--mailbox-idstringThe id of the new mailbox; the server assigns one when empty.
--display-namestringThe From display name of the new mailbox.
--backfill-start-timetimestampThe new mailbox reads mail received on or after this day on its first poll.
--login-hintstringThe address to suggest on the consent screen (login_hint); the mailbox takes the address the provider confirms, whatever this says.
--return-urlstringWhere the end user lands when done, HTTPS, with connect_link={id} and result=connected or result=failed added to the query. The query proves nothing: read the link back with your key for the outcome. Required.
--refresh-urlstringWhere a claimed or expired link sends the end user, HTTPS; your server mints a new link there. Empty shows a page saying the link has expired.
--ttldurationHow long the link stays open; default 1 hour, at most 7 days.
--dry-runboolValidate and print the result without writing (validate_only).