Fastmail

App · 20 actions

Read and organize mail, send messages, manage mailboxes and vacation responses.

Actions

ActionWhat it does
Create draft emailCreate draft email.
Create mailboxCreate mailbox.
Delete email permanentlyDelete email permanently.
Delete empty mailboxDelete empty mailbox.
Get emailGet email.
Get email changesGet email changes.
Get identityGet identity.
Get mailboxGet mailbox.
Get mailbox changesGet mailbox changes.
Get threadGet thread.
Get vacation responseGet vacation response.
List emailsList emails.
List identitiesList identities.
List mailboxesList mailboxes.
List threadsList threads.
Move emailMove email.
Rename mailboxRename mailbox.
Send draft emailSend draft email.
Set email flagsSet email flags.
Set vacation responseSet vacation response.

Create draft email

Create draft email.

Inputs

Identityidentity_idtextRequired
Identity ID.
TotolistRequired
To.
SubjectsubjecttextRequired
Subject.
TexttexttextRequired
Text.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "created": {},
    "newState": "example"
  }
}

Create mailbox

Create mailbox.

Inputs

NamenametextRequired
Name.
Parentparent_idtext
Parent ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "created": {},
    "newState": "example"
  }
}

Delete email permanently

Delete email permanently.

Inputs

Email IDemail_idtextRequired
Email ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "destroyed": [],
    "newState": "example"
  }
}

Delete empty mailbox

Delete empty mailbox.

Inputs

Mailboxmailbox_idtextRequired
Mailbox ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "destroyed": [],
    "newState": "example"
  }
}

Get email

Get email.

Inputs

Email IDemail_idtextRequired
Email ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "notFound": [],
    "state": "example"
  }
}

Get email changes

Get email changes.

Inputs

Since statesince_statetextRequired
Since state.
Max changesmax_changesnumber
Max changes.From 1 to 1000.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "created": [],
    "destroyed": [],
    "hasMoreChanges": false,
    "newState": "example",
    "oldState": "example",
    "updated": []
  }
}

Get identity

Get identity.

Inputs

Identityidentity_idtextRequired
Identity ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "notFound": [],
    "state": "example"
  }
}

Get mailbox

Get mailbox.

Inputs

Mailboxmailbox_idtextRequired
Mailbox ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "notFound": [],
    "state": "example"
  }
}

Get mailbox changes

Get mailbox changes.

Inputs

Since statesince_statetextRequired
Since state.
Max changesmax_changesnumber
Max changes.From 1 to 1000.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "created": [],
    "destroyed": [],
    "hasMoreChanges": false,
    "newState": "example",
    "oldState": "example",
    "updated": []
  }
}

Get thread

Get thread.

Inputs

Thread IDthread_idtextRequired
Thread ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "notFound": [],
    "state": "example"
  }
}

Get vacation response

Get vacation response.

Inputs

None.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "state": "example"
  }
}

List emails

List emails.

Inputs

Positionpositionnumber
Position.At least 0.
Limitlimitnumber
Limit.From 1 to 100.
Mailboxmailbox_idtext
Mailbox ID.
Afterafterdate and time
After.
Beforebeforedate and time
Before.
Texttexttext
Text.
Has keywordhas_keywordtext
Has keyword.One of: $seen, $flagged, $answered, $draft.
Not keywordnot_keywordtext
Not keyword.One of: $seen, $flagged, $answered, $draft.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "position": 1,
    "state": "example",
    "total": 1
  }
}

List identities

List identities.

Inputs

None.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "position": 1,
    "state": "example",
    "total": 1
  }
}

List mailboxes

List mailboxes.

Inputs

None.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "position": 1,
    "state": "example",
    "total": 1
  }
}

List threads

List threads.

Inputs

Positionpositionnumber
Position.At least 0.
Limitlimitnumber
Limit.From 1 to 100.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "list": [],
    "position": 1,
    "state": "example",
    "total": 1
  }
}

Move email

Move email.

Inputs

Email IDemail_idtextRequired
Email ID.
Mailboxmailbox_idtextRequired
Mailbox ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "newState": "example",
    "updated": {}
  }
}

Rename mailbox

Rename mailbox.

Inputs

Mailboxmailbox_idtextRequired
Mailbox ID.
NamenametextRequired
Name.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "newState": "example",
    "updated": {}
  }
}

Send draft email

Send draft email.

Inputs

Email IDemail_idtextRequired
Email ID.
Identityidentity_idtextRequired
Identity ID.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "created": {},
    "newState": "example"
  }
}

Set email flags

Set email flags.

Inputs

Email IDemail_idtextRequired
Email ID.
KeywordskeywordslistRequired
Keywords.One or more of: $seen, $flagged, $answered, $draft.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "newState": "example",
    "updated": {}
  }
}

Set vacation response

Set vacation response.

Inputs

Is enabledis_enabledtrue/falseRequired
Is enabled.
Subjectsubjecttext
Subject.
Text bodytext_bodytext
Text body.
From datefrom_datedate and time
From date.
To dateto_datedate and time
To date.

Outputs

dataobject
Fastmail response data.
Example output
{
  "data": {
    "newState": "example",
    "updated": {}
  }
}

On this page