All URIs are relative to https://api.passbase.com/verification/v2.
| Method | HTTP request | Description |
|---|---|---|
| getIdentityById() | GET /identities/{id} | Get identity |
| getIdentityResourceById() | GET /identity/{id}/resources/{resource_id} | Get resource |
| getIdentityResourceFileById() | GET /identity/{id}/resources/{resource_id}/resource_files/{resource_file_id} | Get resource file |
| listIdentities() | GET /identities | List identities |
| listIdentityResources() | GET /identity/{id}/resources | List resources |
getIdentityById($id): \Passbase\models\IdentityGet identity
Retrieve an identity by providing the identity ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Passbase\Api\IdentityApi(
// 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
);
$id = 'id_example'; // string | Unique ID of the identity to return
try {
$result = $apiInstance->getIdentityById($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->getIdentityById: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Unique ID of the identity to return |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getIdentityResourceById($id, $resource_id): \Passbase\models\ResourceGet resource
Get a resource attached to an identity by providing the resource ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Passbase\Api\IdentityApi(
// 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
);
$id = 'id_example'; // string | Identity id
$resource_id = 'resource_id_example'; // string | Resource id
try {
$result = $apiInstance->getIdentityResourceById($id, $resource_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->getIdentityResourceById: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Identity id | |
| resource_id | string | Resource id |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getIdentityResourceFileById($id, $resource_id, $resource_file_id): \Passbase\models\ResourceFileGet resource file
Get a raw resource file attached to an identity by providing the resource ID and the resource file ID. This is a protected route and you'll need a specific government authorization to access it.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Passbase\Api\IdentityApi(
// 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
);
$id = 'id_example'; // string | Identity id
$resource_id = 'resource_id_example'; // string | Resource id
$resource_file_id = 'resource_file_id_example'; // string | Resource file id
try {
$result = $apiInstance->getIdentityResourceFileById($id, $resource_id, $resource_file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->getIdentityResourceFileById: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Identity id | |
| resource_id | string | Resource id | |
| resource_file_id | string | Resource file id |
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listIdentities($limit, $cursor): \Passbase\models\PaginatedIdentitiesList identities
List all the identities retrievable by the provided API Secret Key.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Passbase\Api\IdentityApi(
// 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
);
$limit = 100; // int
$cursor = aWQ6NDA3MQ%3D%3D; // string
try {
$result = $apiInstance->listIdentities($limit, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->listIdentities: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | [optional] | |
| cursor | string | [optional] |
\Passbase\models\PaginatedIdentities
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listIdentityResources($id, $limit, $cursor): \Passbase\models\PaginatedResourcesList resources
List resources attached to an identity by providing the identity ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: SecretApiKey
$config = Passbase\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Passbase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
$apiInstance = new Passbase\Api\IdentityApi(
// 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
);
$id = 'id_example'; // string | Identity id
$limit = 100; // int
$cursor = aWQ6NDA3MQ%3D%3D; // string
try {
$result = $apiInstance->listIdentityResources($id, $limit, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IdentityApi->listIdentityResources: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | Identity id | |
| limit | int | [optional] | |
| cursor | string | [optional] |
\Passbase\models\PaginatedResources
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]