---
updatedAt: 2026-10-06T17:40:07.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /usc-create

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Infrastructure & connectivity",
    "version": "3.0"
  },
  "paths": {
    "/usc-create": {
      "post": {
        "operationId": "uscCreate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/uscCreate"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/uscCreateResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Universal Secrets Connector"
        ],
        "x-docs-category": "Infrastructure & connectivity",
        "x-docs-group": "Universal Secrets Connector"
      }
    }
  },
  "tags": [
    {
      "name": "Universal Secrets Connector"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "uscCreateResponse": {
        "description": "uscCreateResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/UscCreateSecretOutput"
            }
          }
        }
      }
    },
    "schemas": {
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "ObjectType": {
        "type": "string",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/external-secrets-manager/base"
      },
      "UscCreateSecretOutput": {
        "properties": {
          "partial_failure": {
            "description": "PartialFailure aggregates per-target create failures when some targets still succeeded.",
            "type": "string",
            "x-go-name": "PartialFailure"
          },
          "secret_id": {
            "type": "string",
            "x-go-name": "SecretId"
          },
          "selected_environments": {
            "description": "SelectedEnvironments is the subset of GitHub environments where create succeeded (comma-separated).",
            "type": "string",
            "x-go-name": "SelectedEnvironments"
          },
          "selected_repositories": {
            "description": "SelectedRepositories is the subset of GitHub repositories where create succeeded (comma-separated).",
            "type": "string",
            "x-go-name": "SelectedRepositories"
          },
          "version_id": {
            "type": "string",
            "x-go-name": "VersionId"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "uscCreate": {
        "description": "uscCreate is a command that creates a new secret in a Universal Secrets Connector",
        "properties": {
          "aws-account-id": {
            "description": "The AWS account ID to create the secret in. Required when the connector spans multiple account IDs.",
            "type": "string",
            "x-go-name": "Account"
          },
          "binary-value": {
            "description": "Use this option if the universal secrets value is a base64 encoded binary",
            "type": "boolean",
            "x-go-name": "BinaryValue"
          },
          "description": {
            "description": "Description of the universal secrets",
            "type": "string",
            "x-go-name": "Description"
          },
          "gcp-project-id": {
            "description": "The GCP project to create the secret in (GCP only). Required when the connector spans multiple projects or uses folder/organization scope.",
            "type": "string",
            "x-go-name": "Project"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "namespace": {
            "description": "The namespace (relevant for Hashi vault target)",
            "type": "string",
            "x-go-name": "Namespace"
          },
          "object-type": {
            "$ref": "#/components/schemas/ObjectType"
          },
          "pfx-password": {
            "description": "Optional, the passphrase that protects the private key within the pfx certificate (Relevant only for Azure KV certificates)",
            "type": "string",
            "x-go-name": "PfxPassword"
          },
          "region": {
            "description": "AWS Organization scope region or GCP regional secret location.\nGCP creates a global secret when empty.",
            "type": "string",
            "x-go-name": "Region"
          },
          "remote-secret-activation-date": {
            "description": "Activation date for the secret on the remote endpoint, in UTC format: YYYY-MM-DDTHH:MM:SSZ",
            "type": "string",
            "x-go-name": "RemoteSecretActivationDate"
          },
          "remote-secret-expires": {
            "description": "Expiration time for the secret on the remote endpoint, in UTC format: YYYY-MM-DDTHH:MM:SSZ",
            "type": "string",
            "x-go-name": "RemoteSecretExpires"
          },
          "secret-name": {
            "description": "Name for the new universal secrets",
            "type": "string",
            "x-go-name": "SecretName"
          },
          "selected-repositories": {
            "type": "string",
            "x-go-name": "SelectedRepositories"
          },
          "tags": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Tags for the universal secrets",
            "type": "object",
            "x-go-name": "Tags"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          },
          "usc-encryption-key": {
            "description": "Optional, The name of the remote key that used to encrypt the secret value (if empty, the default key will be used)",
            "type": "string",
            "x-go-name": "EncryptionKey"
          },
          "usc-name": {
            "description": "Name of the Universal Secrets Connector item",
            "type": "string",
            "x-go-name": "ExternalSecretManagerName"
          },
          "value": {
            "description": "Value of the universal secrets item, either text or base64 encoded binary",
            "type": "string",
            "x-go-name": "Value"
          }
        },
        "required": [
          "usc-name",
          "value",
          "secret-name"
        ],
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```