Skip to main content
POST
/
api
/
orchestration
/
fabric
/
{fabricId}
/
secret
Add secret to fabric
curl --request POST \
  --url https://app.prophecy.io/api/orchestration/fabric/{fabricId}/secret \
  --header 'Content-Type: application/json' \
  --header 'X-AUTH-TOKEN: <x-auth-token>' \
  --data '
{
  "subKind": "text",
  "properties": {
    "name": "your-secret-name",
    "value": "your-secret-value"
  },
  "kind": "prophecy"
}
'
{
  "success": true,
  "data": {
    "id": "4657"
  }
}

Headers

X-AUTH-TOKEN
string
required

Prophecy authentication token. Required for all API requests.

Path Parameters

fabricId
string
required

The unique ID of the parent fabric

Body

application/json

Secret object to be created. Properties vary by subKind.

kind
enum<string>
required

Secret management provider

Available options:
prophecy
subKind
enum<string>
required

Secret sub-type

Available options:
text,
binary,
username_password,
m2m_oauth
properties
object
required

Secret properties that vary by subKind.

Find specific properties in the Secrets > Properties section of the API documentation.

Response

200 - application/json

Secret created successfully

success
enum<boolean>
required

Indicates the request was successful.

Available options:
true,
false
data
object

Response data containing the secret ID.