---
title: "Create trust store configuration"
method: POST
path: "/trust-store-configuration"
tags: ["Trust Store"]
---

# Create trust store configuration

`POST /trust-store-configuration`

Create a new trust store configuration. This is an asynchronous operation that returns a job_id immediately. Track progress using the Jobs API.

The request body varies based on the `provider` field:
- **http**: Fetch certificates from an HTTP/HTTPS URL
- **file**: Upload certificates directly

Note: Only one operation can run at a time per resource.

## Request body

- union
  - TrustStoreConfigurationHttpCreate
    - `provider` 'http' — Trust store provider type (defaults to 'http' if omitted)
    - `url` string, uri, required — URL to fetch certificates from (must be a valid URL with host)
    - `refresh_interval` integer — Interval in seconds to refresh the trust store (default 30)
    - `cacertfile` string — Optional CA certificate to verify the HTTPS connection to the trust store URL
  - TrustStoreConfigurationFileCreate
    - `provider` 'file', required — Trust store provider type (must be 'file')
    - `certificates` object[], required — Array of certificates to upload (1-100 certificates)
      - `name` string, required — Certificate filename (alphanumeric, dots, hyphens, underscores; max 100 chars; cannot start with '.')
      - `content` string, required — PEM-encoded X.509 certificate content
    - `refresh_interval` integer — Interval in seconds to refresh the trust store (default 30)

## Response `200`

Configuration creation initiated

- JobIdResponse
  - `job_id` string, uuid — Job ID to track the asynchronous operation

## Other responses

- `400` — Invalid Content-Type or unknown parameters
- `422` — Validation failed

---

[API](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api.md) · [All operations](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudamqp/cloudamqp-instance-api/revisions/d04a3670170c/schema)
