---
title: "Create a new API key for the workspace"
method: POST
path: "/v1/apikeys"
tags: ["API keys"]
---

# Create a new API key for the workspace

`POST /v1/apikeys`

## Request

- Base URL: `https://infoslides.app`
- URL: `https://infoslides.app/v1/apikeys`
- Auth: none declared

Creates a workspace API key: `{"type": "admin", "name": "Muse"}` for a full admin key (`isk_admin_`), or `{"type": "dataProvider", "name": "Till system", "slideIds": ["..."]}` for a push-only key (`isk_dp_`) that may only call `POST /v1/slides/{id}/source` for those slides. For a Push source, prefer `POST /v1/sources/{id}/keys`, which binds the key to the source. The plaintext key is returned exactly once as `key`; store it, it cannot be shown again. Workspace admins only.

## Headers

- `Idempotency-Key` string

## Request body

- CreateApiKeyRequest
  - `type` string, nullable
  - `name` string, nullable
  - `slideIds` string[], nullable

## Response `200`

OK

---

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