Description
This API will return the user information associated with the passed Email.
| Service Name | Get User by Email |
| Service Type | REST |
| Method | GET |
| UAT (Sandbox) URL |
https://integration.uat.marley.ai/api/user/email/{email} |
| Production URL | https://integration.himarley.io/api/user/email/{email} |
| Technical Documentation | View technical documentation with sample request and response payloads hosted on Postman. |
Table of Contents
API Request
Flow
- Send API request with the path parameter of the user email.
- Hi Marley receives the request and validates the user email exists.
- Hi Marley responds with the customer object data.
Request Example
https://integration.uat.marley.ai/api/user/email/testertester123@verizon.net
Request Path Breakdown
| Property | Values | Description |
Type |
Required | Example | Validation |
|
The email associated with the user profile within Hi Marley. Can be an operator or end-user (customer) email. |
string |
true |
testertester123@verizon.net |
|
API Response
Response Payload Example
{
"id": "bc13bc97-23eb-40eb-ac0f-12341ee99aae",
"first": "james",
"last": "bondd",
"email": "testertester123@verizon.net"
"mobile": "+15552320405",
"role": "enduser",
"optStatus": false,
"optStatusDetail": "OPTED_OUT"
}
Response Fields Breakdown
| Element | Description | Type | Required | Example |
| id |
The identifier generated and assigned to the customer. |
string |
true |
"id": "bc13bc97-23eb-40eb-ac0f-12341ee99aae" |
| first |
The customers given name. |
string |
true |
"first": "james" |
| last |
The last name of the person assigned to the Hi Marley case. |
string |
true |
"last": "bondd" |
|
The customers email address. |
string |
false |
"email": "testertester123@verizon.net | |
| mobile |
The customers mobile number. |
int |
true |
"mobile": "+15552320405" |
| role |
The customers role. Can be operator or enduser. |
enum |
true |
"role": "enduser" |
| optStatus |
The current opt status for the customer. |
boolean |
true |
"optStatus": false |
| optStatusDetail |
Description of the current opt status for the customer. |
string |
true |
"optStatusDetail": "OPTED_OUT" |
Common Errors to Handle
- [404] Case Not Found - More Details
Comments
0 comments
Please sign in to leave a comment.