Managing API and authentication configurations

Manage the API configurations and authentication configurations that playbooks use to communicate with external APIs. An API configuration defines the request that Automate sends (host, path, method, body, and headers), and can reference an authentication configuration that defines how Automate authenticates to the host.

Note: To create, edit, test, or delete API configurations, you must have the Automate Playbook write permission. To create, edit, or delete authentication configurations, you must have the Automate API Authentication write permission.

Create an API configuration

An API configuration defines the request that a playbook step sends to an external API. If the API requires authentication, you can associate an authentication configuration with the API configuration.

  1. From the Main menu, go to Automate > API Configurations.
  2. Click Create.
  3. In the Name field, enter a name.
  4. (Optional) In the Description field, enter a description.
  5. In the Host field, enter the host name of the API endpoint.
    Important: You cannot change the host after you create the API configuration.
  6. (Optional) From the Authentication Configuration dropdown, select an authentication configuration. Only authentication configurations whose host exactly matches the Host value appear in the list. If you want to create one now, click Create New Configuration. For more information, see Create an authentication configuration.
  7. (Optional) In the Path field, enter the path to append to the host, such as /v1/resources/{{resource_id}}. Enter a variable as {{variable_name}}.
  8. For Method, select POST or PUT.
  9. (Optional) In the Body field, enter the request body. Enter variables the same way as in Path.
  10. (Optional) Click Add Header to add a request header. Enter a Header name and Value. Enter variables the same way as in Path.
  11. (Optional) If the path, body, or headers contain variables, enter a Display Name and Description for each variable that appears in the Variables table.
  12. (Optional) Click Test API Connection to send a test request using the values that you enter in the Value to Test API Connection column.
  13. Click Create.

Create an authentication configuration

An authentication configuration stores the credentials that Automate uses to authenticate with an external API host. Create an authentication configuration if the API that you want to communicate with requires authentication.

  1. From the Main menu, go to Automate > API Configurations.
  2. Click the Authentication Configurations tab.
  3. Click Create.
  4. In the Authentication Configuration Name field, enter a unique name.
  5. From the Authentication Method dropdown, select Basic, Header, or OAuth 2.0.
  6. In the Host field, enter the host name of the API endpoint, such as api.example.com or api.example.com:8443.
    Important: Host must exactly match the host of the API configuration that you want to associate with this authentication configuration. You cannot change the host after you create the authentication configuration.
  7. Depending on the authentication method that you selected, enter the following:
    • Basic: Username and Password.
    • Header: Header Name and Header Secret.
    • OAuth 2.0: OAuth 2.0 Token Endpoint URL, OAuth 2.0 Client ID, and OAuth 2.0 Secret. OAuth 2.0 Scope (Optional) is required by some providers for client credentials grants.
  8. From the Content Set dropdown, select the content set to which this authentication configuration belongs.
  9. Click Create.

Update playbooks that use an outdated API configuration

Playbook steps store their own copy of the values in an API configuration. Edits to an API configuration do not automatically update playbook steps that already use it. Apply Latest Configuration updates only the playbooks that you select in the table.

Important: Schedules and triggers that you did not create are disabled after the update.
  1. From the Main menu, go to Automate > API Configurations.
  2. Click the name of the API configuration.
  3. In the Used in Playbooks section, select one or more playbooks that show No in the Latest Configuration column to update with the latest configuration.
  4. Click Apply Latest Configuration.
  5. Click Apply to confirm.

Delete an API configuration

Delete an API configuration when you no longer need it.

CAUTION: You cannot undo the deletion of an API configuration, and deletion is not blocked even if playbooks use it. Playbook steps that reference a deleted API configuration fail when the playbook runs, including scheduled or triggered runs. Before you delete an API configuration, check the Used in Playbooks section on the configuration detail page.
  1. From the Main menu, go to Automate > API Configurations.
  2. Find the row for the API configuration, and then click Delete Delete.

Delete an authentication configuration

Delete an authentication configuration when you no longer need the stored credentials.

Note: If any API configuration references the authentication configuration, deleting it clears the authentication reference on those API configurations. Playbook steps that use those API configurations fail until you select a different authentication configuration.
  1. From the Main menu, go to Automate > API Configurations.
  2. Click the Authentication Configurations tab.
  3. Find the row for the authentication configuration, and then click Delete Delete.