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: November 15th, 2020
URL scheme
The input action
Parameters
API fetching
Contact
URL scheme
You can send data to Voila using the Voila URL scheme. URLs use this format: voila://[action]?[params]
voila://scheme
[action]what to do
?
[params]depend on the action
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.
Parameter reference
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
The Joker can't be sent at the moment.
Examples
1CAce of Clubs
3DThree of Diamonds
0STen of Spades
KHKing of Hearts
JJJoker
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
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.