---
source_url: https://www.pubnub.com/docs/admin-api/upload-fcm-credentials
title: Upload FCM credentials
---

# Upload FCM credentials

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

Uploads the FCM key file used to deliver push notifications to Android devices, and replaces the FCM key stored for the keyset. The request must contain every field. The response contains the stored metadata only: the key file is write-only and cannot be read back. If the upload is rejected, nothing is stored and the previously stored key stays in place. Storing FCM credentials also enables APNs for the keyset.

## Request

Example

```
{
  "filename": "string"
}
```

Example

```
{
  "statusCode": 0,
  "error": "BadRequest",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Unauthorized",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "Forbidden",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "NotFound",
  "message": [
    "string"
  ]
}
```

Example

```
{
  "statusCode": 0,
  "error": "InternalError",
  "message": [
    "string"
  ]
}
```
