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 |
Identity getIdentityById(id)
Get identity
Retrieve an identity by providing the identity ID.
const {
PassbaseClient,
PassbaseConfiguration,
ResponseFormats,
} = require("@passbase/node");
const apiKey = "[redacted]";
const config = new PassbaseConfiguration({
apiKey,
format: ResponseFormats.Json,
});
const client = new PassbaseClient(config);
let id = null; // String | Unique ID of the identity to return
client.getIdentityById(id).then(
data => {
console.log("API called successfully. Returned data: " + data);
},
error => {
console.error(error);
},
);| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Unique ID of the identity to return |
- Content-Type: Not defined
- Accept: application/json
Resource getIdentityResourceById(id, resourceId)
Get resource
Get a resource attached to an identity by providing the resource ID.
const {
PassbaseClient,
PassbaseConfiguration,
ResponseFormats,
} = require("@passbase/node");
const apiKey = "[redacted]";
const config = new PassbaseConfiguration({
apiKey,
format: ResponseFormats.Json,
});
const client = new PassbaseClient(config);
let id = "id_example"; // String | Identity id
let resourceId = "resourceId_example"; // String | Resource id
client.getIdentityResourceById(id, resourceId).then(
data => {
console.log("API called successfully. Returned data: " + data);
},
error => {
console.error(error);
},
);| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Identity id | |
| resourceId | String | Resource id |
- Content-Type: Not defined
- Accept: application/json
Resource getIdentityResourceFileById(id, resourceId)
Get resource
Get a resource attached to an identity by providing the resource ID.
const {
PassbaseClient,
PassbaseConfiguration,
ResponseFormats,
} = require("@passbase/node");
const apiKey = "[redacted]";
const config = new PassbaseConfiguration({
apiKey,
format: ResponseFormats.Json,
});
const client = new PassbaseClient(config);
let id = "id_example"; // String | Identity id
let resourceId = "resourceId_example"; // String | Resource id
let resourceFileId = "resourceFileId_example"; // String | ResourceFile id
client.getIdentityResourceFileById(id, resourceId, resourcefileId).then(
data => {
console.log("API called successfully. Returned data: " + data);
},
error => {
console.error(error);
},
);| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Identity id | |
| resourceId | String | Resource id | |
| resourceFileId | String | Resource file id |
- Content-Type: Not defined
- Accept: application/json
PaginatedIdentities listIdentities(opts)
List identities
List all the identities retrievable by the provided API Secret Key.
import VerificationApi from 'verification_api';
const apiKey = "[redacted]";
const config = new PassbaseConfiguration({
apiKey,
format: ResponseFormats.Json,
});
const client = new PassbaseClient(config);
let opts = {
'limit': 100, // Number |
'cursor': aWQ6NDA3MQ%3D%3D // String |
};
client.listIdentities(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Number | [optional] | |
| cursor | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
PaginatedResources listIdentityResources(id, opts)
List resources
List resources attached to an identity by providing the identity ID.
const {
PassbaseClient,
PassbaseConfiguration,
ResponseFormats,
} = require("@passbase/node");
const apiKey = "[redacted]";
const config = new PassbaseConfiguration({
apiKey,
format: ResponseFormats.Json,
});
const client = new PassbaseClient(config);
let id = "id_example"; // String | Identity id
let opts = {
'limit': 100, // Number |
'cursor': aWQ6NDA3MQ%3D%3D // String |
};
client.listIdentityResources(id, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Identity id | |
| limit | Number | [optional] | |
| cursor | String | [optional] |
- Content-Type: Not defined
- Accept: application/json