---
title: "Persist uploaded agent values encrypted and return opaque hosted refs."
method: POST
path: "/simulate/api/harness-jobs/secret-values/"
tags: ["simulate"]
---

# Persist uploaded agent values encrypted and return opaque hosted refs.

`POST /simulate/api/harness-jobs/secret-values/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/api/harness-jobs/secret-values/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Values are intentionally separate from platform/model-provider settings. They are scoped
to the submitting organization and only resolved inside the selected hosted job.

## Request body

- HarnessSecretValues
  - `environment_values` object, required

## Response `201`

Created

- HarnessSecretValues
  - `environment_values` object, required

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
