---
title: "Authenticate with API key"
method: POST
path: "/accounts/auth-with-api-key"
tags: ["Authentication", "API Keys"]
---

# Authenticate with API key

`POST /accounts/auth-with-api-key`

Authenticates a user using an API key.

## Request body

- AuthWithApiKeyRequest
  - `api_key` string, required — Api key

## Response `200`

Authentication successful

- object
  - `data` AuthResponse, required
    - `refresh_token` string — Refresh token
    - `auth_token` string — Authentication token
    - `passkey_enabled` boolean — Whether passkey authentication is enabled
    - `totp_enabled` boolean — Whether TOTP authentication is enabled

## Other responses

- `401` — Invalid or expired API key

---

[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)
