Get Identities
Description
Returns a list of Identities on your account.
Request
HTTP Method: GET
URI Path: /v3/identities
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
---|---|
country |
|
proofs |
|
addresses |
|
addresses.country |
|
proofs.proof_type |
|
permanent_documents |
|
permanent_documents.template |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
---|---|---|---|---|
first_name |
|
Yes |
Yes |
The |
first_name_contains |
|
Yes |
Yes |
The |
last_name |
|
Yes |
Yes |
The |
last_name_contains |
|
Yes |
Yes |
The |
phone_number |
|
Yes |
Yes |
The |
phone_number_contains |
|
Yes |
No |
The |
id_number |
|
Yes |
Yes |
The |
id_number_contains |
|
Yes |
Yes |
The |
birth_date |
|
No |
Yes |
The |
company_name |
|
Yes |
Yes |
The |
company_name_contains |
|
Yes |
Yes |
The |
company_reg_number |
|
Yes |
Yes |
The |
company_reg_number_contains |
|
Yes |
Yes |
The |
vat_id |
|
Yes |
Yes |
The |
vat_id_contains |
|
Yes |
Yes |
The |
description |
|
Yes |
Yes |
The |
description_contains |
|
Yes |
Yes |
The |
personal_tax_id |
|
Yes |
Yes |
The |
personal_tax_id_contains |
|
Yes |
Yes |
The |
identity_type |
|
No |
No |
The |
country.id |
|
No |
No |
The |
external_reference_id |
|
No |
No |
The |
Sorting:
Value |
Sorts by: |
---|---|
first_name |
The |
last_name |
The |
phone_number |
The |
id_number |
The |
birth_date |
The |
company_name |
The |
company_reg_number |
The |
vat_id |
The |
description |
The |
personal_tax_id |
The |
Fielding:
Value |
Returns: |
---|---|
first_name |
The |
last_name |
The |
phone_number |
The |
id_number |
The |
birth_date |
The |
company_name |
The |
company_reg_number |
The |
vat_id |
The |
description |
The |
personal_tax_id |
The |
identity_type |
The |
created_at |
The |
external_reference_id |
The |
verified |
The |
Examples
GET /v3/identities HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
curl -i -X GET https://api.didww.com/v3/identities -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [
{
"id": "0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c",
"type": "identities",
"attributes": {
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "353-1-9015266",
"id_number": "0000000000",
"birth_date": "2000-01-01",
"company_name": null,
"company_reg_number": null,
"vat_id": null,
"description": "Personal details",
"personal_tax_id": null,
"identity_type": "Personal",
"created_at": "2020-09-14T07:29:41.393Z",
"external_reference_id": null,
"verified": false
},
"relationships": {
"country": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/country",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/country"
}
},
"proofs": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/proofs",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/proofs"
}
},
"addresses": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/addresses",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/addresses"
}
},
"permanent_documents": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/permanent_documents",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/permanent_documents"
}
}
}
}
],
"meta": {
"total_records": 4,
"api_version": "2021-12-15"
},
"links": {
"first": "https://sandbox-api.didww.com/v3/identities?page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://sandbox-api.didww.com/v3/identities?page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}
GET /v3/identities/v3/identities?filter%5Bfirst_name_contains%5D=Jane HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
curl -i -X GET 'https://api.didww.com/v3/identities/v3/identities?filter%5Bfirst_name_contains%5D=Jane' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [
{
"id": "0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c",
"type": "identities",
"attributes": {
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "353-1-9015266",
"id_number": "0000000000",
"birth_date": "2000-01-01",
"company_name": null,
"company_reg_number": null,
"vat_id": null,
"description": "Personal details",
"personal_tax_id": null,
"identity_type": "Personal",
"created_at": "2020-09-14T07:29:41.393Z",
"external_reference_id": null,
"verified": false
},
"relationships": {
"country": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/country",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/country"
}
},
"proofs": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/proofs",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/proofs"
}
},
"addresses": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/addresses",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/addresses"
}
},
"permanent_documents": {
"links": {
"self": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/relationships/permanent_documents",
"related": "https://sandbox-api.didww.com/v3/identities/0c95a4c3-c5e6-4ea0-a8ba-bfb65850913c/permanent_documents"
}
}
}
}
],
"meta": {
"total_records": 4,
"api_version": "2021-12-15"
},
"links": {
"first": "https://sandbox-api.didww.com/v3/identities?filter%5Bfirst_name_contains%5D=Jane&page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://sandbox-api.didww.com/v3/identities?filter%5Bfirst_name_contains%5D=Jane&page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}
GET /v3/identities/v3/identities?include=country HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
curl -i -X GET 'https://api.didww.com/v3/identities/v3/identities?include=country' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [ {
"id": "6c832a1d-b19d-471b-b416-9b5bf2b6ef9d",
"type": "identities",
"attributes": {
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "353-1-9015266",
"id_number": "0000000000",
"birth_date": "2000-01-01",
"company_name": null,
"company_reg_number": null,
"vat_id": null,
"description": "Personal details",
"personal_tax_id": null,
"identity_type": "Personal",
"created_at": "2020-09-14T07:29:41.393Z",
"external_reference_id": null,
"verified": false
},
"relationships": {
"country": {
"links": {
"self": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/relationships/country",
"related": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/country"
},
"data": {
"type": "countries",
"id": "683c77a5-fcb0-48a0-8501-4de6284a2889"
}
},
"proofs": {"links": {
"self": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/relationships/proofs",
"related": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/proofs"
}},
"addresses": {"links": {
"self": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/relationships/addresses",
"related": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/addresses"
}},
"permanent_documents": {"links": {
"self": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/relationships/permanent_documents",
"related": "https://api.didww.com/v3/identities/6c832a1d-b19d-471b-b416-9b5bf2b6ef9d/permanent_documents"
}}
}
}],
"included": [ {
"id": "683c77a5-fcb0-48a0-8501-4de6284a2889",
"type": "countries",
"attributes": {
"name": "Lithuania",
"prefix": "370",
"iso": "LT"
},
"relationships": {"regions": {"links": {
"self": "https://api.didww.com/v3/countries/683c77a5-fcb0-48a0-8501-4de6284a2889/relationships/regions",
"related": "https://api.didww.com/v3/countries/683c77a5-fcb0-48a0-8501-4de6284a2889/regions"
}}}
}],
"meta": {
"total_records": 1,
"api_version": "2021-12-15"
},
"links": {
"first": "https://api.didww.com/v3/identities?include=country&page%5Bnumber%5D=1&page%5Bsize%5D=50",
"last": "https://api.didww.com/v3/identities?include=country&page%5Bnumber%5D=1&page%5Bsize%5D=50"
}
}
Other Responses
Code |
Success |
Description |
---|---|---|
401 |
No |