> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Masterwachtwoorden

> Scoped masterwachtwoorden maken, weergeven, hernoemen en verwijderen.

# Masterwachtwoorden

Scoped masterwachtwoorden maken, weergeven, hernoemen en verwijderen.

<script src="/locale-bridge.js" />

De voorbeelden gebruiken de A2A-codemodus. MCP biedt dezelfde codemodus via het hulpmiddel `execute`.

## Functies

### `credentials.add`

```text theme={null}
credentials.add(account_id: str, name: str, domain?: str | null, generate?: bool, value?: str | null, workspace_id?: str | null) -> MasterPassword
```

Masterwachtwoorden: `credentials.add`.

| Eigenschap          | Waarde                                              | Eigenschap            | Waarde              |
| ------------------- | --------------------------------------------------- | --------------------- | ------------------- |
| Vereiste machtiging | `credential.manage`                                 | Authenticatie vereist | `ja`                |
| Uitvoermodus        | `sync`                                              | Mogelijkheid          | `credential.manage` |
| Resourcetype        | `account`                                           | Resource-ID-veld      | `account_id`        |
| Openbare API-route  | `POST /v1/public/accounts/{account_id}/credentials` |                       |                     |

<AccordionGroup>
  <Accordion title="Argumenten">
    | Naam           | Type          | Vereist |
    | -------------- | ------------- | ------- |
    | `account_id`   | `str`         | ja      |
    | `name`         | `str`         | ja      |
    | `domain`       | `str \| null` | nee     |
    | `generate`     | `bool`        | nee     |
    | `value`        | `str \| null` | nee     |
    | `workspace_id` | `str \| null` | nee     |
  </Accordion>

  <Accordion title="Retourneert">
    | Veld               | Type                                   | Vereist |
    | ------------------ | -------------------------------------- | ------- |
    | `created_at`       | `str`                                  | ja      |
    | `id`               | `str`                                  | ja      |
    | `name`             | `str`                                  | ja      |
    | `scope_id`         | `str`                                  | ja      |
    | `scope_type`       | `"account" \| "workspace" \| "domain"` | ja      |
    | `updated_at`       | `str`                                  | ja      |
    | `generated_secret` | `str \| null`                          | nee     |
  </Accordion>

  <Accordion title="A2A-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "credentials.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\", domain=\"example.com\", generate=true, value=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    Respons:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "credentials.add",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "credentials.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\", domain=\"example.com\", generate=true, value=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    Respons:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"credentials.add\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `credentials.delete`

```text theme={null}
credentials.delete(account_id: str, credential_id: str) -> {}
```

Masterwachtwoorden: `credentials.delete`.

| Eigenschap          | Waarde                                                                | Eigenschap            | Waarde              |
| ------------------- | --------------------------------------------------------------------- | --------------------- | ------------------- |
| Vereiste machtiging | `credential.manage`                                                   | Authenticatie vereist | `ja`                |
| Uitvoermodus        | `sync`                                                                | Mogelijkheid          | `credential.manage` |
| Resourcetype        | `account`                                                             | Resource-ID-veld      | `account_id`        |
| Openbare API-route  | `DELETE /v1/public/accounts/{account_id}/credentials/{credential_id}` |                       |                     |

<AccordionGroup>
  <Accordion title="Argumenten">
    | Naam            | Type  | Vereist |
    | --------------- | ----- | ------- |
    | `account_id`    | `str` | ja      |
    | `credential_id` | `str` | ja      |
  </Accordion>

  <Accordion title="Retourneert">
    | Veld     | Type | Vereist |
    | -------- | ---- | ------- |
    | `result` | `{}` | ja      |
  </Accordion>

  <Accordion title="A2A-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "credentials.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    Respons:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "credentials.delete",
          "status": "completed",
          "result": {}
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "credentials.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    Respons:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"credentials.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `credentials.list`

```text theme={null}
credentials.list(account_id: str, page?: int, page_size?: int) -> Page[MasterPassword]
```

Masterwachtwoorden: `credentials.list`.

| Eigenschap          | Waarde                                             | Eigenschap            | Waarde            |
| ------------------- | -------------------------------------------------- | --------------------- | ----------------- |
| Vereiste machtiging | `credential.view`                                  | Authenticatie vereist | `ja`              |
| Uitvoermodus        | `sync`                                             | Mogelijkheid          | `credential.view` |
| Resourcetype        | `account`                                          | Resource-ID-veld      | `account_id`      |
| Openbare API-route  | `GET /v1/public/accounts/{account_id}/credentials` |                       |                   |

<AccordionGroup>
  <Accordion title="Argumenten">
    | Naam         | Type  | Vereist |
    | ------------ | ----- | ------- |
    | `account_id` | `str` | ja      |
    | `page`       | `int` | nee     |
    | `page_size`  | `int` | nee     |
  </Accordion>

  <Accordion title="Retourneert">
    | Veld        | Type                                                                                                                                    | Vereist |
    | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------- |
    | `items`     | `[{"created_at": str, "id": str, "name": str, "scope_id": str, "scope_type": "account" \| "workspace" \| "domain", "updated_at": str}]` | ja      |
    | `page`      | `int`                                                                                                                                   | ja      |
    | `page_size` | `int`                                                                                                                                   | ja      |
    | `total`     | `int`                                                                                                                                   | ja      |
  </Accordion>

  <Accordion title="A2A-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "credentials.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
    }
    ```

    Respons:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "credentials.list",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "credentials.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
        }
      }
    }
    ```

    Respons:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"credentials.list\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `credentials.update`

```text theme={null}
credentials.update(account_id: str, credential_id: str, name: str) -> MasterPassword
```

Masterwachtwoorden: `credentials.update`.

| Eigenschap          | Waarde                                                               | Eigenschap            | Waarde              |
| ------------------- | -------------------------------------------------------------------- | --------------------- | ------------------- |
| Vereiste machtiging | `credential.manage`                                                  | Authenticatie vereist | `ja`                |
| Uitvoermodus        | `sync`                                                               | Mogelijkheid          | `credential.manage` |
| Resourcetype        | `account`                                                            | Resource-ID-veld      | `account_id`        |
| Openbare API-route  | `PATCH /v1/public/accounts/{account_id}/credentials/{credential_id}` |                       |                     |

<AccordionGroup>
  <Accordion title="Argumenten">
    | Naam            | Type  | Vereist |
    | --------------- | ----- | ------- |
    | `account_id`    | `str` | ja      |
    | `credential_id` | `str` | ja      |
    | `name`          | `str` | ja      |
  </Accordion>

  <Accordion title="Retourneert">
    | Veld         | Type                                   | Vereist |
    | ------------ | -------------------------------------- | ------- |
    | `created_at` | `str`                                  | ja      |
    | `id`         | `str`                                  | ja      |
    | `name`       | `str`                                  | ja      |
    | `scope_id`   | `str`                                  | ja      |
    | `scope_type` | `"account" \| "workspace" \| "domain"` | ja      |
    | `updated_at` | `str`                                  | ja      |
  </Accordion>

  <Accordion title="A2A-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "credentials.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
    ```

    Respons:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "credentials.update",
          "status": "completed",
          "result": "<string>"
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="MCP-voorbeeld">
    Aanvraag:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "credentials.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", credential_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
        }
      }
    }
    ```

    Respons:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"credentials.update\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
