Get server-wallet allowance readiness for a partner subaccount
curl --request GET \
--url https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowancesimport requests
url = "https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances', 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.limitless.exchange/profiles/partner-accounts/{profileId}/allowances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.limitless.exchange/profiles/partner-accounts/{profileId}/allowances"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPartner Accounts
Check Partner Account Allowances
GET
/
profiles
/
partner-accounts
/
{profileId}
/
allowances
Get server-wallet allowance readiness for a partner subaccount
curl --request GET \
--url https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowancesimport requests
url = "https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances', 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.limitless.exchange/profiles/partner-accounts/{profileId}/allowances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.limitless.exchange/profiles/partner-accounts/{profileId}/allowances"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/profiles/partner-accounts/{profileId}/allowances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyRequires HMAC authentication with the
account_creation and delegated_signing scopes. API key auth and Privy auth are not accepted.- Route:
GET /profiles/partner-accounts/:profileId/allowances - Auth: HMAC api-token auth
- Scopes:
account_creation+delegated_signing profileId: child/server-wallet profile id that belongs to the authenticated partner
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
profileId | number | Yes | Partner sub-account profile id for the server-wallet child account. |
Response
{
"profileId": 4543,
"partnerProfileId": 4430,
"chainId": 84532,
"walletAddress": "0x1a665817f063Ee15C6C2c05D4315982145825C3D",
"ready": false,
"summary": {
"total": 10,
"confirmed": 0,
"missing": 2,
"submitted": 0,
"failed": 8
},
"targets": [
{
"type": "USDC_ALLOWANCE",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"spenderOrOperator": "0x54d696A602343063000B25a51734E3BbE0Ec80a2",
"label": "ctf-exchange",
"requiredFor": "BUY",
"confirmed": false,
"status": "missing",
"retryable": true
}
]
}
Response fields
| Field | Type | Description |
|---|---|---|
profileId | number | Child/server-wallet profile id being checked. |
partnerProfileId | number | Authenticated parent partner profile id. |
chainId | number | Chain where allowance targets were checked. |
walletAddress | string | Managed server-wallet address for the child profile. |
ready | boolean | true when every target is confirmed on-chain. |
summary.total | number | Total target count. |
summary.confirmed | number | Targets confirmed on-chain. |
summary.missing | number | Targets still missing. |
summary.submitted | number | Targets submitted by the current retry response. For GET responses this is usually 0. |
summary.failed | number | Targets whose latest live read or retry state failed. |
targets[] | array | Per-target allowance or approval state. |
Target fields
| Field | Type | Description |
|---|---|---|
type | USDC_ALLOWANCE | CTF_APPROVAL | Target category. |
tokenAddress | string | ERC20 or conditional-token contract address. |
spenderOrOperator | string | Allowance spender or operator address. |
label | string | Human-readable target label. |
requiredFor | BUY | SELL | Trading side that requires this approval. |
confirmed | boolean | Whether this target is confirmed on-chain. |
status | confirmed | missing | submitted | failed | Current target status. |
retryable | boolean | Whether POST /retry may attempt this target. |
transactionId | string | Optional sponsored transaction id when submitted. |
txHash | string | Optional transaction hash when available. |
userOperationHash | string | Optional user operation hash when available. |
errorCode | string | Optional machine-readable failure code, such as RPC_READ_FAILED. |
errorMessage | string | Optional human-readable failure message. |
Recommended flow
- Poll this endpoint.
- If
ready=true, continue with delegated trading. - If targets are
missingorfailedandretryable=true, call Retry Partner Account Allowances. - If retry submits targets, poll this endpoint again after a short delay.
Example
curl "https://api.limitless.exchange/profiles/partner-accounts/4543/allowances" \
-H "lmts-api-key: <tokenId>" \
-H "lmts-signature: <base64_hmac_sha256_signature>" \
-H "lmts-timestamp: <iso_8601_timestamp>"
Path Parameters
Response
200 - undefined