---
title: "Upsert A2A Credential"
method: PUT
path: "/api/agents/{agent_id}/a2a-credentials"
tags: ["agents"]
---

# Upsert A2A Credential

`PUT /api/agents/{agent_id}/a2a-credentials`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/a2a-credentials`
- Auth: none declared

Store or rotate the credential presented when calling one peer host.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- A2ACredentialUpsert
  - `host` string, required
  - `token` string, required
  - `label` string, nullable

## Response `200`

Successful Response

- A2ACredentialSummary: A stored peer credential. Never carries the token itself.
  - `host` string, required
  - `label` string, nullable

## Other responses

- `422`: Validation Error

---

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