> For the complete documentation index, see [llms.txt](https://cardknox.gitbook.io/sola-dev-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardknox.gitbook.io/sola-dev-docs/api-reference/integration/webhook.md). Agents can also search and read this documentation through its [MCP server](https://cardknox.gitbook.io/sola-dev-docs/~gitbook/mcp).

# Webhook

## Create CloudIM Webhook

> Use this endpoint to create a CloudIM webhook registration for an account so Sola can send CloudIM session-result callback notifications to your service.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM Webhook APIs","version":"1.0.0"},"tags":[{"name":"Webhook"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v1/Webhook":{"post":{"summary":"Create CloudIM Webhook","description":"Use this endpoint to create a CloudIM webhook registration for an account so Sola can send CloudIM session-result callback notifications to your service.\n","operationId":"API_146_CreateWebhook","tags":["Webhook"],"deprecated":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xWebhookUrl":{"type":"string","description":"The webhook URL to receive CloudIM session result callbacks.","X-required-conditional":false,"X-condition-logic":"","format":"URL"},"xWebhookFriendlyName":{"type":"string","description":"A friendly name for the webhook.","X-required-conditional":false,"X-condition-logic":""}},"required":["xWebhookUrl"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting.","X-required-conditional":false,"X-condition-logic":""},"xResult":{"type":"string","description":"The result of the request.","X-required-conditional":false,"X-condition-logic":"","enum":["S","E"]},"xWebhookId":{"type":"string","description":"The webhook ID to be sent along when initiating a session.","X-required-conditional":false,"X-condition-logic":""}},"required":["xRefnum","xResult","xWebhookId"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}}}}}}}
```

## CloudIM Webhook Info

> Use this endpoint to retrieve the details of an existing CloudIM webhook registration by webhook ID. It is useful for validating CloudIM webhook configuration, troubleshooting callback delivery, and confirming the current registration state.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM Webhook APIs","version":"1.0.0"},"tags":[{"name":"Webhook"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v1/Webhook/{xWebhookId}":{"get":{"summary":"CloudIM Webhook Info","description":"Use this endpoint to retrieve the details of an existing CloudIM webhook registration by webhook ID. It is useful for validating CloudIM webhook configuration, troubleshooting callback delivery, and confirming the current registration state.\n","operationId":"API_147_WebhookInfo","tags":["Webhook"],"deprecated":false,"parameters":[{"name":"xWebhookId","in":"path","required":true,"schema":{"type":"string"},"description":"Webhook ID path parameter used to look up the webhook record."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting.","X-required-conditional":false,"X-condition-logic":""},"xResult":{"type":"string","description":"The result of the request.","X-required-conditional":false,"X-condition-logic":"","enum":["S","E"]},"xWebhookFriendlyName":{"type":"string","description":"The friendly name of the webhook.","X-required-conditional":false,"X-condition-logic":""},"xWebhookUrl":{"type":"string","description":"The webhook URL.","X-required-conditional":false,"X-condition-logic":"","format":"URL"},"xEnabled":{"type":"boolean","description":"Whether the webhook is enabled or not.","X-required-conditional":false,"X-condition-logic":"","enum":[true,false]}},"required":["xRefnum","xResult","xWebhookFriendlyName","xWebhookUrl","xEnabled"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}}}}}}}
```

## Update CloudIM Webhook

> Use this endpoint to update an existing CloudIM webhook registration by webhook ID. It is typically used to change friendly-name metadata or maintain CloudIM webhook configuration without recreating the webhook record from scratch.<br>

```json
{"openapi":"3.0.3","info":{"title":"Sola Payments - CloudIM Webhook APIs","version":"1.0.0"},"tags":[{"name":"Webhook"}],"servers":[{"url":"https://api.cardknox.com","description":"Default API host"}],"paths":{"/v1/Webhook/{xWebhookId}":{"put":{"summary":"Update CloudIM Webhook","description":"Use this endpoint to update an existing CloudIM webhook registration by webhook ID. It is typically used to change friendly-name metadata or maintain CloudIM webhook configuration without recreating the webhook record from scratch.\n","operationId":"API_148_UpdateWebhook","tags":["Webhook"],"deprecated":false,"parameters":[{"name":"xWebhookId","in":"path","required":true,"schema":{"type":"string"},"description":"Webhook ID path parameter identifying the webhook to update."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xWebhookFriendlyName":{"type":"string","description":"A new friendly name for the webhook.","X-required-conditional":false,"X-condition-logic":""}},"required":["xWebhookFriendlyName"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting.","X-required-conditional":false,"X-condition-logic":""},"xResult":{"type":"string","description":"The result of the request.","X-required-conditional":false,"X-condition-logic":"","enum":["S","E"]}},"required":["xRefnum","xResult"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"xRefnum":{"type":"string","description":"The reference number for the request for troubleshooting."},"xResult":{"type":"string","description":"The result of the request.","enum":["S","E"]},"xError":{"type":"string","description":"The error message."}},"required":["xRefnum","xResult","xError"]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cardknox.gitbook.io/sola-dev-docs/api-reference/integration/webhook.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
