Accounts

📘

Do you have any questions on our Email API? Write to us at [email protected]

/account/viewUserDetail

Retrieve account user details.

Example Request

{
    "owner_id":"example id",
    "token":"example token"
}

Example Success Response

{
    "status": "success",
    "user_data":{
        "name":"john yu",
        "email":"[email protected]",
        "mobile":"9999999999",
        "create_date":67457775764,
        "allowed_speed":300,
        "reputation":"50%"
    }
}

Example Error Response

{
    "status": "error",
    "code": -1,
    "name": "AuthenticationError",
    "message": "Token MissMatch"
}

Parameters

ParameterTypeDescription
owner_id*stringa valid SendCleanUser Id
token*stringa valid token

*compulsory field

Return Value: Success

struct — the results of retrieving user details

FieldTypeDescription
statusstringsuccess
user_datastructuser detail object

user_datafields:

FieldTypeDescription
namestringuser's full name
emailstringuser's email address
mobilestringuser's mobile number
create_dateintegeraccount creation date in seconds
allowed_speedintegerallowed sending speed
reputationstringsender reputation percentage

Return Value: Error

struct — the error results when attempting to retrieve user details

FieldTypeDescription
statusstringerror
codeintegererror code
namestringerror type name
messagestringhuman readable message

Error Types

ValidationError — The parameters passed to the API call are invalid or not provided when required.

GeneralError — An unexpected error occurred processing the request. SendClean Developers will be notified.

AuthenticationError — Provided owner_id and token was not matched.


Did this page help you?