---
title: "Store an encrypted credential"
method: POST
path: "/api/agents/{agentId}/credentials"
tags: ["Agents"]
---

# Store an encrypted credential

`POST /api/agents/{agentId}/credentials`

## Request

- Base URL: `https://api.agentbrink.com/api`
- URL: `https://api.agentbrink.com/api/api/agents/{agentId}/credentials`
- Auth: HTTP bearer

## Request body

- StoreCredentialBody
  - `key` string, required
  - `value` string, required

## Response `200`

Stored

## Other responses

- `400`: Invalid request body

---

[API](https://skmtc.dev/agentbrink/apis/agentbrink-api.md) · [All operations](https://skmtc.dev/agentbrink/apis/agentbrink-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentbrink/apis/agentbrink-api/revisions/d2c782056161?raw)
