All URIs are relative to https://api.eu.onfido.com/v3.4.
| Method | HTTP request | Description |
|---|---|---|
| cancelReport() | POST /reports/{report_id}/cancel | This endpoint is for cancelling individual paused reports. |
| createApplicant() | POST /applicants | Create Applicant |
| createCheck() | POST /checks | Create a check |
| createWebhook() | POST /webhooks | Create a webhook |
| deleteWebhook() | DELETE /webhooks/{webhook_id} | Delete a webhook |
| destroyApplicant() | DELETE /applicants/{applicant_id} | Delete Applicant |
| downloadDocument() | GET /documents/{document_id}/download | Download a documents raw data |
| downloadLivePhoto() | GET /live_photos/{live_photo_id}/download | Download live photo |
| downloadLiveVideo() | GET /live_videos/{live_video_id}/download | Download live video |
| editWebhook() | PUT /webhooks/{webhook_id} | Edit a webhook |
| findAddresses() | GET /addresses/pick | Search for addresses by postcode |
| findApplicant() | GET /applicants/{applicant_id} | Retrieve Applicant |
| findCheck() | GET /checks/{check_id} | Retrieve a Check |
| findDocument() | GET /documents/{document_id} | A single document can be retrieved by calling this endpoint with the document’s unique identifier. |
| findLivePhoto() | GET /live_photos/{live_photo_id} | Retrieve live photo |
| findLiveVideo() | GET /live_videos/{live_video_id} | Retrieve live video |
| findReport() | GET /reports/{report_id} | A single report can be retrieved using this endpoint with the corresponding unique identifier. |
| findWebhook() | GET /webhooks/{webhook_id} | Retrieve a Webhook |
| frameLiveVideo() | GET /live_videos/{live_video_id}/frame | Download live video frame |
| generateSdkToken() | POST /sdk_token | Generate a SDK token |
| listApplicants() | GET /applicants | List Applicants |
| listChecks() | GET /checks | Retrieve Checks |
| listDocuments() | GET /documents | List documents |
| listLivePhotos() | GET /live_photos | List live photos |
| listLiveVideos() | GET /live_videos | List live videos |
| listReports() | GET /reports | All the reports belonging to a particular check can be listed from this endpoint. |
| listWebhooks() | GET /webhooks | List webhooks |
| restoreApplicant() | POST /applicants/{applicant_id}/restore | Restore Applicant |
| resumeCheck() | POST /checks/{check_id}/resume | Resume a Check |
| resumeReport() | POST /reports/{report_id}/resume | This endpoint is for resuming individual paused reports. |
| updateApplicant() | PUT /applicants/{applicant_id} | Update Applicant |
| uploadDocument() | POST /documents | Upload a document |
| uploadLivePhoto() | POST /live_photos | Upload live photo |
cancelReport($report_id)This endpoint is for cancelling individual paused reports.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$report_id = 'report_id_example'; // string
try {
$apiInstance->cancelReport($report_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->cancelReport: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| report_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createApplicant($applicant_request): \Onfido\Model\ApplicantResponseCreate Applicant
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_request = new \Onfido\Model\ApplicantRequest(); // \Onfido\Model\ApplicantRequest
try {
$result = $apiInstance->createApplicant($applicant_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createApplicant: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_request | \Onfido\Model\ApplicantRequest |
\Onfido\Model\ApplicantResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createCheck($check_request): \Onfido\Model\CheckResponseCreate a check
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$check_request = new \Onfido\Model\CheckRequest(); // \Onfido\Model\CheckRequest
try {
$result = $apiInstance->createCheck($check_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createCheck: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| check_request | \Onfido\Model\CheckRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createWebhook($webhook_request): \Onfido\Model\WebhookResponseCreate a webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$webhook_request = new \Onfido\Model\WebhookRequest(); // \Onfido\Model\WebhookRequest
try {
$result = $apiInstance->createWebhook($webhook_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhook_request | \Onfido\Model\WebhookRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWebhook($webhook_id)Delete a webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$webhook_id = 'webhook_id_example'; // string
try {
$apiInstance->deleteWebhook($webhook_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhook_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
destroyApplicant($applicant_id)Delete Applicant
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
try {
$apiInstance->destroyApplicant($applicant_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->destroyApplicant: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
downloadDocument($document_id): \SplFileObjectDownload a documents raw data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$document_id = 'document_id_example'; // string
try {
$result = $apiInstance->downloadDocument($document_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| document_id | string |
\SplFileObject
- Content-Type: Not defined
- Accept:
*/*,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
downloadLivePhoto($live_photo_id): \SplFileObjectDownload live photo
Live photos are downloaded using this endpoint.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_photo_id = 'live_photo_id_example'; // string | The live photo’s unique identifier.
try {
$result = $apiInstance->downloadLivePhoto($live_photo_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadLivePhoto: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| live_photo_id | string | The live photo’s unique identifier. |
\SplFileObject
- Content-Type: Not defined
- Accept:
*/*,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
downloadLiveVideo($live_video_id): \SplFileObjectDownload live video
Live videos are downloaded using this endpoint.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_video_id = 'live_video_id_example'; // string | The live video’s unique identifier.
try {
$result = $apiInstance->downloadLiveVideo($live_video_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadLiveVideo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| live_video_id | string | The live video’s unique identifier. |
\SplFileObject
- Content-Type: Not defined
- Accept:
*/*,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
editWebhook($webhook_id, $webhook_request): \Onfido\Model\WebhookResponseEdit a webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$webhook_id = 'webhook_id_example'; // string
$webhook_request = new \Onfido\Model\WebhookRequest(); // \Onfido\Model\WebhookRequest
try {
$result = $apiInstance->editWebhook($webhook_id, $webhook_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->editWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhook_id | string | ||
| webhook_request | \Onfido\Model\WebhookRequest |
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findAddresses($postcode): \Onfido\Model\AddressesListSearch for addresses by postcode
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$postcode = 'postcode_example'; // string
try {
$result = $apiInstance->findAddresses($postcode);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findAddresses: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| postcode | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findApplicant($applicant_id): \Onfido\Model\ApplicantResponseRetrieve Applicant
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
try {
$result = $apiInstance->findApplicant($applicant_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findApplicant: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string |
\Onfido\Model\ApplicantResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findCheck($check_id): \Onfido\Model\CheckResponseRetrieve a Check
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$check_id = 'check_id_example'; // string
try {
$result = $apiInstance->findCheck($check_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findCheck: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| check_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findDocument($document_id): \Onfido\Model\DocumentResponseA single document can be retrieved by calling this endpoint with the document’s unique identifier.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$document_id = 'document_id_example'; // string
try {
$result = $apiInstance->findDocument($document_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| document_id | string |
\Onfido\Model\DocumentResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findLivePhoto($live_photo_id): \Onfido\Model\LivePhotoResponseRetrieve live photo
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_photo_id = 'live_photo_id_example'; // string | The live photo’s unique identifier.
try {
$result = $apiInstance->findLivePhoto($live_photo_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findLivePhoto: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| live_photo_id | string | The live photo’s unique identifier. |
\Onfido\Model\LivePhotoResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findLiveVideo($live_video_id): \Onfido\Model\LiveVideoRetrieve live video
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_video_id = 'live_video_id_example'; // string | The live video’s unique identifier.
try {
$result = $apiInstance->findLiveVideo($live_video_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findLiveVideo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| live_video_id | string | The live video’s unique identifier. |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findReport($report_id): \Onfido\Model\ReportA single report can be retrieved using this endpoint with the corresponding unique identifier.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$report_id = 'report_id_example'; // string
try {
$result = $apiInstance->findReport($report_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findReport: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| report_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findWebhook($webhook_id): \Onfido\Model\WebhookResponseRetrieve a Webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$webhook_id = 'webhook_id_example'; // string
try {
$result = $apiInstance->findWebhook($webhook_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->findWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhook_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
frameLiveVideo($live_video_id): \SplFileObjectDownload live video frame
Instead of the whole video, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_video_id = 'live_video_id_example'; // string | The live video’s unique identifier.
try {
$result = $apiInstance->frameLiveVideo($live_video_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->frameLiveVideo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| live_video_id | string | The live video’s unique identifier. |
\SplFileObject
- Content-Type: Not defined
- Accept:
*/*,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generateSdkToken($sdk_token_request): \Onfido\Model\SdkTokenResponseGenerate a SDK token
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sdk_token_request = new \Onfido\Model\SdkTokenRequest(); // \Onfido\Model\SdkTokenRequest
try {
$result = $apiInstance->generateSdkToken($sdk_token_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->generateSdkToken: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| sdk_token_request | \Onfido\Model\SdkTokenRequest |
\Onfido\Model\SdkTokenResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listApplicants($page, $per_page, $include_deleted): \Onfido\Model\ApplicantsListList Applicants
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$page = 1; // int | The page to return. The first page is `page=1`
$per_page = 20; // int | The number of objects per page.
$include_deleted = false; // bool | Whether to also include applicants scheduled for deletion.
try {
$result = $apiInstance->listApplicants($page, $per_page, $include_deleted);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listApplicants: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| page | int | The page to return. The first page is `page=1` | [optional] [default to 1] |
| per_page | int | The number of objects per page. | [optional] [default to 20] |
| include_deleted | bool | Whether to also include applicants scheduled for deletion. | [optional] [default to false] |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listChecks($applicant_id): \Onfido\Model\ChecksListRetrieve Checks
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
try {
$result = $apiInstance->listChecks($applicant_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listChecks: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listDocuments($applicant_id): \Onfido\Model\DocumentsListList documents
All documents belonging to an applicant can be listed from this endpoint
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
try {
$result = $apiInstance->listDocuments($applicant_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listDocuments: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listLivePhotos($applicant_id): \Onfido\Model\LivePhotosListList live photos
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string | The id of the applicant the live photos belong to.
try {
$result = $apiInstance->listLivePhotos($applicant_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listLivePhotos: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string | The id of the applicant the live photos belong to. |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listLiveVideos($applicant_id): \Onfido\Model\LiveVideosListList live videos
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string | The id of the applicant the live videos belong to.
try {
$result = $apiInstance->listLiveVideos($applicant_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listLiveVideos: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string | The id of the applicant the live videos belong to. |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listReports($check_id): \Onfido\Model\ReportsListAll the reports belonging to a particular check can be listed from this endpoint.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$check_id = 'check_id_example'; // string
try {
$result = $apiInstance->listReports($check_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listReports: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| check_id | string |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listWebhooks(): \Onfido\Model\WebhooksListList webhooks
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listWebhooks();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listWebhooks: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restoreApplicant($applicant_id)Restore Applicant
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
try {
$apiInstance->restoreApplicant($applicant_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->restoreApplicant: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resumeCheck($check_id)Resume a Check
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$check_id = 'check_id_example'; // string
try {
$apiInstance->resumeCheck($check_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->resumeCheck: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| check_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resumeReport($report_id)This endpoint is for resuming individual paused reports.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$report_id = 'report_id_example'; // string
try {
$apiInstance->resumeReport($report_id);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->resumeReport: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| report_id | string |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateApplicant($applicant_id, $applicant_request): \Onfido\Model\ApplicantResponseUpdate Applicant
Allows updating of an applicant’s information before any checks are created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
$applicant_request = new \Onfido\Model\ApplicantRequest(); // \Onfido\Model\ApplicantRequest
try {
$result = $apiInstance->updateApplicant($applicant_id, $applicant_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->updateApplicant: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string | ||
| applicant_request | \Onfido\Model\ApplicantRequest |
\Onfido\Model\ApplicantResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
uploadDocument($applicant_id, $type, $file, $side, $issuing_country, $validate_image_quality, $location): \Onfido\Model\DocumentResponseUpload a document
Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string | The ID of the applicant whose document is being uploaded.
$type = 'type_example'; // string | The type of document.
$file = "/path/to/file.txt"; // \SplFileObject | The file to be uploaded.
$side = 'side_example'; // string | Either the `front` or `back` of the document.
$issuing_country = 'issuing_country_example'; // string | The issuing country of the document, a 3-letter ISO code.
$validate_image_quality = True; // bool | Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds.
$location = new \Onfido\Model\Location(); // \Onfido\Model\Location
try {
$result = $apiInstance->uploadDocument($applicant_id, $type, $file, $side, $issuing_country, $validate_image_quality, $location);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->uploadDocument: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string | The ID of the applicant whose document is being uploaded. | |
| type | string | The type of document. | |
| file | \SplFileObject**\SplFileObject** | The file to be uploaded. | |
| side | string | Either the `front` or `back` of the document. | [optional] |
| issuing_country | string | The issuing country of the document, a 3-letter ISO code. | [optional] |
| validate_image_quality | bool | Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. | [optional] |
| location | \Onfido\Model\Location | [optional] |
\Onfido\Model\DocumentResponse
- Content-Type:
multipart/form-data - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
uploadLivePhoto($applicant_id, $file, $advanced_validation): \Onfido\Model\LivePhotoResponseUpload live photo
You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$config = Onfido\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'token=' . 'YOUR API KEY');
$config->setApiKeyPrefix('Authorization', 'Token');
$apiInstance = new Onfido\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$applicant_id = 'applicant_id_example'; // string
$file = "/path/to/file.txt"; // \SplFileObject | The file to be uploaded.
$advanced_validation = true; // bool | Validates that the live photo contains exactly one face.
try {
$result = $apiInstance->uploadLivePhoto($applicant_id, $file, $advanced_validation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->uploadLivePhoto: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| applicant_id | string | ||
| file | \SplFileObject**\SplFileObject** | The file to be uploaded. | |
| advanced_validation | bool | Validates that the live photo contains exactly one face. | [optional] [default to true] |
\Onfido\Model\LivePhotoResponse
- Content-Type:
multipart/form-data - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]