Refresh an authorization

Replace a lapsed authorization of an action with a fresh one to sign now.

Some messages are valid for under half a minute (expires_at says when). When one lapses before every signature is in, refresh it: every authorization of its action is replaced (each replacement names the old one in supersedes), and signatures already given must be made again. A transaction's authorization is never refreshed; create a new transaction instead.

curl -X POST "https://sandbox.rasto.co/api/wallets/authorizations/wau_03567gwkZVJCZEBa2EOojp/refresh" \
  -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"
{
  "action_id": "wca_03567hhKDrsmd9ywCPg9LI",
  "chain": "solana",
  "created_at": "2026-11-29T18:01:44.307901+00:00",
  "expires_at": "2026-11-29T18:02:45.600385+00:00",
  "id": "wau_03567iCz5E1JXnO7uxFMnA",
  "kind": "action",
  "network": "testnet",
  "object": "wallet_authorization",
  "partner_reference_id": null,
  "payload": {
    "format": "solana_message",
    "message": "eyJhY3Rpb25faWQiOiAid2NhXzAzNTY3aGhLRHJzbWQ5eXdDUGc5TEkiLCAiY2hhaW4iOiAic29sYW5hIiwgImtpbmQiOiAi...",
    "message_version": "legacy"
  },
  "signer": {
    "key": "72SE7cez3GLt8VrWA9je73tfWeo8z5tQV5aZdBLMyfjU",
    "role": "recovery"
  },
  "status": "pending",
  "summary": {},
  "supersedes": "wau_03567hk2xmHyQYHdvQYxiK",
  "transaction_id": null,
  "wallet_id": null
}
POST
/api/wallets/authorizations/{authorization_id}/refresh
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

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.

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
authorization_idstring
Required

The wallet authorization's id (wau_...).

header
Api-Versionstring

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.

header
Idempotency-Keystring
Required

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.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Api-Keystring
Required

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

authorization_idstring
Required

The wallet authorization's id (wau_...).

Example:
wau_03567gwkZVJCZEBa2EOojp

Headers

Api-Versionstring

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.

Example:
2026-08-01
Idempotency-Keystring
Required

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.

Example:
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63

Responses