On this page

External share links. A link opens ONE item for reading to anyone holding the URL, even in a private community. Only the community admin and the moderator of the item's section (its MANAGE or MODERATE permission) can make, list or revoke links. A member without that permission gets 403 "Missing one of permissions: …".

The visitor opens the item with GET /api/communities/public/slug/shared/resourceType/resourceId with the header X-Share-Key: . The page URL carries the key after #s=, which a browser never sends. A wrong, revoked or other-item key answers 404, exactly like an id that does not exist.

Links do not expire on their own; revoking takes effect at once.

4 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/share-linksList the live share links of one item
POST/api/communities/{communityId}/share-linksMake a share link for one item
DELETE/api/communities/{communityId}/share-links/{shareLinkId}Revoke a share link at once
GET/api/communities/public/{slug}/shared/{resourceType}/{resourceId}Read one shared item as a visitor (share link)

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
resourceTypequeryyesenum: tweet, blog, event, project, project2, consultant, album, award, group—
resourceIdqueryyesstring—

Responses

StatusDescriptionBody
200The item's links that are not revoked. Never includes the key.object
400SHARE_RESOURCE_TYPE_INVALID or a missing resourceId—
403Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Request body (required) — application/json

FieldTypeRequiredDescription
resourceTypeenum: tweet, blog, event, project, project2, consultant, album, award, groupyes—
resourceIdstringyes—
communityIdstringno—

Responses

StatusDescriptionBody
201The link. token is returned here once and is not retrievable later.object
400SHARE_RESOURCE_TYPE_INVALID or a missing resourceId—
403Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section—
404SHARE_RESOURCE_NOT_FOUND — no such item in this community—
409SHARE_LINK_LIMIT_REACHED — 10 live links on this item; revoke one first—
429Rate limited—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
shareLinkIdpathyesstring—
resourceTypequeryyesenum: tweet, blog, event, project, project2, consultant, album, award, groupThe section of the link. It must match the link, or the answer is 404.

Responses

StatusDescriptionBody
200Revoked; the key stops opening the item immediately—
403Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section—
404SHARE_LINK_NOT_FOUND — unknown—

Opens ONE item with the key of a share link made by the community admin or the section moderator (POST /api/communities/communityId/share-links), in a private community too. The item has the same shape the member page reads, minus lists of other people (likers, attendees, members), contact fields and meeting links; the "did I like / vote / attend" flags are false. Read-only: liking, commenting and registering still need membership.

A wrong, revoked or other-item key, an unknown id, a hidden or unpublished item, or a section the plan no longer includes — all answer the same 404.

Auth: public — no token required.

Parameters

NameInRequiredTypeDescription
slugpathyesstring—
resourceTypepathyesenum: tweet, blog, event, project, project2, consultant, album, award, group—
resourceIdpathyesstring—
X-Share-KeyheaderyesstringThe share link key. A header, never the query string, so it stays out of access logs and Referer headers.

Responses

StatusDescriptionBody
200{ success: true, data: { resourceType, item } }—
404NOT_FOUND — nothing to read with this key—
429Rate limited—