curl --request PUT \
--url https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction', 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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"custodian": {
"id": "custodian_123",
"name": "Acme Payments",
"slug": "acme-payments",
"billingStatus": "ACTIVE",
"disabledCapabilities": [],
"isReseller": false,
"resellerParentId": "reseller_custodian_123",
"sessionTokensEnabled": true,
"createdAt": "2026-07-08T18:00:00.000Z",
"updatedAt": "2026-07-08T18:00:00.000Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Enable account abstraction for a sub-custodian
Enables account abstraction (AA) for a sub-custodian owned by the authenticated reseller, across all of its environments.
The request is accepted and processed in the background, so it returns
202 before AA is fully provisioned. Sending it again for a sub-custodian
that already has AA enabled is a no-op.
Once AA is enabled, manage the sub-custodian’s gas sponsorship through the
Custodian API (GET /custodians/me/gas-sponsorship/chains and
PATCH /custodians/me/gas-sponsorship/chains/{chainId}). Gas sponsorship is
configured per environment, so make these calls with a Portal API key for
each environment you want to sponsor. Gas sponsorship
also requires the sub-custodian to be on the Start-Up or Enterprise plan,
which sub-custodians created through the Reseller API are by default.
curl --request PUT \
--url https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction', 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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/resellers/custodians/{custodianId}/enable-account-abstraction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"custodian": {
"id": "custodian_123",
"name": "Acme Payments",
"slug": "acme-payments",
"billingStatus": "ACTIVE",
"disabledCapabilities": [],
"isReseller": false,
"resellerParentId": "reseller_custodian_123",
"sessionTokensEnabled": true,
"createdAt": "2026-07-08T18:00:00.000Z",
"updatedAt": "2026-07-08T18:00:00.000Z"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Path Parameters
Was this page helpful?