Skip to content
Connect an agent

Organisations

Make an auditor's share link for an evidence report

A read-only link to one evidence report (a framework and a period) that stops working after 7, 30 or 90 days or when revoked, with a password or a list of addresses if asked.

POST/orgs/{org}/evidence/shares

TL;DR

QuestionAnswer
What does it do?Make an auditor's share link for an evidence report.
What does it take?A JSON body of type EvidenceShareBody.
What does it return?Status 201 with a body of type EvidenceShareCreated.
What can go wrong?400 the body or the period is not valid (evidence.range_invalid); 401 not signed in; 403 a member or a reader (orgs.forbidden), a plan without compliance evidence (plan.compliance_evidence_not_included), or an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 409 the organisation shares only Public diagrams (evidence.share_classified), or has 25 live links (evidence.share_limit_reached); 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

A read-only link to one evidence report (a framework and a period) that stops working after 7, 30 or 90 days or when revoked, with a password or a list of addresses if asked. Only the hash of its token is stored. Every view is audited. The owner and admins, on Enterprise.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Request body

The body has the type EvidenceShareBody.

FieldTypeRequiredDescription
framework"pci-dss" | "soc2" | "iso27001" | "nist-800-53" | "all"yesOne framework, or all.
fromstringyesThe first day, YYYY-MM-DD, UTC.
tostringyesThe last day, YYYY-MM-DD, UTC.
paper"a4" | "letter"noThe report's paper. default "a4".
labelstring | nullnoA name for the link in the list, such as "FY26 SOC 2 audit". Shown to the viewer. at least 1 character; at most 80 characters; default null.
days7 | 30 | 90yesDays until the link stops working: 7, 30 or 90.
passwordstring | nullnoA password the viewer types, at least 10 characters. Only a salted hash is kept. at least 10 characters; at most 200 characters; default null.
emailsarray | nullnoThe addresses that may open it, signed in to Plotwork with an emailed code. Not with a password. default null.

Responses

StatusMeaningBody
201The link, with its address, shown once.EvidenceShareCreated
400The body or the period is not valid (evidence.range_invalid).ErrorResponse
401Not signed in.ErrorResponse
403A member or a reader (orgs.forbidden), a plan without compliance evidence (plan.compliance_evidence_not_included), or an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
409The organisation shares only Public diagrams (evidence.share_classified), or has 25 live links (evidence.share_limit_reached).ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 201 answer has the type EvidenceShareCreated.

FieldTypeRequiredDescription
idstringyes
framework"pci-dss" | "soc2" | "iso27001" | "nist-800-53" | "all"yes
fromstringyes
tostringyes
paper"a4" | "letter"yes
labelstring | nullyes
protection"none" | "password" | "emails"yes
emailsstring[]yes
createdBystring | nullyes
createdAtintegeryes
expiresAtintegeryes
revokedAtinteger | nullyes
viewsintegeryesminimum 0.
lastViewedAtinteger | nullyes
state"live" | "expired" | "revoked"yes
urlstringyesThe link. Its address is the secret: only its hash is stored, so it is in this answer and nowhere else.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools