curl --request POST \
--url https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-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.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"keyName": "<string>",
"ttl": 123,
"capability": "<string>",
"timestamp": 123,
"nonce": "<string>",
"mac": "<string>",
"clientId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Create Realtime Token
Issue a subscribe-only Ably token for a submission’s realtime channel.
The token grants subscribe on submission:{submission_id} only, so a
customer can receive live workflow_update status events without holding
any Ably credentials. Relay the response verbatim to the Ably client SDK
(e.g. via authCallback); it expires and is re-requested from this
endpoint on refresh.
Authentication: Requires X-API-Key header with valid API key.
Raises: 404: If submission not found or not in the authenticated workspace. 503: If Ably is not configured for this deployment.
curl --request POST \
--url https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-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.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.northell.io/nhl/prod/mediamagic-verify-integrations/api/submissions/{submission_id}/realtime-token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"keyName": "<string>",
"ttl": 123,
"capability": "<string>",
"timestamp": 123,
"nonce": "<string>",
"mac": "<string>",
"clientId": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Workspace-scoped API key. Format: sk_live_{64 hex chars}
Path Parameters
Response
Successful Response
Ably token request granting subscribe-only access to a submission channel.
Relay this object verbatim to the Ably client SDK (e.g. via authCallback)
to authenticate a subscription to the submission's realtime channel.
Ably key name the token is signed with
Token lifetime in milliseconds
Granted capability (JSON): subscribe on the submission channel
Signing timestamp (ms since epoch)
Unique nonce for the signed token request
HMAC signature of the token request
Client identity stamped on the token