---
title: "Update device push"
url: https://hexelstudio.com/docs/api/titan-user/person/update-device-push
---

# Update device push

**POST** `/titan/user/devices/{id}:push`

Change a phone's push token: proof is a compact JWS with header exactly {alg: ES256, kid: the device_id, typ: titan-device-push+jwt}, signed by that phone, over {aud, sub, device_id, push_provider, push_token, app_id (optional), apns_environment (optional), iat, exp}; it replaces the whole push target, and its iat must be newer than the last accepted update. Authorized by the caller's own user-route token; a device belongs to the token's subject and another person's is NOT_FOUND; NOT_FOUND unless phone enrollment is on.

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. The person's user-route token: a user access token from the deployment's identity provider for an audience only the person routes accept, carrying their use claim. The Gateway verifies it; the edge does not. A session's token is refused here, and a user-route token is refused as a session's. Served only while the deployment turns the person routes on; NOT_FOUND otherwise.

## Body parameters

- `proof: string`

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `attestation: optional object`

  What the phone's key attestation said at enrollment; present for a phone enrolled where the deployment required one at the time. null (with attestation_missing) for a phone without one where the deployment now requires attestation; absent elsewhere

  - `app_id: string`

    The attested app: TEAMID.bundle.id, or the Android package name

  - `environment: optional string`

    apple-app-attest: the App Attest environment

    One of: `"production"`, `"development"`

  - `format: string`

    One of: `"apple-app-attest"`, `"android-key"`

  - `key_attested: boolean`

    true when the enrolled signing key itself was attested (android-key); false for apple-app-attest, which attests the app instance (its own App Attest key), never the enrolled Secure Enclave key

  - `security_level: optional string`

    android-key: the attested key's KeyMint security level

    One of: `"trusted_environment"`, `"strongbox"`

- `attestation_missing: optional boolean`

  present (true) only where the deployment requires attestation and this phone has none (enrolled before): under the deployment's unattested_phones allow it is still trusted; under refuse_signatures its decisions, endorsements, logins and revocations of another trusted phone are refused (DEVICE_ATTESTATION_REQUIRED) until it is re-enrolled with an attestation

  One of: `true`

- `created_at: string`

- `device_id: string`

- `label: string`

- `last_seen_at: optional string`

- `platform: string`

  One of: `"ios"`, `"android"`

- `public_key_thumbprint: string`

- `push_apns_environment: optional string`

  One of: `"sandbox"`, `"production"`

- `push_app_id: optional string`

- `push_delivery_error: optional string`

  The last push delivery failure to this phone: a status or transport error, never a response body

- `push_delivery_error_at: optional string`

- `push_registered: boolean`

- `revoked_at: optional string`

- `state: string`

  One of: `"active"`, `"revoked"`

- `trusted_at: string`

## Errors

- `default` Rejected request.

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/user/devices/{id}:push' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "proof": "string"
}'
```

### Response (200)

```json
{
  "attestation": {
    "app_id": "string",
    "environment": "production",
    "format": "apple-app-attest",
    "key_attested": true,
    "security_level": "trusted_environment"
  },
  "attestation_missing": true,
  "created_at": "2026-01-01T00:00:00Z",
  "device_id": "string",
  "label": "string",
  "last_seen_at": "2026-01-01T00:00:00Z",
  "platform": "ios",
  "public_key_thumbprint": "string",
  "push_apns_environment": "sandbox",
  "push_app_id": "string",
  "push_delivery_error": "string",
  "push_delivery_error_at": "2026-01-01T00:00:00Z",
  "push_registered": true,
  "revoked_at": "2026-01-01T00:00:00Z",
  "state": "active",
  "trusted_at": "2026-01-01T00:00:00Z"
}
```

### Response (default)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
