Dartmouth API Developer Portal

Email Addresses API

Returns information about email addresses. This API returns information from multiple source systems. Currently only addresses from Advancement are in the API. Other source systems can be added by request with a TDX ticket at API Enhancements.

Rating

Attribute Value
Highly Available Yes
Cache Refresh Interval Once Daily
Filtering Yes

Required Scopes

The email addresses API provides one API for getting information from multiple source systems. Each system can require a particular scope, or one scope will be available to read all possible email addresses. Currently only addresses from the Advancement system available. Authorization for consuming this data will be handled by the Advancement IT team.

Scope Description
"urn:dartmouth:email_addresses:read.adv" This scope allows consumers to query and get addresses from the Advancement data source

Future enhancement scopes might be:

urn:dartmouth:email_addresses:read.sis
urn:dartmouth:email_addresses:read.hrs
urn:dartmouth:email_addresses:read.idm
urn:dartmouth:email_addresses:read.all

Request

GET /api/email_addresses/{id}

Required Headers

Authorization: Bearer {jwt}

Notes on usage

The Email Addresses API is designed to support multiple source systems with different formats and source information. Each source system will have a separate authorization process to recieve a scope allowing access to that systems email address data.

A typical use case is retrieving email addresses for one netid. That is accomplished with the following query:

/api/email_addresses?netid=d22970n

Each email address resource is assigned a surrogate resource id. To access a single email address use the follwing GET call:

/api/email_addresses/{id}

Another use case might be getting all email addresses for a particular source system such as:

/api/email_addresses?data_source=adv

The top level attributes for all email address objects will be the same. For source system specific attributes, the object "data_source_data" will contain attributes pertinent for that particular system and will not have the same attribute names.

The Email Addresses API is availble for filtering and paged result sets consistent with the syntax specified in the introduction section covering filtering and paging.

Returns

Status Code Description
200 The URI parameter {id} passed in is a valid email address
404 The URI parameter {id} passed in is NOT a valid email address

Top Level Payload Attribute Descriptions

Field Type Sample Data Description
id string 601177f19948a0a6209256dc the assigned surrogate id for this email address
netid string f000309 the netid that owns this email address
email_address string the email address
is_primary boolean this boolean indicates the primary address for the person at Dartmouth College
data_source string the source system supplying this email address, currently only adv
data_source_data object object with source system data, can be different for each source system

Detailed descriptions of "data_source_data" for "adv" data_source email addresses

Value Description
type the type of email address (see table below for the enumeration)
is_preferred_ind consult with Advancement for detailed information about this attribute
is_for_vitalyst consult with Advancement for detailed information about this attribute
forwards_to_email_address consult with Advancement for detailed information about this attribute

Advance email types

Value Description
Business E-Mail consult with Advancement for detailed information about this attribute
Legacy Dartmouth Email consult with Advancement for detailed information about this attribute
Dartmouth Email consult with Advancement for detailed information about this attribute
Personal Email consult with Advancement for detailed information about this attribute
Other Email consult with Advancement for detailed information about this attribute
Preferred Email consult with Advancement for detailed information about this attribute

Sample Request

https://api.dartmouth.edu/api/email_addresses?netid=d22970n

Sample Return

[
    {
        "id": "601177f19948a0a6209256dc",
        "netid": "d22970n",
        "email_address": "david.a.bibeau@dartmouth.edu",
        "data_source": "adv",
        "is_primary": false,
        "data_source_data": {
            "type": "Dartmouth Email",
            "is_preferred_ind": false,
            "is_for_vitalyst": false,
            "forwards_to_email_address": null
        },
        "cache_date": "2021-05-17T00:00:23Z"
    },
    {
        "id": "601177f19948a0a6209256dd",
        "netid": "d22970n",
        "email_address": "david.a.bibeau@dartmouth.edu",
        "data_source": "adv",
        "is_primary": false,
        "data_source_data": {
            "type": "Preferred Email",
            "is_preferred_ind": true,
            "is_for_vitalyst": false,
            "forwards_to_email_address": null
        },
        "cache_date": "2021-05-17T00:00:23Z"
    }
]