---
title: "Post a user's device token."
method: POST
path: "/notifications/device/{deviceToken}"
tags: ["Notifications"]
---

# Post a user's device token.

`POST /notifications/device/{deviceToken}`

Adds a new deviceToken to the user's list of active device tokens.

## Path parameters

- `deviceToken` string, required

## Response `200`

A successful response.

- ProtobufPostDeviceTokenResponse

## Other responses

- `400` — **[3 INVALID_ARGUMENT]** *Bad request.* **Returned in case of:** - Missing device token in request message.
- `401` — **[16 UNAUTHENTICATED]** *Could not authorize the operation.* **Returned in case of:** - Missing JWT cookie header - Crypto/rsa: verification error (invalid jwt) - JWT cookie not found
- `409` — **[6 ALREADY_EXISTS]** *Entity already persisted.* **Returned in case of:** - Device token already registered

---

[API](https://skmtc.dev/tum-dev/apis/gocast-api.md) · [All operations](https://skmtc.dev/tum-dev/apis/gocast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tum-dev/gocast-api/revisions/18ce08adf685/schema)
