Skip to main content
POST
/
stream
/
token
curl -X POST https://scrape.st/stream/token \
  -H "x-api-key: YOUR_API_KEY"
{
  "token": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678",
  "expiresIn": 86400
}
Generate a token for accessing private SSE stream.

Response

token
string
The authentication token (64 chars hex)
expiresIn
number
Seconds until token expires (86400 = 24 hours)
curl -X POST https://scrape.st/stream/token \
  -H "x-api-key: YOUR_API_KEY"
{
  "token": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678",
  "expiresIn": 86400
}