Skip to content

How to Search Organization Contacts?

API Documentation: https://api.raklet.com/swagger/ui/index/

Get An Access_Token

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

Screenshot: Get An Access_Token

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.

Screenshot: Add Organization ID

Insert Your Access_Token

Insert your access_token in the authorization value.

Screenshot: Insert Your Access_Token

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.

Screenshot: Query the API

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": "00000000-0000-0000-0000-000000000000"
    },
    {
      "Attribute": "attributes.lastName",
      "Comparison": "contains",
      "Value": "raklet",
      "Label": "Profile - Last Name",
      "IconClass": "icon-user",
      "DataType": "Text",
      "Uuid": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "isOr": false
}

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

Screenshot: Query the API

Example Curl code

curl -X GET "https://api.raklet.com/organisations/00000000-0000-0000-0000-000000000000/contacts?pageSize=20&offset=0&q=eyJmaWVsZE5hbWVzIjpbXSwib3JkZXJCeSI6eyJOYW1lIjpudWxsLCJEaXJlY3Rpb24iOm51bGx9LCJwcmVkaWNhdGVzIjpbeyJBdHRyaWJ1dGUiOiJhdHRyaWJ1dGVzLmZpcnN0TmFtZSIsIkNvbXBhcmlzb24iOiJjb250YWlucyIsIlZhbHVlIjoiYWhtZXQiLCJMYWJlbCI6IlByb2ZpbGUgLSBGaXJzdCBOYW1lIiwiSWNvbkNsYXNzIjoiaWNvbi11c2VyIiwiRGF0YVR5cGUiOiJUZXh0IiwiVXVpZCI6Ijc3NWIzMTQ2LTk2NDMtNGE3Zi04OWVlLTEyZGY0OTY0YjE1ZiJ9LHsiQXR0cmlidXRlIjoiYXR0cmlidXRlcy5sYXN0TmFtZSIsIkNvbXBhcmlzb24iOiJjb250YWlucyIsIlZhbHVlIjoicmFrbGV0IiwiTGFiZWwiOiJQcm9maWxlIC0gTGFzdCBOYW1lIiwiSWNvbkNsYXNzIjoiaWNvbi11c2VyIiwiRGF0YVR5cGUiOiJUZXh0IiwiVXVpZCI6IjViMDg0NzVjLWM4NWEtNDkxYy1iZWEwLTY5NzMwODk3Y2Y2ZCJ9XSwiaXNPciI6ZmFsc2V9" -H "accept: application/json"

Updated