Skip to main content

List Token Whitelist Groups

Retrieves a paginated list of all whitelisted KYC groups for a specific token.

Request

GET /v2/admin/kyc/tokens/{tokenID}/whitelist/groups

Parameters

NameTypeInDescription
tokenIDstringpathRequired. The ID of the token
pageintegerqueryRequired. Page number (default: 1)
per_pageintegerqueryRequired. Items per page (default: 10, max: 100)

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --request GET \
--url '{{baseUrl}}/v2/admin/kyc/tokens/67d8774e903bfcbe7eb5d93e/whitelist/groups?page=1&per_page=10' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"data": [
{
"id": "67d8774e903bfcbe7eb5d93e",
"token_id": "67d8774e903bfcbe7eb5d93e",
"kyc_group_id": "67d8774e903bfcbe7eb5d93f",
"type": "whitelist",
"kyc_group": {
"id": "67d8774e903bfcbe7eb5d93f",
"group_id": 1,
"name": "Premium Investors",
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z",
"deleted_at": null
},
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:30:00.000Z",
"deleted_at": null
}
],
"pagination": {
"page": 1,
"per_page": 10,
"total": 1
}
}

Response Fields

FieldTypeDescription
dataarrayArray of token whitelist group objects
paginationobjectPagination information
pagination.pageintegerCurrent page number
pagination.per_pageintegerNumber of items per page
pagination.totalintegerTotal number of items

Token Whitelist Group Object Fields

FieldTypeDescription
idstringUnique identifier for the token group entry
token_idstringID of the token
kyc_group_idstringID of the KYC group
typestringGroup type (always "whitelist")
kyc_groupobject/nullKYC group details (may be null)
created_atstringISO 8601 timestamp when the group was added
updated_atstringISO 8601 timestamp when the entry was updated
deleted_atstring/nullISO 8601 timestamp when the group was removed (null if not deleted)

Status Codes

Status CodeDescription
200Success
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing authentication token
404Not Found - Token ID does not exist
500Internal Server Error