Developer

Talk to Voila from your app

This page explains how to interact with Voila from another app: send cards, dates, numbers and keywords with a voila:// link, or let Voila fetch data from your API.

Last updated:

URL scheme

You can send data to Voila using the Voila URL scheme. URLs use this format: voila://[action]?[params]

Possible actions

[action] can be replaced with any action from this list:

Possible parameters

[params] depends on the [action] you are calling. Each action lists its own parameters below.

The input action

Here are the parameters you can use with the input action:

ParameterSendsValue
cardA card2 characters: rank + suit
positionA card, by its position in the user's stacked deckInteger from 1 to 52
dateA dateUnix timestamp, in seconds
numberA numberNon-negative integer
keywordA keywordURL-encoded string

Examples

Here are some examples of URLs that work with the input action:

Parameter reference

card

rank + suit

Sends a card to Voila. The value must be 2 characters long: the first one is the card's rank and the second one its suit.

Ranks

  • 1Ace
  • 2Two
  • 3Three
  • 4Four
  • 5Five
  • 6Six
  • 7Seven
  • 8Eight
  • 9Nine
  • 0Ten
  • JJack
  • QQueen
  • KKing

Suits

  • S Spades
  • H Hearts
  • C Clubs
  • D Diamonds

Joker

  • JJJoker

The Joker can't be sent at the moment.

Examples

  • 1CAce of Clubs
  • 3DThree of Diamonds
  • 0STen of Spades
  • KHKing of Hearts
  • JJJoker

position

integer · 1–52

Sends a card to Voila using its position in the user's stacked deck. The value must be an integer between 1 and 52.

Examples, using Juan Tamariz's Mnemonica stack

  • 1Four of Clubs
  • 52Nine of Diamonds

date

Unix timestamp · seconds

Sends a date to Voila. The value must be a Unix timestamp, in seconds.

Examples

  • 601302600January 20th, 1989
  • 1604349590November 2nd, 2020

number

integer · 0 or more

Sends a number to Voila. The value must be a non-negative integer.

Examples

  • 123
  • 1234567890

keyword

URL-encoded string

Sends a keyword to Voila. The value must be a URL-encoded string.

Examples

  • Steve%20Jobs
  • Daft%20Punk
  • tiger

API fetching

Since version 5.4

Voila can fetch data from any API URL.

Users can map any key from a JSON dictionary, or any plain string, to a Voila keyword. Keywords can then be used in Voila tricks.

Anything else?

Please contact us if you'd like to talk about connecting your product with Voila.

[email protected]