{"_id":"588f722cbcace50f0052ba1c","__v":0,"category":{"_id":"588f722bbcace50f0052b9e6","__v":0,"project":"565f5fa26bafd40d0030a064","version":"588f722bbcace50f0052b9e1","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-25T18:09:36.891Z","from_sync":false,"order":4,"slug":"dashboard-api","title":"Dashboard API"},"project":"565f5fa26bafd40d0030a064","version":{"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":1,"createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"user":"565f3941ea46251700972783","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-22T18:39:22.972Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[{"language":"curl","code":"curl -b cookies.txt -c cookies.txt -H \"Content-Type: application/json\" -X POST -d '{\"email\":\"foobar:::at:::nanoscale.io\",\"password\":\"foobar\"}' \"https://api.nanoscale.io/sessions\""}]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"{\n    \"user\": {\n        \"id\": 94,\n        \"name\": \"Foo Bar\",\n        \"email\": \"foobar@nanoscale.io\",\n        \"admin\": false,\n        \"token\": \"\",\n        \"confirmed\": true,\n        \"password\": \"\",\n        \"password_confirmation\": \"\"\n    }\n}","name":""}]},"auth":"required","params":[{"_id":"56cb894a32011d250068192d","ref":"","in":"body","required":true,"desc":"The user's email","default":"","type":"string","name":"email"},{"_id":"56cb894a32011d250068192c","ref":"","in":"body","required":true,"desc":"The user's password","default":"","type":"string","name":"password"}],"url":"/sessions"},"isReference":true,"order":0,"body":"Creates a new session, authenticating a user.\n\n\nHere is a list of fields that can be provided:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"key\",\n    \"h-1\": \"type\",\n    \"h-2\": \"description\",\n    \"0-0\": \"email\",\n    \"1-0\": \"password\",\n    \"0-1\": \"`string`\",\n    \"1-1\": \"`string`\",\n    \"0-2\": \"The user's email.\",\n    \"1-2\": \"The user's password.\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]","excerpt":"","slug":"sessions","type":"endpoint","title":"/sessions"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

email:
required
string
The user's email
password:
required
string
The user's password

Examples


Result Format


Documentation

Creates a new session, authenticating a user. Here is a list of fields that can be provided: [block:parameters] { "data": { "h-0": "key", "h-1": "type", "h-2": "description", "0-0": "email", "1-0": "password", "0-1": "`string`", "1-1": "`string`", "0-2": "The user's email.", "1-2": "The user's password." }, "cols": 3, "rows": 2 } [/block]