---
title: "Look up local workspace device keys"
method: POST
path: "/api/workspaces/{workspaceId}/enterprise/devices/lookup"
tags: ["workspaces"]
---

# Look up local workspace device keys

`POST /api/workspaces/{workspaceId}/enterprise/devices/lookup`

## Request

- Base URL: `https://rstream.io`
- URL: `https://rstream.io/api/workspaces/{workspaceId}/enterprise/devices/lookup`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Request body

- LookupWorkspaceDeviceKeysParams
  - `proofs` object[], required
    - `deviceFingerprint` string, required
    - `challenge` string, required
    - `signedAt` string, date-time, required
    - `signature` string, required

## Response `200`

Successful response.

- LookupWorkspaceDeviceKeysResponse
  - `devices` object[], required
    - `id` string, required
    - `kind` 'browser' | 'cli' | 'agent' | 'service', required
    - `status` 'pending' | 'active' | 'revoked' | 'lost', required
    - `label` string, nullable, required
    - `browserId` string, nullable, required
    - `publicEncryptionKey` string, required
    - `publicSigningKey` string, nullable, required
    - `webttyPublicKey` string, nullable, required
    - `webttyKeyId` string, nullable, required
    - `webttyKeyAlgorithm` 'webtty-x25519-hpke-v1' | 'webtty-p256-hkdf-sha256-aes-256-gcm-random-nonce-v1', nullable, required
    - `fingerprint` string, required
    - `approvedAt` string, date-time, nullable, required
    - `revokedAt` string, date-time, nullable, required
    - `lostAt` string, date-time, nullable, required
    - `lastUsedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
  - `deviceEnvelopes` object[], required
    - `id` string, required
    - `keysetId` string, required
    - `recipientKind` 'device', required
    - `recipientId` string, required
    - `ciphertext` string, required
    - `crypto` object, required
      - `suite` 'p256-hkdf-sha256-aes-256-gcm', required
      - `keyId` string
      - `encapsulatedKey` string
      - `context` Schema0 (unresolved $ref)
    - `createdAt` string, date-time, required
    - `revokedAt` string, date-time, nullable, required

## Other responses

- `400`: Request validation failed.
- `401`: Authentication is required.
- `403`: The token is not authorized.
- `404`: Workspace not found.

---

[API](https://skmtc.dev/rstream/apis/rstream-api.md) · [All operations](https://skmtc.dev/rstream/apis/rstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rstream/apis/rstream-api/revisions/a840a2c91f22?raw)
