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

Logout

POST
/v1/logout
Logout of an account (Web only)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.snapbyte.io/v1/logout' \
--header 'Cookie: token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwid2Vic2l0ZSI6e30sIm5hbWUiOm51bGwsInJvbGUiOjEsInZlciI6InYxIiwiaWF0IjoxNzUxOTQwNzg4LCJleHAiOjE3ODM0NzY3ODh9.bL8f6tvb2WoQru7atsf1CSRcElrBW1NDZZsD2TTs0rM;id=1' \
--header 'x-api-key;'
Response Response Example
{
    "success": true,
    "message": "",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwid2Vic2l0ZSI6e30sIm5hbWUiOm51bGwsInJvbGUiOjEsInZlciI6InYxIiwiaWF0IjoxNzUxOTQwNzg4LCJleHAiOjE3ODM0NzY3ODh9.bL8f6tvb2WoQru7atsf1CSRcElrBW1NDZZsD2TTs0rM",
        "expiry_date": 31536000000,
        "id": "2"
    }
}

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Cookie Params
token
string 
optional
Authentication token
Example:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwid2Vic2l0ZSI6e30sIm5hbWUiOm51bGwsInJvbGUiOjEsInZlciI6InYxIiwiaWF0IjoxNzUxOTQwNzg4LCJleHAiOjE3ODM0NzY3ODh9.bL8f6tvb2WoQru7atsf1CSRcElrBW1NDZZsD2TTs0rM
id
integer 
optional
Account ID
Example:
1

Responses

🟢200Success
application/json
Body
success
boolean 
required
message
string 
required
data
object 
required
token
string 
required
Authentication token
expiry_date
number 
required
Expire date
id
string 
required
Account ID
Modified at 2025-07-08 02:25:44
Previous
Authenticate
Next
Get API Key
Built with