Get Contact Requests in a Period of Time
GEThttps://api.cleverhub.co/api/v2/contacts/
This API allows you to fetch a complete list of contacts linked to your app-id. You can filter the results based on multiple query params. This API is paginated. The default is 20 records per page.
Request
Query Parameters
from_date string
Start date to query contact requests from, format 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. This datetime would be in UTC timezone
Example: 2022-01-01T00:00:00
to_date string
End date to query contact requests, format 'DD/MM/YY' or 'YYYY-MM-DDThh:mm:ss'. The datetime would be in UTC timezone
Example: 2022-01-01T00:00:00
page string
Page number to query. Currently we support 20 records per page.
per_page string
Default 20 records per page.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (auto)
Schema
per_pageinteger
pageinteger
total_pageinteger
records object[]
{
"total": 100,
"page": 1,
"per_page": 20,
"records": [
{
"email": "test@helloclever.co",
"first_name": "Luyx",
"last_name": "Tran",
"type": "individual",
"dob": "1991-12-24",
"phone": "+6123224242",
"reg_no": "123456789",
"gender": "male",
"street": "338 George Street",
"city": "Sydney",
"postal_code": "2000",
"state": "New South Wales",
"country": "AU",
"identity": {
"issue_country": "AU",
"document_number": "12345678",
"issue_date": "2024-04-16",
"expiry_date": "2024-04-16",
"id_doc_type": "Passport"
},
"kyc_statuses": [
{
"kyc_status": "approved",
"message": "null"
},
{
"kyc_status": "rejected",
"message": "KYC is rejected."
}
]
}
]
}
Bad Request
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"code": "string",
"message": "string"
}
}
{
"errors": {
"code": "BAD_REQUEST",
"message": "Invalid query parameters."
}
}
Unauthorized
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {
"code": "string",
"message": "string"
}
}
{
"errors": {
"code": "REQUIRE_LOGIN",
"message": "Not Authorized"
}
}
Authorization: app-id
name: app-idtype: apiKeydescription: The app-id is registered and secured inside Hello Clever system and only required when client has initiated or in the middle of the transaction.in: header
name: secret-keytype: apiKeydescription: The secret-key is our client's secret of the source. Required if a publishable key is used to retrieve the source.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.cleverhub.co/api/v2/contacts/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear