Skip to main content
POST
/
prod
/
site
/
{id}
/
keys
/
upsert
Upsert Website Keys
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"
}

Authorizations

X-Authorization-Api-Key
string
header
default:""
required

Path Parameters

id
string
required

Site ID

Body

application/json
pub
string
required

Public ID (either VAPID ID or FCM ID)

priv
string
required

Private key attached to the public id

primary
string
required

1 = primary, 0 = regular

type
string
required

Must use either "gcm" or "vapid" (without quotes)

Response

200