go-ring API Reference
OpenapiUnknown

Register a Firebase installation for FCM

Registers Web Push encryption material and returns an FCM token.

POST
/v1/projects/ring-17770/registrations

Header Parameters

Content-Type*string
X-Goog-Api-Key*string

Public API key configured by the pinned Ring Android client.

X-Goog-Firebase-Installations-Auth*string

The local compatibility adapter removes the upstream FIS prefix before forwarding.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/projects/ring-17770/registrations" \  -H "Content-Type: application/json" \  -H "X-Goog-Api-Key: AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8" \  -H "X-Goog-Firebase-Installations-Auth: string" \  -H "Content-Type: application/json" \  -d '{    "web": {      "endpoint": "https://fcm.googleapis.com/fcm/send/legacy-registration-token",      "p256dh": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",      "auth": "AAAAAAAAAAAAAAAAAAAAAA=="    }  }'
{  "token": "synthetic-fcm-token",  "pushSet": "synthetic-push-set"}