Developers · Clients API Developer
API REFERENCE

Clients API

Pass custom properties through a Flow URI, then search onboarded clients by those properties and read their interaction data after the Flow completes.

Base URL · Auth · Examples
Base URL https://clients.assentify.com Auth x-api-key Scope Tenant Identifier

How it works

The Clients API lets you pass specific properties through the URI of a Flow. After a client goes through the Flow, those custom properties are saved in the interaction data and become searchable through the API. To use this feature:

  1. Specify the custom properties in the Flow Builder JSON Viewer.
  2. In the Clients API, generate a Flow URI that includes these properties and their respective values.
  3. After the client completes the Flow, search for clients by the custom keys you provided.
Interactive referenceAn interactive Swagger reference is available at https://clients.assentify.com/swagger/index.html, where each endpoint can be filled in and executed.

Auth & tenant

Requests are authenticated with an x-api-key header. Client endpoints are scoped to your tenant, so most calls also take a Tenant Identifier that identifies your account within the platform.

NameInTypeDescription
x-api-keyheaderstringYour API key, used to authenticate the request.
Tenant IdentifierpathstringIdentifies your tenant. Supplied on the client and search endpoints.

Define custom properties in the JSON Viewer

Custom properties are defined on the Flow itself. Once defined, any values you pass for them through the Flow URI are stored in the interaction data and become searchable keys.

  1. Login into the Assentify Admin Portal (https://admin.assentify.com).
  2. Go to the Digital Services section.
  3. Click on the Flow you want to add the properties to.
  4. In the top right corner, click on Edit Engagement.
  5. Click on the magnifying glass icon of the Connector Block (the JSON Viewer).
  6. Fill in the property name.
  7. Click on the plus button to add it (for example, My Custom Property).
Why this mattersThe property name you add here becomes the key you later search on. Define every property you plan to pass through the Flow URI before you generate it.

Generate the Flow URI

POST/api/Engagement

Generate a Flow URI that includes your custom properties and their values. The response contains the URI you send to the client.

  1. Go to the Assentify Clients API (https://clients.assentify.com/swagger/index.html).
  2. Under the Engagement section, click on the /api/Engagement endpoint.
  3. Fill in the form data.
  4. Click on Execute. The response will contain the URI.
POST /api/Engagement
Host: clients.assentify.com
x-api-key: <your-api-key>

The response contains the generated Flow URI, which embeds the custom property values you supplied.

{
  "uri": "<generated-flow-uri>"
}
Source noteThe exact request field names for this endpoint are entered through the Swagger form and are not enumerated in the source guide, so they are not listed here.

Get Single Client

GET/api/Client/{ClientIdentifier}

Query a single client using the Client Identifier generated by the system.

NameInTypeDescription
ClientIdentifierpathstringThe client identifier generated by the system.
Tenant IdentifierpathstringIdentifies your tenant.
x-api-keyheaderstringYour API key.

You can filter the client model to only return the desired client documents. The following documents are controlled by Boolean values:

DocumentTypeDescription
KYC DocumentsbooleanAll KYC documents collected from the client (Passport, ID Card, and similar).
Signed DocumentsbooleanAll documents signed by the client.
History of InteractionsbooleanAll the interaction history that the client has completed.
Additional InformationbooleanThe custom properties provided by the tenant.
AML ScreeningbooleanThe results of AML screening, if any matches were confirmed.
  1. Go to the Assentify Clients API (https://clients.assentify.com/swagger/index.html).
  2. In the clients section, click on the api/Client/{ClientIdentifier} endpoint.
  3. Fill in the Tenant Identifier and Client Identifier.
  4. Set the Boolean filters for the client documents you want returned.
GET /api/Client/{ClientIdentifier}
Host: clients.assentify.com
x-api-key: <your-api-key>
{
  "kycDocuments": [ ... ],
  "signedDocuments": [ ... ],
  "historyOfInteractions": [ ... ],
  "additionalInformation": { ... },
  "amlScreening": { ... }
}
Source noteThe response is the client model filtered by the Boolean flags above. Individual field names within each document set are not enumerated in the source guide.

Search Client

POST/api/Client/Search/{key}

Search for a client using one of the custom keys you provided in the JSON Viewer.

NameInTypeDescription
keypathstringThe name of the custom key you provided.
Tenant IdentifierpathstringIdentifies your tenant.
x-api-keyheaderstringYour API key.
search valuebodystringThe value to search for on the given key.
document filtersbodybooleanFilter the returned client documents (KYC, Signed, History, Additional Information, AML Screening).
  1. Go to the Assentify Clients API (https://clients.assentify.com/swagger/index.html).
  2. In the clients section, click on the api/Client/Search/{key} endpoint.
  3. Fill in the Tenant Identifier and the Key (the name of the custom key you provided).
  4. In the request body, filter the client documents and provide the search value.
POST /api/Client/Search/{key}
Host: clients.assentify.com
x-api-key: <your-api-key>
Content-Type: application/json

{
  "searchValue": "<value-to-match>"
}
[
  {
    "clientIdentifier": "<client-identifier>",
    "additionalInformation": { "<key>": "<value-to-match>" }
  }
]
POST/api/Client/Search/Bulk/{key}

Similar to Search Client, but instead of a single search value it accepts a list of values so you can bulk search clients.

NameInTypeDescription
keypathstringThe name of the custom key you provided.
Tenant IdentifierpathstringIdentifies your tenant.
x-api-keyheaderstringYour API key.
valuesbodyarray<string>The list of values to search for on the given key.
document filtersbodybooleanFilter the returned client documents.
  1. Go to the Assentify Clients API (https://clients.assentify.com/swagger/index.html).
  2. In the clients section, click on the api/Client/Search/Bulk/{key} endpoint.
  3. Fill in the Tenant Identifier and the Key (the name of the custom key you provided).
  4. In the body of this request, provide a filter for the client documents as well as the list of values.
POST /api/Client/Search/Bulk/{key}
Host: clients.assentify.com
x-api-key: <your-api-key>
Content-Type: application/json

{
  "values": [ "<value-1>", "<value-2>" ]
}
[
  {
    "clientIdentifier": "<client-identifier>",
    "additionalInformation": { "<key>": "<value-1>" }
  }
]

Get All Clients

GET/api/Client

Retrieve all the clients you currently have in the system.

NameInTypeDescription
Tenant IdentifierpathstringIdentifies your tenant.
x-api-keyheaderstringYour API key.
  1. Go to the Assentify Clients API (https://clients.assentify.com/swagger/index.html).
  2. In the clients section, click on the api/Client endpoint.
  3. Fill in the Tenant Identifier.
GET /api/Client
Host: clients.assentify.com
x-api-key: <your-api-key>
[
  { "clientIdentifier": "<client-identifier>" }
]