# GET/PATCH/PUT/DELETE /api/v1/inboxes/:id/credentials/:cid

Auth: Bearer

HTML: https://cooperemail.com/docs/reference/credential

## Summary

Read, replace, or delete one credential. GET returns the public fields only. PATCH and PUT replace the value, label, or metadata. type cannot change. DELETE returns {object:"credential", id, deleted:true}. GET requires credentials:read. PATCH, PUT, and DELETE require credentials:write. Another account's id is HTTP 404 credential_not_found.

## Request

```json
{
  "secret": "JBSWY3DPEHPK3PXP"
}
```

## Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

## Errors

- HTTP 404 credential_not_found

The live `message` is the sentence for that code. Branch on `code`.

```json
{
  "error": {
    "type": "not_found",
    "code": "credential_not_found",
    "docs_url": "https://cooperemail.com/docs#credential_not_found"
  }
}
```

## Idempotency

This route does not document Idempotency-Key or client_id.
