---
title: "List tunnel keys for the current user"
method: GET
path: "/tunnelkeys/"
tags: ["SIMs (Devices)"]
---

# List tunnel keys for the current user

`GET /tunnelkeys/`

## Request

- Base URL: `https://dashboard.hologram.io/api/1`
- URL: `https://dashboard.hologram.io/api/1/tunnelkeys/`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/hologram/apis/hologram-rest-api-v1/docs/tunnelkeys/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the authenticated user's tunnel keys. Requires the organization to have tunnel access enabled.

## Query parameters

- `limit` integer
- `before` integer
- `after` integer
- `startafter` integer
- `withdisabled` integer

## Response `200`

OK

- TunnelKeyListResponse
  - `success` boolean: Indicates whether the request was successful.
  - `limit` integer: Query limit
  - `size` integer: Number of results returned
  - `continues` boolean: Whether more results are available
  - `data` TunnelKeyObject[]
    - `id` integer
    - `userid` integer
    - `public_key` string: OpenSSH-format RSA public key
    - `disabled` 0 | 1: 1 if the key is disabled
    - `created_at` string, date-time
    - `private_key` string, nullable: RSA private key; only present when the server generates the keypair (no public_key supplied on create)

## Other responses

- `401`: Unauthorized
- `403`: Organization does not have tunnel access

---

[API](https://skmtc.dev/hologram/apis/hologram-rest-api-v1.md) - [All operations](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/revisions/1bc07dcd1631?raw)
