Secrets

postSecrets

POST
/secrets

Create a Secret. A Secret represents either a key used to decrypt data or an indicator of which key to be used to decrypt data.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Secret Request

Create Secret Request

login*string

The identifier of the Login that owns this secret resource.

entity?string

The identifier of the Entity associated with this secret.

org?|

The identifier of the Org associated with this secret.

division?string

The identifier of the Division associated with this secret.

partition?string

The identifier of the Partition associated with this secret.

type*secretType

The type of secret.

  • baseKey - Base Derivation Key.
  • sftp - SFTP Server Key.
  • publicKey - Public Key.
  • privateKey - Private Key.
  • ecPrivateKey - Elliptic Curve Private Key.
  • apikey - API Key.
  • oldPrivateKey - Expired Private Key.

Value in

  • "baseKey"
  • "sftp"
  • "publicKey"
  • "privateKey"
  • "ecPrivateKey"
  • "apikey"
  • "oldPrivateKey"
platform?secretsPlatform

The platform used to process this Transaction.

  • APPLE - Apple Payment Processor
  • ELAVON - ELAVON Payment Processor
  • FIRSTDATA - FirstData Payment Processor
  • GOOGLE - Google Payment Processor
  • VANTIV - WorldPay / Vantiv eComm Payment Processor (VAP)
  • VCORE - WorldPay / Vantiv Core Payment Processor
  • WELLSACH - Wells Fargo Merchant Services Payment Processor (ACH)
  • WELLSFARGO - Wells Fargo Merchant Services Payment Processor
  • WFSINGLE - Wells Fargo Single Payment Processor
  • WORLDPAY - WORLDPAY
  • TDBANKCA - TDBANKCA

Value in

  • "APPLE"
  • "ELAVON"
  • "FIRSTDATA"
  • "GOOGLE"
  • "VANTIV"
  • "VCORE"
  • "WELLSACH"
  • "WELLSFARGO"
  • "WFSINGLE"
  • "WORLDPAY"
  • "TDBANKCA"
name?string

The name of this Secret. This field is stored as a text string and must be between 0 and 100 characters long.

description?string

A description of this Secret. This field is stored as a text string and must be between 0 and 500 characters long.

key*string

The actual key or the indicator of which key to use. This field is stored as a text string and must be between 1 and 5000 characters long.

locked?secretLocked

Whether this secret is locked or not. If it is locked, then the value of this type of secret will prevail.

  • 0 - Not Locked
  • 1 - Locked

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X POST "https://example.com/secrets" \  -H "Content-Type: application/json" \  -d '{    "login": "t1_log_63d2cddf694099bfb64e976",    "entity": "g157715bca1f00z",    "org": "t1_org_5fada4629c317f80bc9cb12",    "division": "t1_div_67c56806728fbbf0bae0b00",    "partition": "g157713aff9b946",    "type": "privateKey",    "platform": "APPLE",    "name": "Test1",    "description": "description1",    "key": "529c5b7ac1d02079fc162a4fe3e32a020057f4b3d7b6225eb55bf8ec65257283",    "locked": 0,    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_sct_678933d597288379adacez0",        "created": "2025-01-16 11:29:09.6251",        "modified": "2025-01-16 11:29:09.6251",        "creator": "t1_log_63d2cddf694099bfb64e976",        "modifier": "t1_log_63d2cddf694099bfb64e976",        "login": "t1_log_63d2cddf694099bfb64e976",        "entity": "g157715bca1f00z",        "org": "t1_org_5fada4629c317f80bc9cb12",        "division": "t1_div_67c56806728fbbf0bae0b00",        "partition": "g157713aff9b946",        "type": "privateKey",        "platform": "APPLE",        "name": "Test1",        "description": "description1",        "key": "529c5b7ac1d02079fc162a4fe3e32a020057f4b3d7b6225eb55bf8ec65257283",        "locked": 0,        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}