curl --request GET \
--url https://admin.snagsolutions.io/api/websites \
--header 'X-API-KEY: <api-key>'{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Website",
"termsSignedAt": "2023-10-01T12:00:00Z",
"collections": [
{
"id": "123e4567-e89b-12d3-a456-426614174002",
"name": "Art Collection",
"imageUrl": "https://example.com/image.png",
"royaltyFee": 5,
"royaltyFeeAddress": "0xabc123..."
}
],
"onchainTokens": [
{
"id": "123e4567-e89b-12d3-a456-426614174003",
"address": "0x1234567890123456789012345678901234567890",
"chainId": "1",
"relayerId": "relayer-123",
"currencyId": "123e4567-e89b-12d3-a456-426614174004",
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-01T12:00:00Z",
"syncedAt": "2023-10-01T12:00:00Z",
"deletedAt": "2023-10-01T12:00:00Z",
"organizationId": "123e4567-e89b-12d3-a456-426614174005",
"websiteId": "123e4567-e89b-12d3-a456-426614174006"
}
],
"_count": {
"mintingContractAssets": 42
}
}
],
"hasNextPage": true
}Returns a list of websites. Includes optional query parameters for filtering and pagination.
curl --request GET \
--url https://admin.snagsolutions.io/api/websites \
--header 'X-API-KEY: <api-key>'{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My Website",
"termsSignedAt": "2023-10-01T12:00:00Z",
"collections": [
{
"id": "123e4567-e89b-12d3-a456-426614174002",
"name": "Art Collection",
"imageUrl": "https://example.com/image.png",
"royaltyFee": 5,
"royaltyFeeAddress": "0xabc123..."
}
],
"onchainTokens": [
{
"id": "123e4567-e89b-12d3-a456-426614174003",
"address": "0x1234567890123456789012345678901234567890",
"chainId": "1",
"relayerId": "relayer-123",
"currencyId": "123e4567-e89b-12d3-a456-426614174004",
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-01T12:00:00Z",
"syncedAt": "2023-10-01T12:00:00Z",
"deletedAt": "2023-10-01T12:00:00Z",
"organizationId": "123e4567-e89b-12d3-a456-426614174005",
"websiteId": "123e4567-e89b-12d3-a456-426614174006"
}
],
"_count": {
"mintingContractAssets": 42
}
}
],
"hasNextPage": true
}Pagination cursor, start after this ID
"123e4567-e89b-12d3-a456-426614174000"
Number of items to return
1 <= x <= 100010
Filter by organization ID
"123e4567-e89b-12d3-a456-426614174001"
Filter by name
"My Website"
Was this page helpful?