Skip to main content
GET
/
api
/
websites
Get websites
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
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

startingAfter
string<uuid>

Pagination cursor, start after this ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

limit
integer

Number of items to return

Required range: 1 <= x <= 1000
Example:

10

organizationId
string<uuid>

Filter by organization ID

Example:

"123e4567-e89b-12d3-a456-426614174001"

name
string

Filter by name

Example:

"My Website"

Response

200

Response schema for fetching websites

data
Website · object[]
required

Array of websites

hasNextPage
boolean
required

Indicates if more pages are available

Example:

true