POST /api/v1/inlineHooks

Creates an inline hook

This endpoint creates an inline hook for your org in an ACTIVE status. You need to pass an inline hooks object in the JSON payload of your request. That object represents the set of required information about the inline hook that you're registering, including:

There are two authentication options that you can configure for your inline hook: HTTP headers and OAuth 2.0 tokens.

HTTP headers let you specify a secret API key that you want Okta to pass to your external service endpoint (so that your external service can check for its presence as a security measure).

Note: The API key that you set here is unrelated to the Okta API token you must supply when making calls to Okta APIs.

You can also optionally specify extra headers that you want Okta to pass to your external service with each call.

To configure HTTP header authentication, see parameters for the config object.

OAuth 2.0 tokens provide enhanced security between Okta and your external service. You can configure these tokens for the following types—client secret and private key.

Note: Your external service's endpoint needs to be a valid HTTPS endpoint. The URI you specify should always begin with https://.

The total number of inline hooks that you can create in an Okta org is limited to 50, which is a combined total for any combination of inline hook types.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
channel Object No
channel.version String No

Version of the inline hook type. The currently supported version is 1.0.0.

channel.type String No

Valid values:

  • "OAUTH"
  • "HTTP"
name String No

The display name of the inline hook

version String No

Version of the inline hook type. The currently supported version is 1.0.0.

type String No

One of the inline hook types

Valid values:

  • "com.okta.import.transform"
  • "com.okta.user.pre-registration"
  • "com.okta.telephony.provider"
  • "com.okta.oauth2.tokens.transform"
  • "com.okta.saml.tokens.transform"
  • "com.okta.user.credential.password.import"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.