Superadmin APIs/Third-Party Integrations
Upsert Integration
POST
/superadmin/integrationsBearer token required
SUPERADMINContent-Type:
application/jsonRequest Example
JSON
{
"scope": "PLATFORM",
"category": "PUSH_NOTIFICATION",
"provider": "FIREBASE",
"name": "Firebase Cloud Messaging",
"status": "ACTIVE",
"isDefault": true,
"priority": 1,
"publicConfig": {
"apiKey": "AIza...",
"projectId": "my-project"
},
"secretJson": {
"serviceAccountKey": "{ ... }"
}
}Code Examples
curl -X POST 'https://<your-domain>:3001/superadmin/integrations' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"scope": "PLATFORM",
"category": "PUSH_NOTIFICATION",
"provider": "FIREBASE",
"name": "Firebase Cloud Messaging",
"status": "ACTIVE",
"isDefault": true,
"priority": 1,
"publicConfig": {
"apiKey": "AIza...",
"projectId": "my-project"
},
"secretJson": {
"serviceAccountKey": "{ ... }"
}
}'Notes
- secretJson is encrypted with AES-256-GCM before storage.