curl -X POST https://scrape.st/stream/token \
-H "x-api-key: YOUR_API_KEY"
{
"token": "a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678",
"expiresIn": 86400
}
SSE
Generate SSE Token
Generate authentication token for private SSE
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
string
The authentication token (64 chars hex)
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
}