Skip to content
Preview: the PushFleet API isn't live yet. Join the waitlist

Credentials

PushFleet verifies credentials when you upload them by minting a real token with Apple or Google, so a bad key fails right away instead of on your first send. Credentials are write-only: once saved, the secret parts are never returned. Needs credentials: write.

POST /v1/credentials/apns

Send the .p8 file’s contents with its Key ID, your Team ID and the app’s Bundle ID. Apple shows where to find each.

await fleet.credentials.uploadApns({
  key: readFileSync("AuthKey_8XK2.p8", "utf8"),
  key_id: "8XK2ABCD12",
  team_id: "4QX7M2ABCD",
  bundle_id: "com.acme.storefront",
});

POST /v1/credentials/fcm

Send the service account JSON as an object. Android shows how to create it.

await fleet.credentials.uploadFcm({
  service_account: JSON.parse(readFileSync("service-account.json", "utf8")),
});

Uploading again replaces the credential for that environment.