Retrieve information regarding your SparkPost account and set account options.
{
"customer_id": 102938,
"company_name": "Example, Inc.",
"country_code": "US",
"anniversary_date": "2019-01-11T08:00:00.000Z",
"created": "2015-01-11T08:00:00.000Z",
"updated": "2018-04-11T08:00:00.000Z",
"status": "active",
"status_updated": "2018-04-11T08:00:00.000Z",
"status_reason_category": "",
"tfa_required": false,
"service_level": "standard",
"subscription": {
"name": "500K",
"code": "500K-0817",
"plan_volume": 500000,
"effective_date": "2018-04-11T08:00:00.000Z",
"self_serve": true,
"type": "default"
},
"options": {
"smtp_tracking_default": true
},
"usage": {
"timestamp": "2018-06-26T14:48:00.000Z",
"day": {
"limit": 50000,
"used": 8367,
"start": "2018-06-25T15:00:00.000Z",
"end": "2018-06-26T15:00:00.000Z"
},
"month": {
"limit": 500000,
"used": 40321,
"start": "2018-06-03T08:00:00.000Z",
"end": "2018-07-03T08:00:00.000Z"
}
},
"support": {
"phone": false,
"online": true
}
}
Account ID
Account holder company name
Account holder 2-letter country code
ISO date of billing anniversary
ISO date account was created
ISO date account details were last updated
active
Account status.
ISO date status was last updated
Category for some account statuses, e.g. 'NONPAYMENT'. Empty string by default
false
Account wide two factor authentication requirement.
standard
Account service level.
Current subscription details.
Details regarding a pending subscription upgrade or downgrade.
Account-level tracking settings.
Account quota usage details. Specify 'include=usage' in query string to include usage info. Usage data is not available for Enterprise accounts.
Support entitlement details.
Pending cancellation details.
GET /api/v1/account?include=usage
{
"results": {
"customer_id": 102938,
"company_name": "Example Inc",
"country_code": "US",
"anniversary_date": "2019-01-11T08:00:00.000Z",
"created": "2018-01-11T08:00:00.000Z",
"updated": "2018-02-11T08:00:00.000Z",
"status": "active",
"tfa_required": false,
"status_updated": "2018-12-21T13:21:41.442Z",
"status_reason_category": "",
"subscription": {
"code": "150K-0817",
"name": "150K",
"plan_volume": 150000,
"self_serve": true,
"type": "manual"
},
"support": {
"online": true,
"phone": false
},
"pending_subscription": {
"code": "2.5M-0817",
"name": "2.5M",
"effective_date": "2017-04-11T00:00:00.000Z"
},
"options": {
"smtp_tracking_default": false
},
"usage": {
"timestamp": "2016-03-17T05:19:00.932Z",
"day": {
"used": 22003,
"limit": 50000,
"start": "2016-03-16T05:30:00.932Z",
"end": "2016-03-17T05:30:00.932Z"
},
"month": {
"used": 122596,
"limit": 1500000,
"start": "2018-03-11T08:00:00.000Z",
"end": "2016-04-11T08:00:00.000Z"
},
"sandbox": {
"used": 3,
"limit": 5
}
}
}
}
Additional parts of account details to include. The only valid value is currently usage
.
PUT /api/v1/account
{
"company_name": "SparkPost",
"options": {
"smtp_tracking_default": true
}
}
{
"results": {
"message": "Account has been updated"
}
}
Company name
Account wide two factor authentication requirement
Account-level options.