Search user accounts
POST
/user/search
const url = 'https://client-api.abi.ai/user/search';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"uniqueId":"123abc789xyz"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://client-api.abi.ai/user/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "uniqueId": "123abc789xyz" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Supply one or more search fields. At least one field is required.
object
uniqueId
Your stable identifier for the user.
string
Example
123abc789xyzemail
The user’s email address.
string format: email
Example
janedoe@example.comphone
The user’s mobile number including international dialing code (E.164).
string
Example
+441234567890userStatus
The account status to match.
string
Example
activeUserExample
{ "uniqueId": "123abc789xyz"}Responses
Section titled “Responses”Matching user returned. See the User account model for the full response-field reference.
Media typeapplication/json
object
Example
{ "id": "abi1234", "uniqueId": "123abc789xyz", "userStatus": "activeUser", "firstName": "Jane", "lastName": "Doe", "email": "janedoe@gmail.com", "gender": "female", "phone": "+441234567890", "origin": "gb", "location": "es", "country": "it", "physicianCountry": "es", "language": "en", "dateOfBirth": "1994-10-07", "partnerName": "Abi", "associatedAccounts": 5}Request could not be completed.
Media typeapplication/json
object
code
Short machine-readable error code.
string
message
Human-readable explanation of the error.
string
Examplegenerated
{ "code": "example", "message": "example"}