---
title: "Keys that belong to the workspace [read, owner or admin]"
method: GET
path: "/universes/{slug}/keys"
---

# Keys that belong to the workspace \[read, owner or admin\]

`GET /universes/{slug}/keys`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/universes/{slug}/keys`
- Auth: HTTP bearer

A workspace key belongs to the workspace, not to the person who made it, and keeps working after they leave. It acts through the workspace owner's account, whose wallet pays for the sessions it starts, and reaches only the workspace's agents, sessions, files, skills and environments. The listing never carries a secret.

## Path parameters

- `slug` string, required

## Response `200`

OK

- object
  - `keys` WorkspaceKey[], required
    - `id` string, required
    - `name` string, required
    - `prefix` string, required: The start of the secret, to tell one key from another.
    - `scopes` string[], required
    - `created_by` object, required
      - `user_id` string
      - `name` string, nullable
    - `created_at` string, date-time, required
    - `last_used_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable
    - `revoked_at` string, date-time, nullable

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/universes/:slug/keys/get.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
