Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Direct Deposit API

SET Direct Deposit API · Request signing

Register your partner key's public key (request signing)

POST/api/partner/keys/signing_key

Key scope: partner key · Success: 201

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-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

publicKey stringrequired
An Ed25519 public key as a JWK's x: base64url, 43 characters (400 public_key_invalid otherwise).

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 the write scope, or a dashboard admin, can register it. A read-only partner key answers 403 scope_missing; the previous key during a rotation overlap answers 409 key_not_current.
  • A SET API key answers 403 partner_key_required: it registers its own at POST /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 \n with no trailing newline: the SET-Timestamp value (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-Signature is the Ed25519 signature of that text, base64url. SET-Timestamp must be within windowSeconds (300) of SET's clock.
  • prefix is the partner key's first 16 characters. signingKeyId then also shows on GET /api/partner/keys.
  • An event key.signing_key_registered and an audit entry signing_key_registered are 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_current
  • 403 partner_key_required
  • 400 public_key_invalid
  • 409 key_unknown
  • 409 signing_key_exists
  • 401 request_signature_required

All codes: Errors.