VocalDocscontracts 1.65.0

Read a reveal grant with its reason

GET /v1/reveal-grants/{reveal_grant_id}

PropertyValue
Operationget_reveal_grant
GroupCapture windows and reveal grants
Scopereveal_grants:read
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read reveal_grant.read
Released in1.57.0
Phase 0 hostServed (the hosted api pins 1.65.0)

One reveal grant with its reason, an audited content read (1.57.0), for its requester, an owner or an auditor; the reason is null once scrubbed.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the reveal_grants:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/reveal-grants/rvg_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
reveal_grant_idpathRevealGrantIdyesThe id of a reveal grant, a time-boxed right to read named content classes of named Calls: rvg_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonRevealGrant
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is RevealGrant.

FieldTypeRequiredDescription
agent_idAgentId or nullyes
approval_requiredbooleanyesTrue when the profile required a second approver at the request.
call_idsarray or nullyesThe named Calls; null for an Agent scope.
classesarray of ContentLogClassyes
created_atTimestampyes
decided_atTimestamp or nullyes
decided_byMemberId or nullyesThe approver or decliner; null under reveal_approval: none.
duration_minutesintegeryes
expires_atTimestamp or nullyesWhen an active grant ends; for a pending grant, when the request lapses.
granteeRevealGranteeyes
idRevealGrantIdyes
object"reveal_grant"yes
reasonstring or nullnoWhy the content is needed, for the access review: free text that can quote a caller, stored as a content pair and scrubbed at retention_days. Answered only by GET /v1/reveal-grants/{reveal_grant_id}, an audited content read; null once scrubbed.
requested_byMemberIdyes
revoked_atTimestamp or nullyes
revoked_byMemberId or nullyes
starts_atTimestamp or nullyesWhen the grant became active; null until then.
statusRevealGrantStatusyes
window_fromTimestamp or nullyes
window_toTimestamp or nullyes