---
title: "Issue API key"
method: POST
path: "/accounts/api-key"
tags: ["API Keys"]
---

# Issue API key

`POST /accounts/api-key`

Issues a new API key for the specified user
- This function nables users to generate programmatic access credentials for quiva.ai API as well as credentials for CLI access. This feature allows developers to integrate the platform's capabilities into external applications, automation scripts, or CI/CD pipelines without requiring interactive login sessions.

## Request body

- ApiKeyRequest
  - `key_name` string, required — API key name

## Response `200`

API key created successfully

- object
  - `data` ApiKeyResponse, required
    - `key` string — API key
    - `name` string — API key name
    - `created_on` string, date-time — Creation date
    - `expires_on` string, date-time — Expiration date
    - `creds` string — API credentials

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
