# Gmail
These are a collection of endpoints that allow you to insert Canarytoken Mails into every selected G Suite Gmail address in your organisation.
TIP
These endpoints are recommended to be used via your Canary Console UI. The Canary Console UI will handle all the different flows and parameters needed, making your life a lot easier.
# List Gmail email addresses
POST /api/v1/canarytoken/gmail/users/list
Lists the gmail users in the auth'ed G Suite organisation.
Required Parameters
Response
A JSON structure with the users information and a result indicator
# Insert Canarytokens into Gmail accounts
POST /api/v1/canarytoken/gmail/create
Inserts the Gmail Canarytoken into specified Gmail addresses.
Required Parameters
Optional Parameters
Response
A JSON structure with a result indicator
# Get email template for Gmail Canarytoken
GET /api/v1/canarytoken/gmail/email
Gets the Gmail template to be used when tokening Gmail mailboxes.
Required Parameters
Response
A JSON structure with the html, sender and subject information with a result indicator
# Save email template for Gmail Canarytoken
POST /api/v1/canarytoken/gmail/email
Saves the Gmail mail template to be used when tokening Gmail mailboxes.
Required Parameters
Optional Parameters
Response
A JSON structure with the html, subject, sender information and the used G Suite organisation domain with a result indicator
TIP
We will embed a Canarytoken in the mail template. We will place the Canarytoken'ed URL in the
placeholder {url}
. We will also check for {user}
and replace that with the user's name of
each Gmail address.
# Get the status of the Gmail Canarytoken process
GET /api/v1/canarytoken/gmail/status
Gets the status of the Gmail tokening process.
Required Parameters
Response
A JSON structure with a result indicator, successful, failed and total users.