Grant envelope-level stamp permission
POST/openapi/v1/stamps/grant-by-envelope
Grant stamps to the signing members of a specific envelope so they can use those stamps while signing that envelope (envelope-level authorization). Pass members' business UserIDs (obtainable via List Members).
Eligibility
- Each UserID must be an enabled member of the current Space and a signer of the envelope (carbon-copy recipients do not qualify).
- The envelope and every stamp must belong to the current Space; each stamp must be active; the envelope must be in a grantable state (
sent,delivered,viewed,signed; drafts, completed and voided envelopes are not grantable). - A request contains up to 10 rows (
Items); each row specifies a group of users, one envelope, and a group of stamps.UserIdsallows 1–100 after deduplication,StampIds1–50, andRemarkup to 300 characters.
Partial success and results
- For each row, a grant is written for every valid user × valid stamp combination; invalid users, envelopes or stamps are reported in that row's
FailedGrants, with the rowStatusset topartialorfailed, without affecting other rows. - The
UserIds/StampIdsin each result row preserve the requested range of that row and do not mean everything succeeded; refer toFailedGrantsfor the actual failed targets. - Each result is returned in
Itemsin the same order as the request, together with aGrantRecordIdfor correlating the batch.
This endpoint is an envelope-level authorization capability provided by OpenAPI, with no corresponding console entry; stamps/revoke does not revoke such grants, and once the envelope is completed or voided the grant can no longer be used for signing.
Required Scope: stamp:manage
Request Parameters
Header Parameters
AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID. Not required in the authorization code flow (the authorized user is used automatically); **required** in the client credentials flow. The operator must be an administrator of the current Space.
Request Body
application/jsonItemsRequiredarray<object>
Grant rows, 1–10 rows. Each row specifies a group of users, one envelope, and a group of stamps.
Sub-properties
UserIdsRequiredarray<string>
Business UserIDs of members to grant, 1–100 after deduplication and removal of empty values. Obtain UserIds from the List Members endpoint.
EnvelopeIdRequiredstring
Target envelope ID. The envelope must be in a state that accepts grants.
StampIdsRequiredarray<string>
Stamp IDs to grant, 1–50 after deduplication and removal of empty values.
RemarkOptionalstring
Grant remark, up to 300 characters.
Response Parameters
Response.Data
ItemsOptionalarray<object>
Per-row grant results (one-to-one with the request `Items`).
Sub-properties
UserIdsOptionalarray<string>
UserIDs of this grant row.
EnvelopeIdOptionalstring
Target envelope ID.
StampIdsOptionalarray<string>
Stamp IDs of this grant row.
RemarkOptionalstring
Grant remark.
StatusOptionalstring
Grant result. Values: `success` (all targets granted), `partial` (some failed, see `FailedGrants`), `failed` (all failed).
FailedGrantsOptionalarray<object>
Failed targets (invalid targets and reasons, returned when partially or fully failed).
Sub-properties
TargetTypeOptionalstring
Type of the failed target. Values: `user` (invalid member or not a signer of the envelope), `stamp` (invalid stamp), `envelope` (invalid envelope or not in a grantable state).
TargetIdOptionalstring
Business ID of the failed target (`UserId` / `StampId` / `EnvelopeId`).
ReasonOptionalstring
Failure reason. Values: `user_invalid`, `envelope_invalid`, `stamp_invalid`, `internal_error`.
GrantRecordIdOptionalstring
Grant record ID, usable for querying and reconciliation.
CreatedAtOptionalstring(date-time)
Creation time in RFC3339 format (must include a timezone offset; UTC recommended), e.g. `2026-06-01T00:00:00Z`.
GrantRecordIdOptionalstring
Grant record ID (batch identifier for this request).
Error Codes
| Error Code | Description |
|---|---|
INVALID_REQUEST | Invalid request parameters (empty Items or more than 10 rows, missing required fields in a row, more than 100 UserIds, more than 50 StampIds, Remark over 300 characters, etc.) |
OPENAPI.OPERATOR_USER_ID_REQUIRED | X-Operator-User-Id not provided in the client credentials flow |
OPENAPI.OPERATOR_USER_NOT_FOUND | Operator user does not exist, account not enabled, or not an enabled member of the current Space |
OPENAPI.OPERATOR_USER_NOT_HUMAN | Operator user is not a real user |
MEMBER.INSUFFICIENT_PERMISSION | The operator is not a Space administrator |
INTERNAL_ERROR | Internal server error |