---
title: "Get Api Credential"
method: GET
path: "/api-credentials/{id}"
tags: ["ApiCredentials"]
---

# Get Api Credential

`GET /api-credentials/{id}`

## Request

- Base URL: `https://api.purplegrain.com/api/v1`
- URL: `https://api.purplegrain.com/api/v1/api-credentials/{id}`
- Auth: HTTP bearer

One credential by client_id (uid). Never returns the secret.

## Path parameters

- `id` string, required

## Response `200`

The credential (no secret).

- ApiCredentialsShowResponseAttributes
  - `data` ApiCredentialModelAttributes: Single API credential in attributes-adapter shape (Accept application/json): id, type and attribute fields at top level.
    - `id` string: The OAuth client_id (application uid).
    - `type` string
    - `name` string
    - `scopes` string
    - `owner_type` 'User' | 'Organization'
    - `owner_id` string, uuid
    - `created_at` string, date-time
    - `client_secret` string: Present ONLY in create and rotate responses (show-once).

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/purplegrain/apis/purple-grain-api.md) · [All operations](https://skmtc.dev/purplegrain/apis/purple-grain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/purplegrain/apis/purple-grain-api/revisions/4bedbc1c784c?raw)
