Register signing key
POST/auth/signing-key
Register an Ed25519 public key for signed-request authentication. The signature field must be a base64 Ed25519 signature over the exact UTF-8 bytes of the publicKey field, made with the corresponding private key (proof of possession). Once registered, requests can authenticate by sending X-Signature-Key-Id, X-Signature-Timestamp (unix seconds), X-Signature-Nonce, and X-Signature (base64) headers instead of a bearer token. The signature covers the string: "magfi-v1\n{METHOD}\n{path with query}\n{timestamp}\n{nonce}\n{sha256 hex of raw body, empty body allowed}".
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
Signing key registered successfully
Bad Request - Invalid input data
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient permissions
Not Found - Resource not found
Conflict - Resource already exists or state conflict
Unprocessable Entity - Validation error