Submit Application authorization
curl --request PUT \
--url https://api.example.com/applications/{applicationId}/authorization \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"control_signer_key_id": "<string>",
"nonce": 123,
"canonical_payload": "<string>",
"control_signature": "<string>"
}
'import requests
url = "https://api.example.com/applications/{applicationId}/authorization"
payload = {
"action": "<string>",
"control_signer_key_id": "<string>",
"nonce": 123,
"canonical_payload": "<string>",
"control_signature": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
action: '<string>',
control_signer_key_id: '<string>',
nonce: 123,
canonical_payload: '<string>',
control_signature: '<string>'
})
};
fetch('https://api.example.com/applications/{applicationId}/authorization', 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.example.com/applications/{applicationId}/authorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => '<string>',
'control_signer_key_id' => '<string>',
'nonce' => 123,
'canonical_payload' => '<string>',
'control_signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/applications/{applicationId}/authorization"
payload := strings.NewReader("{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.example.com/applications/{applicationId}/authorization")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/applications/{applicationId}/authorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyApplications
Submit Application authorization
Submit signatures for a prepared Application domain or linked DID change
Submit Application authorization
curl --request PUT \
--url https://api.example.com/applications/{applicationId}/authorization \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"control_signer_key_id": "<string>",
"nonce": 123,
"canonical_payload": "<string>",
"control_signature": "<string>"
}
'import requests
url = "https://api.example.com/applications/{applicationId}/authorization"
payload = {
"action": "<string>",
"control_signer_key_id": "<string>",
"nonce": 123,
"canonical_payload": "<string>",
"control_signature": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
action: '<string>',
control_signer_key_id: '<string>',
nonce: 123,
canonical_payload: '<string>',
control_signature: '<string>'
})
};
fetch('https://api.example.com/applications/{applicationId}/authorization', 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.example.com/applications/{applicationId}/authorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'action' => '<string>',
'control_signer_key_id' => '<string>',
'nonce' => 123,
'canonical_payload' => '<string>',
'control_signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.example.com/applications/{applicationId}/authorization"
payload := strings.NewReader("{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.example.com/applications/{applicationId}/authorization")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/applications/{applicationId}/authorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"<string>\",\n \"control_signer_key_id\": \"<string>\",\n \"nonce\": 123,\n \"canonical_payload\": \"<string>\",\n \"control_signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyFirst prepare the authorization. Submit the same action fields and current nonce with signatures over the decoded
For
canonical_payload bytes.
Request
string
required
Registered Application ID.
string
required
set_domain or set_linked_did, exactly as prepared.string
required
Control DID key used to sign the prepared payload.
integer
required
Current nonce returned by preparation.
string
required
Exact prepared
0x-prefixed hexadecimal value.string
required
Base64-encoded 64-byte Ed25519 signature from the control DID key.
set_domain, repeat domain. For set_linked_did, repeat linked_did, linked_signer_key_id, and Boolean enabled, and include linked_signature: a Base64-encoded 64-byte signature from that DID’s key over the same prepared payload.
The 202 response contains application_id, status: "accepted", and tx_hash. Read the Application record after finalization to verify domain or linked_dids. A changed nonce or payload returns 409 application_proof_stale; prepare and sign again. The control action may still fail later if DNS proof, target DID, or service authorization has changed.
Straight to the point
PUT /applications/{applicationId}/authorization
set_domain: control DID signature
set_linked_did: control DID and linked DID signatures
Accepted submission: 202; verify finalized Application state

