---
title: "Create Api Key"
method: PUT
path: "/api_key"
tags: ["api_key"]
deprecated: true
---

# Create Api Key

`PUT /api_key`

> **Deprecated.**

## Cookies

- `access_token` string, nullable

## Request body

- APIKeyCreate
  - `api_key` string, required
  - `valid_days` integer
  - `name` string
  - `scope` 'read' | 'read_write' | 'read_write_delete'
  - `scoped_project_uuid` string, nullable
  - `budget` union
    - number
    - string

## Response `200`

Successful Response

- APIKey
  - `uuid` string, required
  - `name` string, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, required
  - `is_expired` boolean, required
  - `is_revoked` boolean, required
  - `scope` string, required
  - `can_manage_api_keys` boolean, required
  - `budget` number, nullable
  - `credits_used` number
  - `scoped_project_uuid` string, nullable
  - `created_by_key_uuid` string, nullable
  - `revoked_at` string, date-time, nullable
  - `last_used_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rowansci/apis/eyrie.md) · [All operations](https://skmtc.dev/rowansci/apis/eyrie/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rowansci/eyrie/revisions/f786577eede6/schema)
