---
title: "Get API credentials"
method: GET
path: "/accounts/api-creds"
tags: ["API Keys"]
---

# Get API credentials

`GET /accounts/api-creds`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/api-creds`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/api-creds/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves credentials for a specific API key. -Allows users to retrieve the full credential string that can be used with the CLI.

## Query parameters

- `key` string, required

## Response `200`

API credentials retrieved successfully

- object
  - `data` string, required

## Other responses

- `401`: Unauthorized
- `404`: API key not found

## Changes

- **2025-06-12** `4979dfd00eda`: 1 breaking, 1 info
  - the response's body type changed from `string` to `object` for status `200`
  - added the required property `data` to the response with the `200` status

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/api-creds/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
