---
title: "Vault Tool Get"
method: POST
path: "/api/internal/vault/tool/get"
tags: ["vault-tool-abi"]
---

# Vault Tool Get

`POST /api/internal/vault/tool/get`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/internal/vault/tool/get`
- Auth: HTTP bearer

Resolve a credential by (team_id == X-Business-Id, slug) for the agent.

Step-by-step:
  1. Resolve agent_id from token claim, else X-Agent-Id header fallback.
  2. Confirm token.team_id == X-Business-Id (CLEAR-on-reassignment guard).
  3. Confirm DB.agent.team_id == header.business_id (runtime backstop).
  4. Resolve credential by (team_id, slug) — grant must exist for this agent.
  5. Decrypt + (optional) filter fields + audit-log + return.

## Headers

- `X-Business-Id` string, required
- `X-Conversation-Id` string, nullable
- `X-Agent-Id` string, nullable

## Request body

- VaultGetRequest
  - `slug` string, required: Credential slug
  - `fields` string[], nullable: Optional — specific field names to return. Omit for all fields.

## Response `200`

Successful Response

- VaultGetResponse
  - `fields` object, required
  - `business_id` string, required
  - `audit_id` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Validation Error

---

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