---
# @generated by sylphx-gen. Do not edit.
title: "Unregister push device on a chat profile"
description: "`events.chat_profiles.unregister_push_device` (POST /v1/{name}:unregisterPushDevice): Removes this session's exact upstream device epoch; stale logout is a no-op."
type: reference
product: queues
summary: "Removes this session's exact upstream device epoch; stale logout is a no-op."
updated: 2026-09-28
nav: false
---

Removes this session's exact upstream device epoch; stale logout is a no-op.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile:unregisterPushDevice`
- **Scope** `events:write`
- **Effect** `write` — a successful call changes state.
- **Collection** [chat_profiles](/docs/api/chat_profiles)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Authenticated player's profile. Required. |
| `registration` | `ChatPushDeviceRegistration` | Exact receipt from RegisterChatPushDevice. Required. |

### ChatPushDeviceRegistration

| Field | Type | What it is |
| --- | --- | --- |
| `recipient_name` | `string` | Actual Notify Recipient resource name. Required. |
| `recipient_uid` | `string` | Actual immutable Notify UID, distinct from the Chat principal. Required. |
| `registration_id` | `string` | Exact upstream endpoint registration identity. Required. |
| `registration_generation` | `string` | Positive canonical decimal string returned by Notify. Required. |
| `sender` | `string` | Actual sender resource name. Required. |
| `application_server_key` | `string` | Public application-server key returned by Notify, never a private key. Required. |

## Response

The call answers with an empty object.

## Errors

- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`UNAVAILABLE`](/docs/api/errors/UNAVAILABLE) — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile:unregisterPushDevice" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"registration":{"application_server_key":"…","recipient_name":"…","recipient_uid":"…","registration_generation":"…","registration_id":"…","sender":"…"}}'
```

**TypeScript**

```ts
await sylphx.events.chatProfiles.unregisterPushDevice({ name: 'orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile', registration: { applicationServerKey: '…', recipientName: '…', recipientUid: '…', registrationGeneration: '…', registrationId: '…', sender: '…' } })
```

**Rust**

```rust
let mut req = sylphx::events::UnregisterChatPushDeviceRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile".to_string();
req.registration = Some(sylphx::events::ChatPushDeviceRegistration {
    application_server_key: "…".to_string(),
    recipient_name: "…".to_string(),
    recipient_uid: "…".to_string(),
    registration_generation: "…".to_string(),
    registration_id: "…".to_string(),
    sender: "…".to_string(),
    ..Default::default()
});
sx.events().chat_profiles().unregister_push_device(req).await?;
```

**CLI**

```bash
sylphx events chat-profiles unregister-push-device orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile
```

**MCP**

```json
{ "method_id": "events.chat_profiles.unregister_push_device", "args": {"name":"orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile","registration":{"application_server_key":"…","recipient_name":"…","recipient_uid":"…","registration_generation":"…","registration_id":"…","sender":"…"}} }
```
