Ana içeriğe geç

List Token Whitelist

Retrieves a paginated list of all whitelisted addresses for a specific token.

Request

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

Parameters

NameTypeInDescription
tokenIDstringpathRequired. The ID of the token
searchstringqueryOptional. Search by address
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?page=1&per_page=10' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"data": [
{
"id": "67d8774e903bfcbe7eb5d93e",
"token_id": "67d8774e903bfcbe7eb5d93e",
"address": "0x1234567890123456789012345678901234567890",
"type": "whitelist",
"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 whitelisted address objects
paginationobjectPagination information
pagination.pageintegerCurrent page number
pagination.per_pageintegerNumber of items per page
pagination.totalintegerTotal number of items

Whitelist Address Object Fields

FieldTypeDescription
idstringUnique identifier for the whitelist entry
token_idstringID of the token
addressstringWhitelisted wallet address
typestringAddress type (always "whitelist")
created_atstringISO 8601 timestamp when the address was whitelisted
updated_atstringISO 8601 timestamp when the entry was updated
deleted_atstring/nullISO 8601 timestamp when the address was removed from whitelist (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