Sign an authorization
Sign an authorization with the key it names, after verifying its payload against your records.
The signature is checked against the authorization before it is accepted. Posting again for an authorization its signer already signed answers the authorization as it stands. A transaction moves once its authorization is signed; an action runs once enough of its authorizations are.
curl -X POST "https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/signatures" \
-H "Content-Type: application/json" \
-H "Api-Version: 2026-08-01" \
-H "Idempotency-Key: 6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63" \
-H "Api-Key: YOUR_API_KEY" \
-d '{
"signature": "2Xg3RywO7rJ2R9CCQshH8uIposoHd5m7MHb3Qn5nCYLVi2VIbA97TzE6+LEbQ6Og91VZK4Fu2igowCfbVAi1Aw==",
"signer": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr"
}'
import requests
import json
url = "https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/signatures"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
data = {
"signature": "2Xg3RywO7rJ2R9CCQshH8uIposoHd5m7MHb3Qn5nCYLVi2VIbA97TzE6+LEbQ6Og91VZK4Fu2igowCfbVAi1Aw==",
"signer": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/signatures", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"signature": "2Xg3RywO7rJ2R9CCQshH8uIposoHd5m7MHb3Qn5nCYLVi2VIbA97TzE6+LEbQ6Og91VZK4Fu2igowCfbVAi1Aw==",
"signer": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"signature": "2Xg3RywO7rJ2R9CCQshH8uIposoHd5m7MHb3Qn5nCYLVi2VIbA97TzE6+LEbQ6Og91VZK4Fu2igowCfbVAi1Aw==",
"signer": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr"
}`)
req, err := http.NewRequest("POST", "https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/signatures", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Idempotency-Key", "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63")
req.Header.Set("Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/signatures')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Idempotency-Key'] = '6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63'
request['Api-Key'] = 'YOUR_API_KEY'
request.body = '{
"signature": "2Xg3RywO7rJ2R9CCQshH8uIposoHd5m7MHb3Qn5nCYLVi2VIbA97TzE6+LEbQ6Og91VZK4Fu2igowCfbVAi1Aw==",
"signer": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr"
}'
response = http.request(request)
puts response.body
{
"action_id": null,
"chain": "solana",
"created_at": "2026-11-29T18:01:00.553601+00:00",
"expires_at": "2026-11-29T18:01:36.020479+00:00",
"id": "wau_03567gwkZVJCZEBa2EOojp",
"kind": "transaction",
"network": "testnet",
"object": "wallet_authorization",
"partner_reference_id": "payout-1042",
"payload": {
"format": "solana_message",
"message": "eyJhY2NvdW50IjogIjVZWU5BY1cxdHk3eWJwVFVValVTZ1dCaGF6b2JnUlU1cnNhMVBoejNzQTE1IiwgImFtb3VudCI6ICI1...",
"message_version": "legacy"
},
"signer": {
"key": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr",
"role": "signing"
},
"status": "authorized",
"summary": {},
"supersedes": null,
"transaction_id": "txn_03567gp0y9r0USMPkVcuVs",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567lUaf02ZWjKyYpzQmy"
}
}
{
"error": {
"code": "invalid_parameter",
"kind": "invalid_request_error",
"message": "Field required",
"param": "signature",
"request_id": "req_03567lUb33saKPFMl5yQ3h"
}
}
{
"error": {
"code": "rate_limited",
"kind": "rate_limit_error",
"message": "Too many requests. Back off and retry after the indicated delay.",
"param": null,
"request_id": "req_03567lUaf02ZWjKyYpzQmy"
}
}
{
"error": {
"code": "upstream_error",
"kind": "api_error",
"message": "The request could not be completed right now. Nothing was charged or changed; retry shortly, and contact support if it persists.",
"param": null,
"request_id": "req_03567lUaf02ZWjKyYpzQmy"
}
}
/api/wallets/authorizations/{authorization_id}/signaturesTarget server for requests. Edit to use your own host.
Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.The media type of the request body
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
Required. The signature, at most 256 characters. On the EVM chains: 0x followed by the 65 bytes r, s, v in hex, or base64 of those 65 bytes, or base64 of a DER signature; on Solana: the 64 bytes in base58 or base64.
Required. The key that signed: the authorization's signer.key. Any other key returns 422 signer_not_authorized.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Path Parameters
Headers
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
2026-08-01A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63Body
Required. The signature, at most 256 characters. On the EVM chains: 0x followed by the 65 bytes r, s, v in hex, or base64 of those 65 bytes, or base64 of a DER signature; on Solana: the 64 bytes in base58 or base64.
Required. The key that signed: the authorization's signer.key. Any other key returns 422 signer_not_authorized.
Responses
The wallet credential action it belongs to. null when kind is transaction.
The chain it executes on.
When the object was created, as an ISO 8601 timestamp.
The deadline for the signature, as an ISO 8601 timestamp. null when there is none.
The object's unique identifier. Its prefix names the object kind, for example cus_ for a customer.
What it authorizes: transaction (a transaction's transfer) or action (a wallet credential action, voids included).
Which network the chain is on: mainnet in live, testnet in sandbox. null wherever chain is null.
The kind of object this is, for example customer or transaction. Every object the API returns carries it.
The transaction's partner_reference_id: your own payment id, for your signer to check. null when there is none.
Exactly what is signed, in the standard format format names. Decode and verify it yourself before you sign.
The one key that must sign the authorization.
The authorization's status: pending, authorized, completed, failed, expired or superseded.
A decoded view of what is signed, for display and logs only. Never verify or authorize from it. Can be null.
The authorization this one replaced after a re-sign or a refresh. null when it replaced none.
The transaction it moves. null when kind is action.
The wallet it spends from. null when it spends from none.