POST api/session/CreateToken

Generates Access token using username and password

Request Information

URI Parameters

None.

Body Parameters

login credentials

Login
NameDescriptionTypeAdditional information
Email

string

Required

Data type: EmailAddress

Password

string

Required

Data type: Password

Persistent

boolean

None.

Redirect

string

Data type: Url

AccessToken

string

None.

BrowserName

string

None.

BrowserID

string

None.

IPAddress

string

None.

MachineName

string

None.

Platform

string

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "password": "sample string 2",
  "persistent": true,
  "redirect": "sample string 4",
  "accessToken": "sample string 5",
  "browserName": "sample string 6",
  "browserID": "sample string 7",
  "ipAddress": "sample string 8",
  "machineName": "sample string 9",
  "platform": "sample string 10"
}

application/xml, text/xml

Sample:
<Login xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.Accounts">
  <AccessToken>sample string 5</AccessToken>
  <BrowserID>sample string 7</BrowserID>
  <BrowserName>sample string 6</BrowserName>
  <Email>sample string 1</Email>
  <IPAddress>sample string 8</IPAddress>
  <MachineName>sample string 9</MachineName>
  <Password>sample string 2</Password>
  <Persistent>true</Persistent>
  <Platform>sample string 10</Platform>
  <Redirect>sample string 4</Redirect>
</Login>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Access token

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

text/csv

Sample:

Sample not available.

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PKd3�\4:��5xl/workbook.xml �(�����0��&�C��E�(N\�z��E�O�||o�vfg��|4�����G
�g��]6c�7*�cQ�]k���{1Ӷ���4o�:�#��p� �����.�X�:�;Ġ��@jZ�w��S�����2k��$l	��T>ö�Y
ZAJf�.
�P�2��
��+OQ��5�{��l�]~PKd3�\����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
d3�\B�[�''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Re7808baf70284e16" /></Relationships>PKd3�\(��$�xl/worksheets/sheet1.xml �(��QMo� �+��
���*IU���۴�vf�P��4��3d�&�`���=��x�=��]ɗ��㺒��}��cUL�ADFp��:�� D�5X8��Z�ުH�������h�E��r+<�*�T�f|f�W<�&[��Le�q�*C��=�Ж���LTEF��¯��1>�)ynJ.3V�_��g
�j��+NO`:iC��Sc�ͬI{�̪{~'�DM�z��ȵ\����n�Y=�����<+�4Y󬢪
��L�)J����{�d!n������������g����>PKd3�\k����Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�I�6��vÆm�&�8��ؑ�=�����ĂMW��==i���c��B>��֐gY�to���<T��m4`L���Ҋ
5t1N΃�hĐ��l��G�)�-�P��%^��~΀[&;^&���+zt�<�������E`G�-�~J�_C�%*�']�a�Z�E%d��RT��Z���¯�w>�A\,��4Ҕ�buW�=���ӥ�N��LM�9*)�j]6���o�b�PKd3�\Ѓc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PKd3�\1uf��xl/sharedStrings.xml �(�5�A
�0E�2�ަ��$]�@ڱ
4�����޸p�y|޳�;��*1��}�#�y�<;�߮��h�)����a�VD�]Y.��l��� ].č<rMA۬��R)L�iZ͡�&��c�X�a������M�U/!��ZAmA��F�5?dZ��PK-d3�\4:��5xl/workbook.xmlPK-d3�\����	�[Content_Types].xmlPK-
d3�\B�[�''V_rels/.relsPK-d3�\(��$��xl/worksheets/sheet1.xmlPK-d3�\k����P8xl/_rels/workbook.xml.relsPK-d3�\Ѓc'2E
xl/styles.xmlPK-d3�\1uf���xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PKd3�\�͢�5xl/workbook.xml �(�����0��&�C��
�H
'.^=x/��
�'m
>��7o;�����cz�Q���+����V�b�`,���)�t/b8�-Ԧ}+Ё$��8X�F{!�����X�@PÂRLj\�wѩ�S��g���d"���o�ΰ�bVH3%�Y`�ν+�	#W�8<��&i���d�-�V��d�]}PKd3�\����	�[Content_Types].xml �(����J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
d3�\�A@''_rels/.rels �(�<?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R0f0acb863fcd4cca" /></Relationships>PKd3�\(��$�xl/worksheets/sheet1.xml �(��QMo� �+��
���*IU���۴�vf�P��4��3d�&�`���=��x�=��]ɗ��㺒��}��cUL�ADFp��:�� D�5X8��Z�ުH�������h�E��r+<�*�T�f|f�W<�&[��Le�q�*C��=�Ж���LTEF��¯��1>�)ynJ.3V�_��g
�j��+NO`:iC��Sc�ͬI{�̪{~'�DM�z��ȵ\����n�Y=�����<+�4Y󬢪
��L�)J����{�d!n������������g����>PKd3�\�����Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;��%A6ݰ�\�v�IDb[�)�l]�H�B-*�A�V��==i���c�{�'�ΏF��&ji�Q�-��z�a��p�!N�a����[B�kJ�p�>1u�(�fb�zj�<�i�XEݒ�Lr�Z��(5J|6�<���Ÿ��#w=�~J��B�D*�}�¡.�<�kU�UV���S��:�����29fJVʦ��X��;�^���^:-�5��r�
V��*D�nj��/�_PKd3�\Ѓc'2E
xl/styles.xml �(��S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v�F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}���LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PKd3�\1uf��xl/sharedStrings.xml �(�5�A
�0E�2�ަ��$]�@ڱ
4�����޸p�y|޳�;��*1��}�#�y�<;�߮��h�)����a�VD�]Y.��l��� ].č<rMA۬��R)L�iZ͡�&��c�X�a������M�U/!��ZAmA��F�5?dZ��PK-d3�\�͢�5xl/workbook.xmlPK-d3�\����	�[Content_Types].xmlPK-
d3�\�A@''W_rels/.relsPK-d3�\(��$��xl/worksheets/sheet1.xmlPK-d3�\�����P9xl/_rels/workbook.xml.relsPK-d3�\Ѓc'2E
~xl/styles.xmlPK-d3�\1uf���xl/sharedStrings.xmlPK��