Skip to main content

How to Search Organization Contacts?

How to use API? How to search organisation contacts

Get An Access_Token

You need to get an access_token(https://api.raklet.com/token) with an admin profile.


​

Add Organization ID

After that, you need to add your organization ID in the Value box. You can find your organization ID in the admin settings.

Insert Your Access_Token

Insert your access_token in the authorization value.

Query the API

After that, you can use base64 to query the API with the q param. for all contracts. https://www.base64decode.org/ would help you convert your JSON to base64.

If you use our filter on the admin contacts module, you can see the generated q as well.

Url which decodes to

{
"fieldNames": [

],
"orderBy": {
"Name": null,
"Direction": null
},
"predicates": [
{
"Attribute": "attributes.firstName",
"Comparison": "contains",
"Value": "ahmet",
"Label": "Profile - First Name",
"IconClass": "icon-user",
"DataType": "Text",
"Uuid": "775b3146-9643-4a7f-89ee-12df4964b15f"
},
{
"Attribute": "attributes.lastName",
"Comparison": "contains",
"Value": "raklet",
"Label": "Profile - Last Name",
"IconClass": "icon-user",
"DataType": "Text",
"Uuid": "5b08475c-c85a-491c-bea0-69730897cf6d"
}
],
"isOr": false
}

Once you complete these steps, you'll be able to search your contacts.

Example Curl code

curl -X GET "https://api.raklet.com/organisations/126c9361-bb32-4f61-9048-19990bb22a3d/contacts?pageSize=20&offset=0&q=eyJmaWVsZE5hbWVzIjpbXSwib3JkZXJCeSI6eyJOYW1lIjpudWxsLCJEaXJlY3Rpb24iOm51bGx9LCJwcmVkaWNhdGVzIjpbeyJBdHRyaWJ1dGUiOiJhdHRyaWJ1dGVzLmZpcnN0TmFtZSIsIkNvbXBhcmlzb24iOiJjb250YWlucyIsIlZhbHVlIjoiYWhtZXQiLCJMYWJlbCI6IlByb2ZpbGUgLSBGaXJzdCBOYW1lIiwiSWNvbkNsYXNzIjoiaWNvbi11c2VyIiwiRGF0YVR5cGUiOiJUZXh0IiwiVXVpZCI6Ijc3NWIzMTQ2LTk2NDMtNGE3Zi04OWVlLTEyZGY0OTY0YjE1ZiJ9LHsiQXR0cmlidXRlIjoiYXR0cmlidXRlcy5sYXN0TmFtZSIsIkNvbXBhcmlzb24iOiJjb250YWlucyIsIlZhbHVlIjoicmFrbGV0IiwiTGFiZWwiOiJQcm9maWxlIC0gTGFzdCBOYW1lIiwiSWNvbkNsYXNzIjoiaWNvbi11c2VyIiwiRGF0YVR5cGUiOiJUZXh0IiwiVXVpZCI6IjViMDg0NzVjLWM4NWEtNDkxYy1iZWEwLTY5NzMwODk3Y2Y2ZCJ9XSwiaXNPciI6ZmFsc2V9" -H "accept: application/json"
Did this answer your question?