Using Secrets

Secrets allow you to store and use sensitive information in a Self-Service Action.

See more information on How to create a Secret here.

To use a secret in an action, you can use the secret context to access secrets you've created in your organization.

Example using a Secret in Headers or Payload section

{
  "token": "{{secret.your_identifier}}",
  "injectSecretToken": "Bearer {{secret.your_identifier}}"
}

Example using in User Inputs section

Create the Dropdown user input with Secrets options

[
  {
    "type": "dropdown",
    "title": "Choose your Secret",
    "payloadName": "your_payload_name",
    "options": [
      {
        "value": "{{secret.AWS}}",
        "label": "AWS"
      },
      {
        "value": "{{secret.GCP}}",
        "label": "Google"
      }
    ]
  }
]

And then create a reference placeholder in Headers or Payload section

{
  "token": "{{your_payload_name}}"
}

Last updated

Copyright © 2023 configure8, Inc. All rights reserved.