Authenticates a Contact using a username and password, and returns its unique identifier on success.
Get | api/contacts/authenticate |
Resource Path: /sites/{company-id}/api/contacts/authenticate
Uri: https://secure.ontime360.com/sites/{company-id}/api/contacts/authenticate
Name | Description | Data Type |
---|---|---|
userName | A Contact's username as a plain-text String. | string |
password | A Contact's password as a plain-text String. | string |
The response body is of type string.
On success, returns the unique identifier of a Contact as a Guid. Returns null if the username or password does not belong to any existing Contact.Fault | Description |
---|---|
400 | Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information. |
401 | Authorization key is invalid or no longer exists. |
403 | Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information. |