logo
API Documentation
Introduction

The Portfolio Mason API allows you to perform all the operations that you do with our web client. Portfolio Mason API is built using REST principles which ensures predictable URLs that makes our applications easy to use. This API follows HTTP rules. Every resource is exposed as a URL. The URL of each resource can be obtained by accessing the API Root Endpoint: "http://api.portfoliomason.com/api/v1/".

This is the first version of the Portfolio Mason API.
Portfolio Mason API require a minimum of two mandatory headers:

  1. "authorization" - Authorization Token.
  2. "user-id" - API User Id.
You can obtain this headers values sending a email to: support@portfoliomason.com

Portfolio Mason API support the following HTTP Methods:

  • GET (Used for retrieving data)
  • POST (Used for creating resources and performing resource actions)
  • PUT (Used for updating resources)
  • DELETE (Used for deleting resources)
Portfolio Mason API Response will be in the JSON format. Other formats supported are csv and pdf formats as well for which the required response format need to be specified in the respective request's.

All timestamps are returned in the ISO 8601 format - YYYY-MM-DDThh:mm:ssTZD.
Example: 2017-02-17T17:38:06-0700

Portfolio Mason API uses HTTP status codes to indicate success or failure of an API call. Commonly used HTTP status codes are listed below.

  • 200 (OK)
  • 201 (Created)
  • 400 (Bad request)
  • 401 (Unauthorized (Invalid AuthToken))
  • 404 (URL Not Found)
  • 405 (Method Not Allowed - Method you have called is not supported for the invoked A)
  • 429 (Rate Limit Exceeded - API usage limit exceeded)
  • 500 (Internal Error)

API Root Endpoint
http://api.portfoliomason.com/api/v1
Example
$ curl http://api.portfoliomason.com/api/v1/strategies/delete
   -H 'content-type: application/json;charset=UTF-8
   -H 'authorization: bb6604e8e4awg9c892e560d53663oec5
   -H 'user-id: 57ca0a6be4b06166f318a303'
Email Templates

Refers to the templates used to send transactional email to the user.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Retrieve List of Templates.
These templates can be used to respond to users with valuable information about the transaction (Transactional Emails).
POST
curl http://api.portfoliomason.com/api/v1/templates
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Send email with template.
These templates can be used to respond to users with valuable information about the transaction (Transactional Emails).
POST
curl http://api.portfoliomason.com/api/v1/templates/send
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
ETFs

Refers to the ETF's containing information and values ​​in our database.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Get one symbols.
POST
curl http://api.portfoliomason.com/api/v1/symbols
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get all symbols.
POST
curl http://api.portfoliomason.com/api/v1/symbols/all
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get inactive symbols.
POST
curl http://api.portfoliomason.com/api/v1/symbols/inactive
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get markets data.
POST
curl http://api.portfoliomason.com/api/v1/symbols/market/overview
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get timeseries risk chart.
POST
curl http://api.portfoliomason.com/api/v1/symbols/timeseries/risk/chart
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get timeseries technical chart.
POST
curl http://api.portfoliomason.com/api/v1/symbols/timeseries/technical/chart
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get holdings summary.
POST
curl http://api.portfoliomason.com/api/v1/symbols/holdings/summary
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get correlation of two symbols.
POST
curl http://api.portfoliomason.com/api/v1/symbols/correlation
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get correlation file.
POST
curl http://api.portfoliomason.com/api/v1/symbols/correlation/file
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get top 20/bottom 20 rankings.
POST
curl http://api.portfoliomason.com/api/v1/symbols/rankings
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Optimizations

Refers to the allocation and risk calculation for a given portfolio.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Get Optimized tables.
POST
curl http://api.portfoliomason.com/api/v1/optimizer/optimized/tables
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Strategies

Refers to the build strategies.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Get strategy.
POST
curl http://api.portfoliomason.com/api/v1/strategies/get
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save strategy.
POST
curl http://api.portfoliomason.com/api/v1/strategies/save
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get strategies list.
POST
curl http://api.portfoliomason.com/api/v1/strategies/list
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get universe fields.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universe/fields
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get universe list.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universe
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Delete strategy.
POST
curl http://api.portfoliomason.com/api/v1/strategies/delete
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get default constraints.
POST
curl http://api.portfoliomason.com/api/v1/strategies/constraints/default
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Methodology/frequency values.
POST
curl http://api.portfoliomason.com/api/v1/strategies/grid
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Strategy optimizer.
POST
curl http://api.portfoliomason.com/api/v1/strategies/optimizer
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Strategy risk calcuation.
POST
curl http://api.portfoliomason.com/api/v1/strategies/risk/calculator
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get table list.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/list
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get table list data.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/list/data
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save table.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/save
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Load table data.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/load
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Delete table.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/delete
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Set rebalance dates.
POST
curl http://api.portfoliomason.com/api/v1/strategies/table/set/rebalance/dates
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Load universes.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universes/load
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save universe.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universes/save
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Modify universe.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universes/modify
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Delete universe.
POST
curl http://api.portfoliomason.com/api/v1/strategies/universes/delete
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Users

Refers to the users data, including validations and logins.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Insert a users.
POST
curl http://api.portfoliomason.com/api/v1/users
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get all users.
POST
curl http://api.portfoliomason.com/api/v1/users/all
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get user by id.
POST
curl http://api.portfoliomason.com/api/v1/users/by/id
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get user by user-id.
POST
curl http://api.portfoliomason.com/api/v1/users/by/user/id
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get user by email.
POST
curl http://api.portfoliomason.com/api/v1/users/by/email
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get user by hash.
POST
curl http://api.portfoliomason.com/api/v1/users/by/hash
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Validate user.
POST
curl http://api.portfoliomason.com/api/v1/users/login
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save user settings.
POST
curl http://api.portfoliomason.com/api/v1/users/settings/save
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Resend activation email.
POST
curl http://api.portfoliomason.com/api/v1/users/resend/activation
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Activate user.
PUT
curl http://api.portfoliomason.com/api/v1/users/activation
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Change password.
PUT
curl http://api.portfoliomason.com/api/v1/users/change/password
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Forgotten password.
PUT
curl http://api.portfoliomason.com/api/v1/users/forgotten/password
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Forgotten password check.
POST
curl http://api.portfoliomason.com/api/v1/users/forgotten/password/check
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Update user.
PUT
curl http://api.portfoliomason.com/api/v1/users/update
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Update user field.
PUT
curl http://api.portfoliomason.com/api/v1/users/update/fields
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Delete user field.
PUT
curl http://api.portfoliomason.com/api/v1/users/unset/fields
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Lock/unlock user.
PUT
curl http://api.portfoliomason.com/api/v1/users/update/blocked
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Delete user.
DELETE
curl http://api.portfoliomason.com/api/v1/users/delete
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Recover deleted user.
POST
curl http://api.portfoliomason.com/api/v1/users/recover
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get user session.
POST
curl http://api.portfoliomason.com/api/v1/users/session
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Start user trail.
POST
curl http://api.portfoliomason.com/api/v1/users/trial/start
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
User trail status.
POST
curl http://api.portfoliomason.com/api/v1/users/trial/status
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
All User trail status.
POST
curl http://api.portfoliomason.com/api/v1/users/trial/status/all
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
User trail extension.
POST
curl http://api.portfoliomason.com/api/v1/users/trial/extension
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Reset user trail.
POST
curl http://api.portfoliomason.com/api/v1/users/trial/reset
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Alert save settings.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/save/settings
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Load strategies data for alerts.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/get/strategies
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save portfolio for alerts.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/save/portfolios
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save alert.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/save/alerts
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save fields for alerts.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/save/fields
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Calculate risk for portfolio on alerts.
POST
curl http://api.portfoliomason.com/api/v1/users/alerts/calculate/portfolio
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get favorites list.
POST
curl http://api.portfoliomason.com/api/v1/users/favorites/list
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save favorites.
POST
curl http://api.portfoliomason.com/api/v1/users/favorites/save
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Save favorites settings.
POST
curl http://api.portfoliomason.com/api/v1/users/favorites/save/settings
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Favorites check.
POST
curl http://api.portfoliomason.com/api/v1/users/favorites/check
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Favorites exchange.
POST
curl http://api.portfoliomason.com/api/v1/users/favorites/exchange
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Admin - change user level.
PUT
curl http://api.portfoliomason.com/api/v1/users/admin/change/user/level
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Admin - change user password.
POST
curl http://api.portfoliomason.com/api/v1/users/admin/change/user/password
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Admin - get strategy by id.
POST
curl http://api.portfoliomason.com/api/v1/users/admin/get/strategies/by/id
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Admin - set temporary token.
POST
curl http://api.portfoliomason.com/api/v1/users/admin/set/temporary/token
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Admin - unset temporary token.
POST
curl http://api.portfoliomason.com/api/v1/users/admin/unset/temporary/token
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Validate user via token.
POST
curl http://api.portfoliomason.com/api/v1/users/login/token
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
	HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Utilities

Refers to the templates used to send email to the user.

"name" String (Name of the template)
"subject" String (Subject to be include in the email)
"content" String (HTML content or body of the email)
"headers" Null
Get server time.
POST
curl http://api.portfoliomason.com/api/v1/system/time
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
		HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}
Get server md5 hash.
POST
curl http://api.portfoliomason.com/api/v1/system/hash/md5
-H 'Content-Type:application/json;charset=UTF-8'
-H 'authorization: bb6604e8e4awg9c892e560d53663oec5'
-H 'user-id: 57ca0a6be4b06166f318a303'
Response Example
		HTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"data": [
{
"subject": "New Post Pending",
"name": "articles_comments",
"content": " [[html-content]] "
},
{
"subject": "Thanks for your Order",
"name": "ec_purchase",
"content": " [[html-content]] "
},
{...}
],
"errorMessage": "No description available.",
"warning": "0",
"error": "0"
}