Controllers
Create a controller token
Exchange a signed ES256 JWS bearer assertion for a 15-minute (`expiresIn: 900`), location-scoped token (`actl_...`).
Required JWS claims: `aud` (`"authsignal:terminal:controller:token"`), `sub` (`controllerId`), `iat` (Unix seconds), `exp` (<= `iat + 60`), unique single-use `jti` (max 128 chars). Previous tokens stay valid until expiry.
POST
/
terminal
/
controllers
/
{controllerId}
/
token
Create a controller token
curl --request POST \
--url https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device": {
"model": "iPad14,3",
"appVersion": "1.0.0"
}
}
'import requests
url = "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token"
payload = { "device": {
"model": "iPad14,3",
"appVersion": "1.0.0"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({device: {model: 'iPad14,3', appVersion: '1.0.0'}})
};
fetch('https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'device' => [
'model' => 'iPad14,3',
'appVersion' => '1.0.0'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token"
payload := strings.NewReader("{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}"
response = http.request(request)
puts response.read_body{
"accessToken": "actl_2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d.ExampleTokenValue1234567890abcdefghijk",
"expiresAt": "2026-11-25T03:15:00.000Z",
"expiresIn": 900
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}Authorizations
Was this page helpful?
⌘I
Create a controller token
curl --request POST \
--url https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device": {
"model": "iPad14,3",
"appVersion": "1.0.0"
}
}
'import requests
url = "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token"
payload = { "device": {
"model": "iPad14,3",
"appVersion": "1.0.0"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({device: {model: 'iPad14,3', appVersion: '1.0.0'}})
};
fetch('https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'device' => [
'model' => 'iPad14,3',
'appVersion' => '1.0.0'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token"
payload := strings.NewReader("{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.authsignal.com/v1/terminal/controllers/{controllerId}/token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device\": {\n \"model\": \"iPad14,3\",\n \"appVersion\": \"1.0.0\"\n }\n}"
response = http.request(request)
puts response.read_body{
"accessToken": "actl_2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d.ExampleTokenValue1234567890abcdefghijk",
"expiresAt": "2026-11-25T03:15:00.000Z",
"expiresIn": 900
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}{
"error": "verification_in_progress",
"errorCode": "verification_in_progress",
"errorDescription": ""
}
