Skip to main content
POST
Request a withdrawal authorization

Authorizations

Authorization
string
header
required

JWT obtained from POST /v1/auth/verify after SIWS authentication. Include as: Authorization: Bearer <jwt>

Headers

Idempotency-Key
string
required

Client-generated key that remains stable across retries of this request.

Body

application/json
account_id
integer<int32>
required

Joyride account id. Must match the authenticated JWT account claim.

Required range: x >= 0
Example:

1000000

destination_token_account
string
required

Base58 Solana USDC token-account address that will receive the withdrawal.

Example:

"EVMJiDJicBLnsZABt2Zsi8afzwa4okWNaJibjxxEPJuC"

amount
string
required

USDC decimal amount exactly representable at six-decimal precision. Insignificant trailing zeros beyond six places are accepted.

Example:

"25.12345600"

Response

Signed withdrawal authorization bundle

withdrawal_id
string
required

Unsigned 64-bit withdrawal id, represented as a decimal string.

Example:

"812"

account_id
integer<int32>
required
Example:

1000000

raw_amount
string
required

USDC base units at six-decimal precision.

Example:

"25123456"

amount
string
required

Core fixed-eight-decimal USDC amount.

Example:

"25.12345600"

user_wallet
string
required

Embedded Solana wallet authorized to withdraw from this Joyride account.

Example:

"4etJNAJtLFrJERJwejzmCA6PZGiVwP11j2mfUkGYWqwS"

destination_token_account
string
required

Base58 Solana token-account address bound into the authorization.

Example:

"EVMJiDJicBLnsZABt2Zsi8afzwa4okWNaJibjxxEPJuC"

mint
string
required

Base58 USDC mint address bound into the authorization.

Example:

"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"

issued_at_unix_timestamp
integer<int64>
required

Signed authorization issue time in Unix seconds.

Example:

1752000000

expiry_unix_timestamp
integer<int64>
required

Signed authorization expiry time in Unix seconds.

Example:

1752000060

authorization_message_b64
string<byte>
required

Canonical 256-byte WithdrawalAuthorizationV3 message.

authorization_signature_b64
string<byte>
required

Ed25519 signature over authorization_message_b64.

withdraw_authority
string
required

Base58 Ed25519 public key that signed the authorization.

kms_key_id
string
required

Deployment key identifier used to sign the authorization.