Sign data (JWS).

Signs Base64-encoded data with the private key associated with kid and returns the produced JWS inside a signing-metadata envelope. Supported algorithms: ML-DSA, Falcon, RSA-PSS (PS256), ECDSA (ES256/384/512), and COMPOSITE hybrid keys.

Serialization selection (PRD §60). The optional serialization field expresses the client's chosen JWS representation and is orthogonal to the backend-authoritative RFC 3161 time-stamping policy (§49). Two honest compliance tiers exist: RFC 7515 JWS (COMPACT = §7.1 three-segment compact, or JSON = §7.2 JWS JSON Serialization) and JAdES B-T (JWS JSON Serialization only, carrying an RFC 3161 qualified timestamp sigTst in the JWS Unprotected Header per ETSI TS 119 182-1 — a COMPACT token structurally cannot carry it).

Behavior truth table (serialization × effective stamping → output form):

serializationstampingoutput400?
omittedOFFcompact JWSno
omittedREQUIREDJWS-JSON + sigTst (auto-upgrade, JAdES B-T)no
COMPACTOFFcompact JWSno
COMPACTREQUIRED400 serialization-incompatible-with-timestamp
JSONOFFJWS-JSON, no sigTstno
JSONREQUIREDJWS-JSON + sigTst (JAdES B-T)no

An explicit COMPACT is never silently upgraded and a mandated stamp is never dropped — the compact+REQUIRED row is the only rejection. The output column names the logical serialization tier; see "Output to parse" for the exact wire shape.

Output to parse. On the HTTP wire the produced JWS is ALWAYS carried in the typed jwsToken (RFC 7515 §7.2 JWS JSON Serialization) envelope. A COMPACT / unstamped result is a single-signature object with no sigTst (losslessly convertible to the 3-segment RFC 7515 §7.1 compact form, as the SDK renders it); a JAdES B-T result carries the RFC 3161 sigTst in the unprotected header (signatures[].header.etsiU[].sigTst). The surrounding metadata envelope (keyRequested, materialVersion, algorithmUsed, warnings) is ALWAYS present regardless of serialization.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

JSON payload with the key identifier (kid) and the
message (data) to sign, both Base64‑encoded.

Request object for signing Base64-encoded data with optional timestamp and expiration.

string
required
length between 0 and 255
^[A-Za-z0-9._:-]+$

The kid of the private key used to sign the data.

string
required
length ≥ 1

The raw data in Base64 to be signed.

int64 | null
1 to 3650

Optional validity period in days for the signature. If not specified, the signature will not expire.

string | null
enum

Optional JWS serialization representation to produce (PRD §60). COMPACT = RFC 7515 §7.1 compact (3 dot-separated segments); JSON = RFC 7515 §7.2 JWS JSON Serialization (a JSON object able to carry a JAdES qualified timestamp). Omit to let the server choose the standards-correct representation: compact when no timestamp is mandated, JWS-JSON when the deployment/tenant policy requires an RFC 3161 signature timestamp (JAdES B-T). This choice is orthogonal to the backend-authoritative timestamp policy and never adds or drops a timestamp.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json