cURL
curl --request POST \ --url https://api.aimtell.com/prod/site/{id}/keys/upsert \ --header 'Content-Type: application/json' \ --header 'X-Authorization-Api-Key: <api-key>' \ --data ' { "pub": "<string>", "priv": "<string>", "primary": "<string>", "type": "<string>" } '
{ "result": "success", "message": "Website Key added/updated successfully" }
Update a Website’s VAPID or FCM Keys
Note: this can directly impact your optin rate and/or push delivery. Only update these if you know what you are doing.
Site ID
Public ID (either VAPID ID or FCM ID)
Private key attached to the public id
1 = primary, 0 = regular
Must use either "gcm" or "vapid" (without quotes)
200