API Reference
Regenerate Token
Create a new Developer API access token and invalidate the previous one. The full token is returned once in the response.
POST/api-token/regenerate
Uses a Firebase ID token, not an
sv_ developer token. See Authentication. Requires Viral Pro or Business.Authentication
Header
Authorization: Bearer <firebase_id_token>Full URL: https://shareviral-server-production.up.railway.app/api/v1/developer/api-token/regenerate
Examples
cURL
curl -X POST https://shareviral-server-production.up.railway.app/api/v1/developer/api-token/regenerate \
-H "Authorization: Bearer <firebase_id_token>" \
-H "Content-Type: application/json" \
-d '{}'Response
Copy and store token immediately. ShareViral stores only a hash afterward and will not show the plaintext token again.
200 OK
{
"success": true,
"token": "sv_…"
}