Outbound Integrations API
The Outbound Integrations API enables configuration of outbound webhook integrations, including authentication, methods, and usage tracking.
The Outbound Integrations API enables configuration of outbound webhook integrations, including authentication, methods, and usage tracking.
| Base URL | https://api.alertops.com/api/v2 |
| Authentication | api-key request header |
| Endpoints | 10 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v2/integrations/outbound | List outbound integrations |
| POST | /api/v2/integrations/outbound | Create an outbound integration |
| GET | /api/v2/integrations/outbound/{id} | Get an outbound integration |
| PUT | /api/v2/integrations/outbound/{id} | Update an outbound integration |
| DELETE | /api/v2/integrations/outbound/{id} | Delete an outbound integration |
| GET | /api/v2/integrations/outbound/{id}/method/{method_id} | Get an outbound integration method |
| GET | /api/v2/integrations/outbound/{id}/methods | List outbound integration methods |
| POST | /api/v2/integrations/outbound/{id}/methods | Create an outbound integration method |
| PUT | /api/v2/integrations/outbound/{id}/methods/{method_id} | Update an outbound integration method |
| DELETE | /api/v2/integrations/outbound/{id}/methods/{method_id} | Delete an outbound integration method |
List outbound integrations
GET /api/v2/integrations/outbound
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Optional | Outbound integration name. Default is empty |
sortDir | string | Optional | Default is asc. Eg. asc or desc. |
include | string | Optional | Default is empty. Eg. Methods |
Responses
200 OK
[
{
"outbound_integration_id": 3478,
"outbound_integration_name": "Test Outbound Integration Name",
"is_used": true
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/integrations/outbound" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an outbound integration
POST /api/v2/integrations/outbound
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
outboundIntegrationRequest | object | Required |
Request body
JSON object.
Example body
{
"outbound_integration_name": "Test Outbound Integration Name",
"security_type": "Basic",
"security": {
"public_key": "",
"user_name": "1000031Alert@alertops.com",
"password": "PgY4cWdtg0RyOdrFa1ZNCFA6"
},
"methods": [
{
"method_name": "POST Issue",
"method_type": {
"request_type": "JSON",
"web_method": "POST",
"response_data_type": "JSON",
"type": "REST",
"uri": "https://api.product.com/api/issue",
"request_data": "{ \"fields\": { \"project\": { \"key\": \"DEMO\" }, \"summary\": \"<<MessageThread.Topic>>\", \"description\": \"<<Message.MessageText>>\" } }",
"response_data": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }",
"headers": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }"
},
"alert_type": "10",
"update_alert_fields": true
}
]
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/integrations/outbound?outboundIntegrationRequest={outboundIntegrationRequest}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"outbound_integration_name": "Test Outbound Integration Name",
"security_type": "Basic",
"security": {
"public_key": "",
"user_name": "1000031Alert@alertops.com",
"password": "PgY4cWdtg0RyOdrFa1ZNCFA6"
},
"methods": [
{
"method_name": "POST Issue",
"method_type": {
"request_type": "JSON",
"web_method": "POST",
"response_data_type": "JSON",
"type": "REST",
"uri": "https://api.product.com/api/issue",
"request_data": "{ \"fields\": { \"project\": { \"key\": \"DEMO\" }, \"summary\": \"<<MessageThread.Topic>>\", \"description\": \"<<Message.MessageText>>\" } }",
"response_data": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }",
"headers": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }"
},
"alert_type": "10",
"update_alert_fields": true
}
]
}'Get an outbound integration
GET /api/v2/integrations/outbound/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
Responses
200 OK
{
"outbound_integration_id": 8079,
"outbound_integration_name": "Test Outbound Integration Name",
"is_used": true,
"security_type": "Basic",
"security": {
"public_key": "",
"user_name": "email@company.com"
},
"is_bidirection": true,
"methods": [
{
"method_name": "POST Issue",
"is_used": true,
"method_type": {
"request_type": "REST",
"web_method": "POST",
"response_data_type": "JSON",
"type": "REST",
"uri": "https://api.product.com/api/issue",
"request_data": "{\r\n \"fields\": {\r\n \"project\": {\r\n \"key\": \"DEMO\"\r\n },\r\n \"summary\": \"<<MessageThread.Topic>>\",\r\n \"description\": \"<<Message.MessageText>>\"\r\n }\r\n}",
"response_data": "{\r\n \"id\": \"<<Attribute.JiraIssueID>>\",\r\n \"key\": \"<<Attribute.JiraIssueKey>>\"\r\n}",
"headers": "{\r\n \"id\": \"<<Attribute.JiraIssueID>>\",\r\n \"key\": \"<<Attribute.JiraIssueKey>>\"\r\n}"
},
"alert_type": "10",
"update_alert_fields": true
}
],
"usage": {
"workflows": [
{
"id": "4614",
"name": "WorkflowTest"
}
],
"escalation_policies": [
{
"id": "3872",
"name": "PolicyTest"
}
]
}
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/integrations/outbound/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Update an outbound integration
PUT /api/v2/integrations/outbound/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
outboundIntegrationRequest | object | Required |
Request body
JSON object.
Example body
{
"outbound_integration_name": "Test Outbound Integration Name",
"security_type": "Basic",
"security": {
"public_key": "",
"user_name": "1000031Alert@alertops.com",
"password": "PgY4cWdtg0RyOdrFa1ZNCFA6"
},
"methods": [
{
"method_name": "POST Issue",
"method_type": {
"request_type": "JSON",
"web_method": "POST",
"response_data_type": "JSON",
"type": "REST",
"uri": "https://api.product.com/api/issue",
"request_data": "{ \"fields\": { \"project\": { \"key\": \"DEMO\" }, \"summary\": \"<<MessageThread.Topic>>\", \"description\": \"<<Message.MessageText>>\" } }",
"response_data": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }",
"headers": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }"
},
"alert_type": "10",
"update_alert_fields": true
}
]
}Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/integrations/outbound/{id}?outboundIntegrationRequest={outboundIntegrationRequest}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"outbound_integration_name": "Test Outbound Integration Name",
"security_type": "Basic",
"security": {
"public_key": "",
"user_name": "1000031Alert@alertops.com",
"password": "PgY4cWdtg0RyOdrFa1ZNCFA6"
},
"methods": [
{
"method_name": "POST Issue",
"method_type": {
"request_type": "JSON",
"web_method": "POST",
"response_data_type": "JSON",
"type": "REST",
"uri": "https://api.product.com/api/issue",
"request_data": "{ \"fields\": { \"project\": { \"key\": \"DEMO\" }, \"summary\": \"<<MessageThread.Topic>>\", \"description\": \"<<Message.MessageText>>\" } }",
"response_data": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }",
"headers": "{ \"id\": \"<<Attribute.JiraIssueID>>\", \"key\": \"<<Attribute.JiraIssueKey>>\" }"
},
"alert_type": "10",
"update_alert_fields": true
}
]
}'Delete an outbound integration
DELETE /api/v2/integrations/outbound/{id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X DELETE "https://api.alertops.com/api/v2/integrations/outbound/{id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Get an outbound integration method
GET /api/v2/integrations/outbound/{id}/method/{method_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
method_id | integer | Required | The method ID. |
Responses
200 OK
{
"method_id": 22822,
"name": "Query Contact Methods",
"is_used": true,
"method_type": {
"type": "REST",
"uri": "https://example.com/api/contactmethods",
"request_type": "FORM_URLENCODED",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": null,
"response_data": "[\r\n {},\r\n {\r\n \"ContactDataType\": \"Attribute.JIRAIssueKey\"\r\n }\r\n]",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type_id": 10,
"alert_type_name": "Standard Alert",
"update_alert_fields": true
}401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/integrations/outbound/{id}/method/{method_id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"List outbound integration methods
GET /api/v2/integrations/outbound/{id}/methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
Responses
200 OK
[
{
"method_id": 22822,
"method_name": "Query Contact Methods",
"is_used": true,
"method_type": {
"type": "REST",
"uri": "https://example.com/api/contactmethods",
"request_type": "FORM_URLENCODED",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": null,
"response_data": "[\r\n {},\r\n {\r\n \"ContactDataType\": \"Attribute.JIRAIssueKey\"\r\n }\r\n]",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type_id": 10,
"alert_type_name": "Standard Alert",
"update_alert_fields": true
}
]401 Unauthorized · missing or invalid api-key
Example request
curl -X GET "https://api.alertops.com/api/v2/integrations/outbound/{id}/methods" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"Create an outbound integration method
POST /api/v2/integrations/outbound/{id}/methods
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
request | object | Required |
Request body
JSON object.
Example body
{
"method_name": "Query",
"method_type": {
"type": "REST",
"uri": "https://example.com",
"request_type": "JSON",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": "",
"response_data": "",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type": "Standard Alert",
"update_alert_fields": false
}Responses
200 OK
401 Unauthorized · missing or invalid api-key
Example request
curl -X POST "https://api.alertops.com/api/v2/integrations/outbound/{id}/methods?request={request}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"method_name": "Query",
"method_type": {
"type": "REST",
"uri": "https://example.com",
"request_type": "JSON",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": "",
"response_data": "",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type": "Standard Alert",
"update_alert_fields": false
}'Update an outbound integration method
PUT /api/v2/integrations/outbound/{id}/methods/{method_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
method_id | integer | Required | The method ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
request | object | Required |
Request body
JSON object.
Example body
{
"method_name": "Query",
"method_type": {
"type": "REST",
"uri": "https://example.com",
"request_type": "JSON",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": "",
"response_data": "",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type": "Standard Alert",
"update_alert_fields": false
}Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X PUT "https://api.alertops.com/api/v2/integrations/outbound/{id}/methods/{method_id}?request={request}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"method_name": "Query",
"method_type": {
"type": "REST",
"uri": "https://example.com",
"request_type": "JSON",
"web_method": "GET",
"response_data_type": "JSON",
"request_data": "",
"response_data": "",
"headers": "{\"HeaderKey1\": \"HeaderValue1\", \"HeaderKey2\": \"HeaderValue2\"}"
},
"alert_type": "Standard Alert",
"update_alert_fields": false
}'Delete an outbound integration method
DELETE /api/v2/integrations/outbound/{id}/methods/{method_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | The outbound integration ID. |
method_id | integer | Required | The method ID. |
Responses
204 No Content · The request was processed successfully. No response body is returned.
401 Unauthorized · missing or invalid api-key
Example request
curl -X DELETE "https://api.alertops.com/api/v2/integrations/outbound/{id}/methods/{method_id}" \
-H "api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json"