---
title: "POST /api/device/gcm/"
method: POST
path: "/api/device/gcm/"
tags: ["device"]
---

# POST /api/device/gcm/

`POST /api/device/gcm/`

## Headers

- `X-Company` string

## Request body

- GCMDevice
  - `id` integer
  - `name` string, nullable
  - `registration_id` string, required
  - `device_id` integer, nullable — ANDROID_ID / TelephonyManager.getDeviceId() (e.g: 0x01)
  - `active` boolean — Inactive devices will not be sent notifications
  - `date_created` string, date-time, nullable, required
  - `cloud_message_type` 'FCM' | 'GCM' — * `FCM` - Firebase Cloud Message * `GCM` - Google Cloud Message
  - `application_id` string, nullable — Opaque application identity, should be filled in for multiple key/certificate access

## Response `201`

- GCMDevice
  - `id` integer
  - `name` string, nullable
  - `registration_id` string, required
  - `device_id` integer, nullable — ANDROID_ID / TelephonyManager.getDeviceId() (e.g: 0x01)
  - `active` boolean — Inactive devices will not be sent notifications
  - `date_created` string, date-time, nullable, required
  - `cloud_message_type` 'FCM' | 'GCM' — * `FCM` - Firebase Cloud Message * `GCM` - Google Cloud Message
  - `application_id` string, nullable — Opaque application identity, should be filled in for multiple key/certificate access

---

[API](https://skmtc.net/crewtraka/apis/crewtraka-api.md) · [All operations](https://skmtc.net/crewtraka/apis/crewtraka-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crewtraka/crewtraka-api/revisions/167d661271bb/schema)
