# X-Callback-URL

You can run any X-Callback-URL by creating a [Terminal Command](/inbox-ai/actions/custom-actions/terminal-command.md) action like the one below.

<figure><img src="/files/IJ4eMz1bE5wHLLGohzIO" alt=""><figcaption><p>A very basic Terminal Command</p></figcaption></figure>

The command above uses the `open` Terminal Command to open a URL. Use [Action Variables](/inbox-ai/actions/action-variables.md) to customize the url and give your AI more options.

### Controlling Inbox AI through x-callback-urls

Each action has a url assocoated with it. Right click the action to copy the url:

<figure><img src="/files/FRTnFIDHrp0FIk6tYSW0" alt=""><figcaption><p>Right click to get the x-callback-url of any action</p></figcaption></figure>

The URL looks like this:

```
inboxai://execute?action=STRING&xxx=STRING&originalInput=STRING
```

Where `action` is the id of the action, `originalInput` is the original import, and a set of variables (the AI variables defined for your action under "Edit variables").

Additionally, you can also trigger any assigned hotkey using one of these URLs:

```
inboxai://audio
inboxai://screenshot
inboxai://audio?action=STRING&originalInput=STRING
inboxai://screenshot?action=STRING
```

These will trigger a screenshot or audio action, including the associated UI. Note that you need to have a hotkey setup for each action you control this way (i.e. else you cannot stop/start recording)

{% hint style="info" %}
The screenshot and audio x-callback action do not support sending any ai variables.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dreetje-1.gitbook.io/inbox-ai/integrations/x-callback-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
