{"_id":"5693f483d8c04d1700e5ad74","category":{"_id":"563cc7129799fb0d00047689","project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","pages":["563cc7139799fb0d0004768b","5693f483d8c04d1700e5ad74","56940c301005590d0062ca56","56b8b4ee43bbd10d0081d162"],"__v":4,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-06T15:28:18.256Z","from_sync":false,"order":0,"slug":"documentation","title":"Overview"},"project":"563cc7119799fb0d00047685","version":{"_id":"563cc7119799fb0d00047688","__v":18,"project":"563cc7119799fb0d00047685","createdAt":"2015-11-06T15:28:17.683Z","releaseDate":"2015-11-06T15:28:17.683Z","categories":["563cc7129799fb0d00047689","566f37f37ffa002300c3cd5b","56914e9bd47b020d002225ac","5692b19ffe72e00d00e4f0a8","56940bc2d8c04d1700e5adb6","56940bc83e9d080d00f064f0","56951b2dfcb1032d0089df7a","569522aecaa32519009c410c","569523ce562335190016da97","569523fddcaf0d1700cb86bf","56980e4a8560a60d00e2c3c3","569921a41693520d002e1305","5699323b7465970d00650b82","569e6cc4fbee990d0072d927","56a2768a0aefae0d00b7fe66","5862e862b8b7fa23009665b7","592835c7bc8bca0f000cc9ff","596f693df43cca002e690e1c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Model T","version_clean":"1.0.0","version":"1"},"parentDoc":null,"__v":7,"user":"563cc6fa8894d20d00014ea3","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-11T18:29:23.819Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"The DriveWealth REST API needs a valid session key on each request made, except the [Create Session](doc:create-session) Method which is used to create said session key. After successfully creating a session key, it must be passed in the header via the `x-mysolomeo-session-key` variable. For example, here's a request to get the details of an instrument (via the [Get Instrument](doc:get_instrument) Method):\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"GET /v1/instruments/a67422af-8504-43df-9e63-7361eb0bd99e?options=F HTTP/1.1\\nHost: api.drivewealth.io\\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\\nAccept: application/json\\nContent-Type: application/json\",\n \"language\": \"http\"\n }\n ]\n}\n[/block]","excerpt":"Authenticating with REST.","slug":"authentication","type":"basic","title":"Authentication"}

Widgets

Authentication

Authenticating with REST.

The DriveWealth REST API needs a valid session key on each request made, except the [Create Session](doc:create-session) Method which is used to create said session key. After successfully creating a session key, it must be passed in the header via the `x-mysolomeo-session-key` variable. For example, here's a request to get the details of an instrument (via the [Get Instrument](doc:get_instrument) Method):
[block:code]
{
"codes": [
{
"code": "GET /v1/instruments/a67422af-8504-43df-9e63-7361eb0bd99e?options=F HTTP/1.1\nHost: api.drivewealth.io\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\nAccept: application/json\nContent-Type: application/json",
"language": "http"
}
]
}
[/block]