Activate authorization
Activate a PENDING authorization, flipping it to ACTIVE and stamping
signedAt. This is the self-service counterpart to back-office signing:
a broker that has captured the customer’s authorization in its own app
(e.g. an in-app consent step) records that attestation here.
Restricted: your organization must be explicitly enabled for
self-activation, and authorizedOrganizationId must be your own org —
you may only activate grants made TO you, never between other parties.
A customer that signed up itself on your platform authorizes you itself,
from its own account, so its pending grant cannot be activated here.
All three fail with 403 forbidden. The PENDING grant itself is created when
the customer org is created under you (POST /v1/organizations).
Idempotent: re-activating an already-ACTIVE grant returns it with
200. A grant that was never created or has been REVOKED returns
404 authorization_not_found.
Effect is immediate — once active, requests with Nxos-On-Behalf-Of
pointing at the granter will succeed for delegated operations.
curl --request POST \
--url https://api.nxos.io/v1/authorizations/activate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"grantingOrganizationId": "<string>",
"authorizedOrganizationId": "<string>",
"type": "LOA"
}
'import requests
url = "https://api.nxos.io/v1/authorizations/activate"
payload = {
"grantingOrganizationId": "<string>",
"authorizedOrganizationId": "<string>",
"type": "LOA"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
grantingOrganizationId: '<string>',
authorizedOrganizationId: '<string>',
type: 'LOA'
})
};
fetch('https://api.nxos.io/v1/authorizations/activate', 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.nxos.io/v1/authorizations/activate",
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([
'grantingOrganizationId' => '<string>',
'authorizedOrganizationId' => '<string>',
'type' => 'LOA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.nxos.io/v1/authorizations/activate"
payload := strings.NewReader("{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.nxos.io/v1/authorizations/activate")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nxos.io/v1/authorizations/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}"
response = http.request(request)
puts response.read_body{
"object": "authorization",
"grantingOrganizationId": "org_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"authorizedOrganizationId": "org_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5",
"type": "LOA",
"status": "REVOKED",
"signedAt": "2025-12-01T10:30:00.000Z",
"revokedAt": "2026-03-15T14:30:00.000Z",
"revokedReason": "Client off-boarded",
"createdAt": "2025-12-01T10:30:00.000Z",
"updatedAt": "2026-03-15T14:30:00.000Z"
}Headers
Body
Request body for POST /v1/authorizations/activate.
Response
The request has succeeded.
A cross-org authorization grant between two organizations.
curl --request POST \
--url https://api.nxos.io/v1/authorizations/activate \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"grantingOrganizationId": "<string>",
"authorizedOrganizationId": "<string>",
"type": "LOA"
}
'import requests
url = "https://api.nxos.io/v1/authorizations/activate"
payload = {
"grantingOrganizationId": "<string>",
"authorizedOrganizationId": "<string>",
"type": "LOA"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
grantingOrganizationId: '<string>',
authorizedOrganizationId: '<string>',
type: 'LOA'
})
};
fetch('https://api.nxos.io/v1/authorizations/activate', 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.nxos.io/v1/authorizations/activate",
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([
'grantingOrganizationId' => '<string>',
'authorizedOrganizationId' => '<string>',
'type' => 'LOA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.nxos.io/v1/authorizations/activate"
payload := strings.NewReader("{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.nxos.io/v1/authorizations/activate")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nxos.io/v1/authorizations/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"grantingOrganizationId\": \"<string>\",\n \"authorizedOrganizationId\": \"<string>\",\n \"type\": \"LOA\"\n}"
response = http.request(request)
puts response.read_body{
"object": "authorization",
"grantingOrganizationId": "org_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"authorizedOrganizationId": "org_b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5",
"type": "LOA",
"status": "REVOKED",
"signedAt": "2025-12-01T10:30:00.000Z",
"revokedAt": "2026-03-15T14:30:00.000Z",
"revokedReason": "Client off-boarded",
"createdAt": "2025-12-01T10:30:00.000Z",
"updatedAt": "2026-03-15T14:30:00.000Z"
}