Create a connector
- Base URL
-
https://{kibana_url}
Refer to Spaces for more information.
Authentication
Authorization: <value>
These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: Authorization: ApiKey base64AccessApiKey
Authorization: Basic <credentials>
Request body
-
configunion oneOf · default: {} -
The connector configuration details.
- One of:
-
allowHtmlboolean · default: false -
When
true, the connector can send emails with HTML-formatted content in the body. Defaults tofalse. This option is unavailable whenserviceiselastic_cloud. -
clientIdstringnullable -
The client identifier, which is a part of OAuth 2.0 client credentials authentication, in GUID format. If
serviceisexchange_server, this property is required. -
fromstringrequired -
The from address for all emails sent by the connector. It must be specified in
user@host-nameformat. -
hasAuthboolean · default: true -
Specifies whether a user and password are required inside the secrets configuration.
-
hoststring -
The host name of the service provider. If the
serviceiselastic_cloud(for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. Ifserviceisother, this property must be defined. -
portinteger -
The port to connect to on the service provider. If the
serviceiselastic_cloud(for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. Ifserviceisother, this property must be defined. -
secureboolean -
Specifies whether the connection to the service provider will use TLS. If the
serviceiselastic_cloud(for Elastic Cloud notifications) or one of Nodemailer's well-known email service providers, this property is ignored. -
clientIdstring -
The client ID assigned to your OAuth application. This property is required when
isOAuthistrue. -
isOAuthboolean · default: false -
The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth).
-
jwtKeyIdstring -
The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when
isOAuthistrue. -
userIdentifierValuestring -
The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is
Email, the user identifier should be the user's email address. This property is required whenisOAuthistrue. -
clientIdstring -
The client ID assigned to your OAuth application. This property is required when
isOAuthistrue. -
isOAuthboolean · default: false -
The type of authentication to use. The default value is false, which means basic authentication is used instead of open authorization (OAuth).
-
jwtKeyIdstring -
The key identifier assigned to the JWT verifier map of your OAuth application. This property is required when
isOAuthistrue. -
userIdentifierValuestring -
The identifier to use for OAuth authentication. This identifier should be the user field you selected when you created an OAuth JWT API endpoint for external clients in your ServiceNow instance. For example, if the selected user field is
Email, the user identifier should be the user's email address. This property is required whenisOAuthistrue. -
accessTokenUrlstring -
The URL used to request an OAuth2 access token. If
hasAuthis set totrueandauthTypeiswebhook-oauth2-client-credentials, this property is required. -
additionalFieldsstringnullable -
Additional fields, encoded as a JSON object, sent as part of the OAuth2 access token request body.
-
authTypeenumnullable -
The type of authentication to use: basic, SSL, OAuth2 client credentials, or none.
-
Values:
webhook-authentication-basicwebhook-authentication-sslwebhook-oauth2-client-credentials -
castring -
A base64 encoded version of the certificate authority file that the connector can trust to sign and validate certificates. This option is available for all authentication types.
-
certTypeenum -
If the
authTypeiswebhook-authentication-ssl, specifies whether the certificate authentication data is in a CRT and key file format or a PFX file format. -
Values:
ssl-crt-keyssl-pfx -
clientIdstring -
The client identifier for OAuth2 authentication. If
hasAuthis set totrueandauthTypeiswebhook-oauth2-client-credentials, this property is required. -
hasAuthboolean · default: true -
If true, a username and password for login type authentication must be provided.
-
methodenum · default: post -
The HTTP request method:
post,put,patch,get, ordelete. -
Values:
postputpatchgetdelete -
urlstring -
The request URL. If you are using the
xpack.actions.allowedHostssetting, add the hostname to the allowed hosts. -
verificationModeenum · default: full -
Controls the verification of certificates. Use
fullto validate that the certificate has an issue date within thenot_beforeandnot_afterdates, chains to a trusted certificate authority (CA), and has a hostname or IP address that matches the names within the certificate. Usecertificateto validate the certificate and verify that it is signed by a trusted authority; this option does not check the certificate hostname. Usenoneto skip certificate validation. -
Values:
certificatefullnone -
authTypeenumnullable -
The type of authentication to use: basic, SSL, OAuth2 client credentials, or none.
-
Values:
webhook-authentication-basicwebhook-authentication-sslwebhook-oauth2-client-credentials -
castring -
A base64 encoded version of the certificate authority file that the connector can trust to sign and validate certificates. This option is available for all authentication types.
-
certTypeenum -
If the
authTypeiswebhook-authentication-ssl, specifies whether the certificate authentication data is in a CRT and key file format or a PFX file format. -
Values:
ssl-crt-keyssl-pfx -
createCommentJsonstring -
A JSON payload sent to the create comment URL to create a case comment. You can use variables to add Kibana Cases data to the payload. The required variable is
case.comment. Due to Mustache template variables (the text enclosed in triple braces, for example,{{{case.title}}}), the JSON is not validated when you create the connector. The JSON is validated once the Mustache variables have been placed when the REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. -
createCommentMethodenum · default: put -
The REST API HTTP request method to create a case comment in the third-party system. Valid values are
patch,post, andput. -
Values:
patchpostput -
createCommentUrlstring -
The REST API URL to create a case comment by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the
xpack.actions.allowedHosts setting, add the hostname to the allowed hosts. -
createIncidentJsonstringrequired -
A JSON payload sent to the create case URL to create a case. You can use variables to add case data to the payload. Required variables are
case.titleandcase.description. Due to Mustache template variables (which is the text enclosed in triple braces, for example,{{{case.title}}}), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. -
createIncidentMethodenum · default: post -
The REST API HTTP request method to create a case in the third-party system. Valid values are
patch,post, andput. -
Values:
patchpostput -
createIncidentResponseKeystringrequired -
The JSON key in the create external case response that contains the case ID.
-
createIncidentUrlstringrequired -
The REST API URL to create a case in the third-party system. If you are using the
xpack.actions.allowedHostssetting, add the hostname to the allowed hosts. -
getIncidentResponseExternalTitleKeystringrequired -
The JSON key in get external case response that contains the case title.
-
getIncidentUrlstringrequired -
The REST API URL to get the case by ID from the third-party system. If you are using the
xpack.actions.allowedHostssetting, add the hostname to the allowed hosts. You can use a variable to add the external system ID to the URL. Due to Mustache template variables (the text enclosed in triple braces, for example,{{{case.title}}}), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid, disregarding the Mustache variables, so the later validation will pass. -
hasAuthboolean · default: true -
If true, a username and password for login type authentication must be provided.
-
headersmap string to stringnullable -
A set of key-value pairs sent as headers with the request URLs for the create case, update case, get case, and create comment methods.
-
updateIncidentJsonstringrequired -
The JSON payload sent to the update case URL to update the case. You can use variables to add Kibana Cases data to the payload. Required variables are
case.titleandcase.description. Due to Mustache template variables (which is the text enclosed in triple braces, for example,{{{case.title}}}), the JSON is not validated when you create the connector. The JSON is validated after the Mustache variables have been placed when REST method runs. Manually ensure that the JSON is valid to avoid future validation errors; disregard Mustache variables during your review. -
updateIncidentMethodenum · default: put -
The REST API HTTP request method to update the case in the third-party system. Valid values are
patch,post, andput. -
Values:
patchpostput -
updateIncidentUrlstringrequired -
The REST API URL to update the case by ID in the third-party system. You can use a variable to add the external system ID to the URL. If you are using the
xpack.actions.allowedHostssetting, add the hostname to the allowed hosts. -
verificationModeenum · default: full -
Controls the verification of certificates. Use
fullto validate that the certificate has an issue date within thenot_beforeandnot_afterdates, chains to a trusted certificate authority (CA), and has a hostname or IP address that matches the names within the certificate. Usecertificateto validate the certificate and verify that it is signed by a trusted authority; this option does not check the certificate hostname. Usenoneto skip certificate validation. -
Values:
certificatefullnone -
secretsunion oneOf · default: {} - One of:
-
apiKeystring -
The API key for authentication. For OpenAI and Azure OpenAI providers, it is required. For the
Otherprovider, it is required if you do not use PKI authentication. With PKI, you can also optionally include an API key if the OpenAI-compatible service supports or requires one. -
certificateDatastring · min length: 1 -
Base64-encoded PEM certificate content for PKI authentication (Other provider only). Required for PKI.
-
clientSecretstring -
The client secret assigned to your OAuth application. This property is required when
isOAuthistrue. -
passwordstring -
The password for HTTP basic authentication. This property is required when
isOAuthisfalse. -
privateKeystring -
The RSA private key that you created for use in ServiceNow. This property is required when
isOAuthistrue. -
clientSecretstring -
The client secret for OAuth2 authentication. If
hasAuthis set totrueandauthTypeiswebhook-oauth2-client-credentials, this property is required. -
crtstring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-crt-key, it is a base64 encoded version of the CRT or CERT file. -
keystring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-crt-key, it is a base64 encoded version of the KEY file. -
pfxstring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-pfx, it is a base64 encoded version of the PFX or P12 file. -
crtstring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-crt-key, it is a base64 encoded version of the CRT or CERT file. -
keystring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-crt-key, it is a base64 encoded version of the KEY file. -
pfxstring -
If
authTypeiswebhook-authentication-sslandcertTypeisssl-pfx, it is a base64 encoded version of the PFX or P12 file.
Defines properties for connectors when type is .bedrock.
Defines config properties for connectors when type is .crowdstrike.
Defines properties for connectors when type is .d3security.
Defines properties for connectors when type is .email.
Defines properties for connectors when type is .gemini.
Defines properties for connectors when type is .resilient.
Defines properties for connectors when type is .index.
Defines properties for connectors when type is .jira.
Defines properties for connectors when type is .gen-ai and the API provider is Azure OpenAI.
Defines properties for connectors when type is .gen-ai and the API provider is OpenAI.
Defines properties for connectors when type is .gen-ai and the API provider is Other (OpenAI-compatible service), including optional PKI authentication.
Defines properties for connectors when type is .opsgenie.
Defines properties for connectors when type is .pagerduty.
Defines properties for connectors when type is .sentinelone.
Defines properties for connectors when type is .servicenow.
Defines properties for connectors when type is .servicenow-itom.
Defines properties for connectors when type is .slack_api.
Defines properties for connectors when type is .swimlane.
Defines configuration properties for connectors when type is .thehive.
Defines properties for connectors when type is .tines.
Defines properties for connectors when type is .torq.
Defines properties for connectors when type is .webhook.
Defines properties for connectors when type is .cases-webhook.
Defines properties for connectors when type is .xmatters.
Defines secrets for connectors when type is .bedrock.
Defines secrets for connectors when type is .crowdstrike.
Defines secrets for connectors when type is .d3security.
Defines secrets for connectors when type is .email.
Defines secrets for connectors when type is .gemini.
Defines secrets for connectors when type is .resilient.
Defines secrets for connectors when type is .jira.
Defines secrets for connectors when type is ..microsoft_defender_endpoint.
Defines secrets for connectors when type is .teams.
Defines secrets for connectors when type is .gen-ai. Supports both API key authentication (OpenAI, Azure OpenAI, and Other) and PKI authentication (Other provider only). PKI fields must be base64-encoded PEM content.
Defines secrets for connectors when type is .opsgenie.
Defines secrets for connectors when type is .pagerduty.
Defines secrets for connectors when type is .sentinelone.
Defines secrets for connectors when type is .servicenow, .servicenow-sir, or .servicenow-itom.
Defines secrets for connectors when type is .slack.
Defines secrets for connectors when type is .swimlane.
Defines secrets for connectors when type is .thehive.
Defines secrets for connectors when type is .tines.
Defines secrets for connectors when type is .torq.
Defines secrets for connectors when type is .webhook.
Defines secrets for connectors when type is .xmatters.
Responses
Indicates a successful call.
Indicates that this call is forbidden.