MyCSI API - Documentation
GET Auth/{id}?Email={Email}
Method used to provide an authentication token for API use.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
API Token associated with the email address. |
globally unique identifier |
Required |
Email address associated with the API Token. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
The AuthModel object, containing the authentication token.
AuthModelName | Description | Type | Additional information |
---|---|---|---|
ErrorMessage |
Optional error message provided by the method call. |
string |
None. |
Message |
Optional message provided by the method call. |
string |
None. |
StatusCode |
The HTTP Status Code of the method call. |
HttpStatusCode |
None. |
Success |
Boolean flag indicating the success or failure of the method call. |
boolean |
None. |
Token |
Authentication token, used in all other API methods. |
globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "Message": "sample string 1", "StatusCode": 100, "Success": true, "Token": "91784aba-b2f0-4194-b673-71fa47130e59", "ErrorMessage": "sample string 3" }
application/octet-stream
Sample:
{"Message":"sample string 1","StatusCode":100,"Success":true,"Token":"91784aba-b2f0-4194-b673-71fa47130e59","ErrorMessage":"sample string 3"}
application/xml, text/xml
Sample:
<AuthModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI.MyCSI.WebAPI.Models"> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/CSI.MyCSI.WebAPI.Models.Shared">sample string 3</ErrorMessage> <Message xmlns="http://schemas.datacontract.org/2004/07/CSI.MyCSI.WebAPI.Models.Shared">sample string 1</Message> <StatusCode xmlns="http://schemas.datacontract.org/2004/07/CSI.MyCSI.WebAPI.Models.Shared">Continue</StatusCode> <Success xmlns="http://schemas.datacontract.org/2004/07/CSI.MyCSI.WebAPI.Models.Shared">true</Success> <Token>91784aba-b2f0-4194-b673-71fa47130e59</Token> </AuthModel>