---
title: "Add FCM Credentials"
method: POST
path: "/notification/fcm-creds"
tags: ["Notifications"]
---

# Add FCM Credentials

`POST /notification/fcm-creds`

Store FCM credentials. This endpoint allows clients to store Firebase Cloud Messaging (FCM) credentials by providing the service account key details. The stored credentials will be used for sending notifications to the registered devices. The request body must contain the FCM payload information.

## Request body

- FCMPayload — The request body must contain the FCM payload information. The format should be:
  - `sa_key` object, required
    - `type` string — The type of the service account key.
    - `project_id` string — The unique identifier for the project.
    - `private_key_id` string — The unique identifier for the private key.
    - `private_key` string — The private key used for authentication.
    - `client_email` string — The email address associated with the client.
    - `client_id` string — The unique identifier for the client.
    - `auth_uri` string — The URI used for authentication.
    - `token_uri` string — The URI used to obtain the token.
    - `auth_provider_x509_cert_url` string — The URL for the auth provider's X.509 certificate.
    - `client_x509_cert_url` string — The URL for the client's X.509 certificate.
    - `universal_domain` string — The universal domain associated with the service account.

## Response `200`

Successful response

- object

## Other responses

- `400` — Client error response
- `500` — Server error response

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/revisions/9ea23456f722/schema)
