Get a client
Get a client
GET https://api.complycube.com/v1/clients/:id
Retrieves an existing client.
Path Parameters
Name
Type
Description
id
string
The ID of the client.
Headers
Name
Type
Description
Authorization
string
The live or sandbox API key.
{
"id": "5eb04fcd0f3e360008035eb1",
"type": "person",
"email": "[email protected]",
"mobile": "+12 345678910",
"telephone": "+12 345678910",
"joinedDate": "2020-01-01",
"personDetails": {
"firstName": "John",
"lastName": "Doe",
"dob": "1990-01-01",
"nationality": "GB"
},
"createdAt": "2020-01-04T17:24:29.146Z",
"updatedAt": "2020-01-04T17:24:29.146Z"
}{
"type": "resource_not_found",
"message": "Invalid client id '5eb04fcd0f3e360008035eb2'"
}Example request
curl -X GET https://api.complycube.com/v1/clients/{:clientId} \
-H 'Authorization: <YOUR_API_KEY>'const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const client = await complycube.client.get("CLIENT_ID");from complycube import ComplyCubeClient
cc_api = ComplyCubeClient(api_key='<YOUR API KEY>')
client = cc_api.clients.get('CLIENT_ID')use ComplyCube\ComplyCubeClient;
$ccapi = new ComplyCubeClient('<YOUR API KEY>');
$client = $ccapi->clients()->get($id);Last updated
Was this helpful?