API Reference › Lending Core › Documents › Grant access to a sealed original Grant access to a sealed original POST https://sandbox.api.lendeasy.ai /v1/servicing/documents/{documentId} /original-access Bearer token ·READ_SERVICING_DOCUMENT&READ_SERVICING_DOCUMENT_SENSITIVE&READ_SERVICING_DOCUMENT_ORIGINAL
Mints a single-use, short-lived grant for one named purpose — redaction correction, issuer verification, legal hold, or incident response. The grant is audited whether it is allowed or denied.
cURL Node Python
Request
curl -X POST https://sandbox.api.lendeasy.ai /v1/servicing/documents/$DOCUMENT_ID/original-access \
-H "Authorization: Bearer $TOKEN" \
-H "LendEasy-Tenant: $TENANT" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
}' await fetch(`https://sandbox.api.lendeasy.ai /v1/servicing/documents/${documentId}/original-access` , {
method: "POST" ,
headers: { Authorization: `Bearer ${token}` , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotencyKey, "Content-Type" : "application/json" },
body: JSON.stringify({
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
}),
});requests.post(
f"https://sandbox.api.lendeasy.ai /v1/servicing/documents/{document_id}/original-access" ,
headers={"Authorization" : f"Bearer {token}" , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotency_key},
json={
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
},
)200 403 404 409
{
"grantRef": "dog_7Q2F",
"expiresAt": "2027-05-01T16: 05 :00Z"
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "403",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.not.authorized",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "404",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.resource.not.found",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "409",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "idempotency.request.in.flight",
"errors": []
}Path & query parameters Field Type Description LendEasy-Tenant required in header string Opaque active LendEasy tenant-registry identifier. Supply exactly one instance; no alternate tenant selector is accepted. documentId required in path integer Positive numeric document identifier. Idempotency-Key optional in header string Optional replay key for this logical mutation. Omission creates a fresh server-owned key for this attempt; blank, repeated, or longer-than-50-character values are rejected.
Body parameters Field Type Description purpose required string reason required string
cURL Node Python
Request
curl -X POST https://sandbox.api.lendeasy.ai /v1/servicing/documents/$DOCUMENT_ID/original-access \
-H "Authorization: Bearer $TOKEN" \
-H "LendEasy-Tenant: $TENANT" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
}' await fetch(`https://sandbox.api.lendeasy.ai /v1/servicing/documents/${documentId}/original-access` , {
method: "POST" ,
headers: { Authorization: `Bearer ${token}` , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotencyKey, "Content-Type" : "application/json" },
body: JSON.stringify({
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
}),
});requests.post(
f"https://sandbox.api.lendeasy.ai /v1/servicing/documents/{document_id}/original-access" ,
headers={"Authorization" : f"Bearer {token}" , "LendEasy-Tenant" : tenant, "Idempotency-Key" : idempotency_key},
json={
"purpose": "ISSUER_VERIFICATION",
"reason": "Confirming issuance with the practice."
},
)200 403 404 409
{
"grantRef": "dog_7Q2F",
"expiresAt": "2027-05-01T16: 05 :00Z"
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "403",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.not.authorized",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "404",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "error.msg.resource.not.found",
"errors": []
}{
"developerMessage": "Request was understood but rejected; inspect errors for field-level causes.",
"httpStatusCode": "409",
"defaultUserMessage": "The request could not be applied.",
"userMessageGlobalisationCode": "idempotency.request.in.flight",
"errors": []
}