Skip to main content
POST
/
api
/
websites
Create website
curl --request POST \
  --url https://admin.snagsolutions.io/api/websites \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "My New Website",
  "organizationId": "123e4567-e89b-12d3-a456-426614174001",
  "adminWalletAddress": [
    "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "0x66f820a414680b5bcda5eeca5dea238543f42054"
  ],
  "twitterUsername": "@mywebsite",
  "discordUrl": "https://discord.gg/mywebsite",
  "telegramUrl": "https://t.me/mywebsite",
  "instagramUsername": "@mywebsite",
  "homeUrl": "https://www.mywebsite.com"
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Website"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

Schema for creating a new website

name
string
required

Name of the website

Example:

"My New Website"

organizationId
string<uuid>

Organization ID for which this website is being created

Minimum string length: 1
Example:

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

adminWalletAddress
string[]

Optional admin wallet addresses to grant admin access on creation (organization API key only). Maximum 2.

Maximum array length: 2
Example:
[
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"0x66f820a414680b5bcda5eeca5dea238543f42054"
]
twitterUsername
string

Twitter username of the website account

Example:

"@mywebsite"

discordUrl
string

Discord URL of the website account

Example:

"https://discord.gg/mywebsite"

telegramUrl
string

Telegram URL of the website account

Example:

"https://t.me/mywebsite"

instagramUsername
string

Instagram username of the website account

Example:

"@mywebsite"

homeUrl
string

Home URL of the official website

Example:

"https://www.mywebsite.com"

Response

200

Schema representing a website

id
string<uuid>
required

Website ID

Example:

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

name
string
required

Website name

Example:

"My Website"