SET Direct Deposit API · Request signing
Register your partner key's public key (request signing)
POST/api/partner/keys/signing_key
Registers one Ed25519 public key for your current partner key. From then on every write made with that key must be signed with SET-Timestamp and SET-Request-Signature.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
publicKeystringrequired- An Ed25519 public key as a JWK's
x: base64url, 43 characters (400public_key_invalidotherwise).
Notes
- Direct Deposit is switched on per deployment; while it is off this call answers 503
direct_deposit_disabled. - Only your current partner key (
set_partner_…) with thewritescope, or a dashboard admin, can register it. A read-only partner key answers 403scope_missing; the previous key during a rotation overlap answers 409key_not_current. - A SET API key answers 403
partner_key_required: it registers its own atPOST /v1/api_keys/{key}/signing_key. - Answers 201 once. A second registration answers 409
signing_key_exists; to change it, rotate the partner key and register on the new one. - After it, an unsigned write with the partner key answers 401
request_signature_required. Reads stay unsigned. - The text to sign (
signs) is four lines joined by\nwith no trailing newline: theSET-Timestampvalue (unix seconds), the method in upper case, the path with its query, and the hex SHA-256 of the exact body bytes (of the empty string when there is no body).SET-Request-Signatureis the Ed25519 signature of that text, base64url.SET-Timestampmust be withinwindowSeconds(300) of SET's clock. prefixis the partner key's first 16 characters.signingKeyIdthen also shows onGET /api/partner/keys.- An event
key.signing_key_registeredand an audit entrysigning_key_registeredare recorded. - This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
409 key_not_current403 partner_key_required400 public_key_invalid409 key_unknown409 signing_key_exists401 request_signature_required