Stamp ManagementAPI ReferenceGrant envelope-level stamp permission

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. UserIds allows 1–100 after deduplication, StampIds 1–50, and Remark up 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 row Status set to partial or failed, without affecting other rows.
  • The UserIds / StampIds in each result row preserve the requested range of that row and do not mean everything succeeded; refer to FailedGrants for the actual failed targets.
  • Each result is returned in Items in the same order as the request, together with a GrantRecordId for 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

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.
application/json
ItemsRequiredarray<object>
Grant rows, 1–10 rows. Each row specifies a group of users, one envelope, and a group of stamps.
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

ItemsOptionalarray<object>
Per-row grant results (one-to-one with the request `Items`).
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).
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 CodeDescription
INVALID_REQUESTInvalid 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_REQUIREDX-Operator-User-Id not provided in the client credentials flow
OPENAPI.OPERATOR_USER_NOT_FOUNDOperator user does not exist, account not enabled, or not an enabled member of the current Space
OPENAPI.OPERATOR_USER_NOT_HUMANOperator user is not a real user
MEMBER.INSUFFICIENT_PERMISSIONThe operator is not a Space administrator
INTERNAL_ERRORInternal server error