Topup Wallet
curl --request POST \
--url https://api.primeintellect.ai/api/admin/transactions/topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"userId": "<string>",
"teamId": "<string>",
"type": "TOPUP",
"description": "<string>"
}
'import requests
url = "https://api.primeintellect.ai/api/admin/transactions/topup"
payload = {
"amount": 123,
"userId": "<string>",
"teamId": "<string>",
"type": "TOPUP",
"description": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
userId: '<string>',
teamId: '<string>',
type: 'TOPUP',
description: '<string>'
})
};
fetch('https://api.primeintellect.ai/api/admin/transactions/topup', 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.primeintellect.ai/api/admin/transactions/topup",
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([
'amount' => 123,
'userId' => '<string>',
'teamId' => '<string>',
'type' => 'TOPUP',
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.primeintellect.ai/api/admin/transactions/topup"
payload := strings.NewReader("{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.primeintellect.ai/api/admin/transactions/topup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/transactions/topup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"walletId": "<string>",
"balance": 123,
"amount": 123,
"type": "<string>"
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}admin-transactions
Topup Wallet
Credit (TOPUP) or debit (REFUND) a user/team wallet. amount is in
stored units (USD * 10000).
POST
/
api
/
admin
/
transactions
/
topup
Topup Wallet
curl --request POST \
--url https://api.primeintellect.ai/api/admin/transactions/topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"userId": "<string>",
"teamId": "<string>",
"type": "TOPUP",
"description": "<string>"
}
'import requests
url = "https://api.primeintellect.ai/api/admin/transactions/topup"
payload = {
"amount": 123,
"userId": "<string>",
"teamId": "<string>",
"type": "TOPUP",
"description": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
userId: '<string>',
teamId: '<string>',
type: 'TOPUP',
description: '<string>'
})
};
fetch('https://api.primeintellect.ai/api/admin/transactions/topup', 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.primeintellect.ai/api/admin/transactions/topup",
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([
'amount' => 123,
'userId' => '<string>',
'teamId' => '<string>',
'type' => 'TOPUP',
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.primeintellect.ai/api/admin/transactions/topup"
payload := strings.NewReader("{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.primeintellect.ai/api/admin/transactions/topup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/transactions/topup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"userId\": \"<string>\",\n \"teamId\": \"<string>\",\n \"type\": \"TOPUP\",\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"walletId": "<string>",
"balance": 123,
"amount": 123,
"type": "<string>"
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Manual admin credit (TOPUP) or debit (REFUND) of a user/team wallet.
Exactly one of user_id / team_id identifies the wallet owner.
amount is in stored integer units (USD * 10000), matching the platform.
Amount in stored units (USD * 10000).
Transaction types an admin may create manually. A narrower set than the
full TransactionType (which also covers AUTOTOPUP/COUPON/INVOICE) so the
top-up endpoint can't be used to mint mislabeled adjustments.
Available options:
TOPUP, REFUND Was this page helpful?
⌘I