Skip to main content
POST
Open URL
Open a URL on the phone through the Use TapKit shortcut. TapKit enqueues an open_url shortcut action for the phone, then triggers the shortcut through the selected Mac. The shortcut fetches the pending action and opens the URL from the action payload.
This endpoint currently does not validate URLs. Send a full URL, including the scheme, such as https://www.apple.com.

Request

You can also authenticate with a bearer token:

Path Parameters

Query Parameters

Request Body

With consume_mode:

Response

Status: 200 OK

Behavior

The endpoint:
  1. Validates that the phone belongs to the authenticated organization.
  2. Requires an active subscription.
  3. Requires the phone to be active.
  4. Requires the phone to have an online, selected Mac.
  5. Creates a tracking job with action type open_url.
  6. Enqueues a shortcut action for the phone.
  7. Triggers the Use TapKit shortcut through the Mac and Switch Control.
The enqueued shortcut action looks like this:
The phone shortcut polls for work using:
The poll response contains the pending action:
The shortcut handles action_type == "open_url" by opening payload.url.

Consume Modes

Async Mode

Without async=true, the API waits while it attempts to trigger the shortcut, then returns after that trigger attempt. With async=true, the API returns immediately after enqueueing the action and starts the shortcut trigger in the background.