Snapbyte
  1. Domain
Snapbyte
  • Snapbyte
  • Pricing
  • Speedtest
  • Snapbyte APIs
    • Basic
      • Signup
      • Authenticate
      • Logout
      • Get API Key
      • Add webhook
      • Get User Stats
    • Files
      • Top Files
      • Get Files
      • Get File Info
      • Get File's Stats
    • Zones
      • Get Zones
      • Create Zone
      • Get Zone's Stats
    • Domain
      • Whitelist Domain
        POST
      • Domain Patterns
        GET
    • Preload a File
      POST
    • Get Snapbyte Signed Url
      GET
  • Legacy APIs
    • Preload File
      POST
    • Get Download Url
      GET
  • ⚡ Fast Snap
    GET
  1. Domain

Whitelist Domain

POST
/v1/domain
Whitelist a domain's pattern
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.snapbyte.io/v1/domain' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "pattern": "ash-speed.hetzner.com",
    "description": "hetnzer"
}'
Response Response Example
{
    "success": true,
    "message": "Pattern added to whitelist",
    "data": {
        "id": 5,
        "pattern": "ash-speed.hetzner.com",
        "description": "hetnzer",
        "user_id": 1,
        "active": true,
        "ctime": "2025-07-11T05:42:39.034Z",
        "utime": "2025-07-11T05:42:39.034Z"
    }
}

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Body Params application/json
pattern
string 
required
Domain Pattern
description
string 
required
Examples

Responses

🟢200Success
application/json
Body
data
object 
required
id
number 
required
pattern
string 
required
description
string 
required
user_id
number 
required
active
boolean 
required
Modified at 2025-07-11 08:05:15
Previous
Get Zone's Stats
Next
Domain Patterns
Built with