Authorise a session key
curl --request POST \
--url https://calibri.io/api/v2/atlas/account/wallet/session-key \
--header 'Content-Type: application/json' \
--header 'X-Auth-Apikey: <api-key>' \
--data '
{
"x": "0x2f9a…",
"y": "0x8c41…",
"expires_at": 1797600000
}
'import requests
url = "https://calibri.io/api/v2/atlas/account/wallet/session-key"
payload = {
"x": "0x2f9a…",
"y": "0x8c41…",
"expires_at": 1797600000
}
headers = {
"X-Auth-Apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({x: '0x2f9a…', y: '0x8c41…', expires_at: 1797600000})
};
fetch('https://calibri.io/api/v2/atlas/account/wallet/session-key', 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://calibri.io/api/v2/atlas/account/wallet/session-key",
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([
'x' => '0x2f9a…',
'y' => '0x8c41…',
'expires_at' => 1797600000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Apikey: <api-key>"
],
]);
$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://calibri.io/api/v2/atlas/account/wallet/session-key"
payload := strings.NewReader("{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Apikey", "<api-key>")
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://calibri.io/api/v2/atlas/account/wallet/session-key")
.header("X-Auth-Apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/atlas/account/wallet/session-key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}"
response = http.request(request)
puts response.read_body{
"calls": [
{
"data": "0x095ea7b3…",
"hash": "0x9ab1…",
"nonce": 4,
"operation": 0,
"to": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
}
],
"expires_at": 1797600000,
"handler_installed": true,
"safe": "0x0DECE7d83f8D47CD8dD8278c0F22c361C58577BD"
}{
"errors": [
"account.custody.deposits_disabled"
]
}Wallet
Authorise a session key
Returns the Safe calls that authorise a browser-held P-256 key to sign orders. Nothing is authorised until you sign and relay them. expires_at is clamped DOWN to policy. The key is never a Safe owner, so withdraw and redeem stay passkey-only.
POST
/
api
/
v2
/
atlas
/
account
/
wallet
/
session-key
Authorise a session key
curl --request POST \
--url https://calibri.io/api/v2/atlas/account/wallet/session-key \
--header 'Content-Type: application/json' \
--header 'X-Auth-Apikey: <api-key>' \
--data '
{
"x": "0x2f9a…",
"y": "0x8c41…",
"expires_at": 1797600000
}
'import requests
url = "https://calibri.io/api/v2/atlas/account/wallet/session-key"
payload = {
"x": "0x2f9a…",
"y": "0x8c41…",
"expires_at": 1797600000
}
headers = {
"X-Auth-Apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Auth-Apikey': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({x: '0x2f9a…', y: '0x8c41…', expires_at: 1797600000})
};
fetch('https://calibri.io/api/v2/atlas/account/wallet/session-key', 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://calibri.io/api/v2/atlas/account/wallet/session-key",
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([
'x' => '0x2f9a…',
'y' => '0x8c41…',
'expires_at' => 1797600000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Apikey: <api-key>"
],
]);
$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://calibri.io/api/v2/atlas/account/wallet/session-key"
payload := strings.NewReader("{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Apikey", "<api-key>")
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://calibri.io/api/v2/atlas/account/wallet/session-key")
.header("X-Auth-Apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://calibri.io/api/v2/atlas/account/wallet/session-key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"x\": \"0x2f9a…\",\n \"y\": \"0x8c41…\",\n \"expires_at\": 1797600000\n}"
response = http.request(request)
puts response.read_body{
"calls": [
{
"data": "0x095ea7b3…",
"hash": "0x9ab1…",
"nonce": 4,
"operation": 0,
"to": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
}
],
"expires_at": 1797600000,
"handler_installed": true,
"safe": "0x0DECE7d83f8D47CD8dD8278c0F22c361C58577BD"
}{
"errors": [
"account.custody.deposits_disabled"
]
}Authorizations
HMAC-signed API key. Send X-Auth-Apikey, X-Auth-Nonce and X-Auth-Signature.
Body
application/json
P-256 public key X coordinate of the browser-held key.
Example:
"0x2f9a…"
P-256 public key Y coordinate.
Example:
"0x8c41…"
Requested expiry, Unix seconds. Clamped DOWN to policy — asking for longer returns the ceiling rather than an error.
Example:
1797600000