---
title: "Submit secrets for an MCP collect_secrets request"
method: POST
path: "/v3/teams/{team_id}/threads/{thread_id}/secrets"
tags: ["v3", "Fi3"]
---

# Submit secrets for an MCP collect_secrets request

`POST /v3/teams/{team_id}/threads/{thread_id}/secrets`

Receive secrets from frontend form and publish to waiting MCP tool.

This endpoint is called by the frontend when a user submits credentials
in a secrets_form panel created by the collect_secrets MCP tool.

## Path parameters

- `team_id` string, required
- `thread_id` string, required

## Request body

- SecretsSubmitRequest — Request body for submitting secrets from the frontend form.
  - `secrets` object, required

## Response `202`

Secrets received and published

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/definite/apis/defapi.md) · [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/definite/defapi/revisions/3943d8deb3be/schema)
