---
title: "List credentials"
method: GET
path: "/api/credential"
tags: ["credential"]
---

# List credentials

`GET /api/credential`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/credential`
- Auth: none required

List every stored integration credential, including its secret value.

## Response `200`

Success

- object
  - `data` CredentialEntry[], required
    - `id` string, required
    - `integrationID` string, required
    - `label` string, required
    - `active` boolean, required
    - `value` union, required
      - CredentialOAuth
        - `type` 'oauth', required
        - `methodID` string, required
        - `refresh` string, required
        - `access` string, required
        - `expires` integer, required
        - `metadata` object
      - CredentialKey
        - `type` 'key', required
        - `key` string, required
        - `metadata` object
      - CredentialExternal
        - `type` 'external', required
        - `methodID` string, required
        - `metadata` object

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError

## Changes

> 50 revisions in range; 1 not diffed.

- **2026-10-20** `7d8042ed3561`: 1 warning
  - removed the optional property `data/items/value/anyOf[#/components/schemas/Credential.Key]/configuration` from the response with the `200` status

[Operation history](https://skmtc.dev/kaaass/apis/opencode/changes/api/credential/get.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
