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: #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.
| Method | Path | Summary |
|---|---|---|
GET | /api/communities/{communityId}/share-links | List the live share links of one item |
POST | /api/communities/{communityId}/share-links | Make 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) |
GET /api/communities/{communityId}/share-linksAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
resourceType | query | yes | enum: tweet, blog, event, project, project2, consultant, album, award, group | — |
resourceId | query | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The item's links that are not revoked. Never includes the key. | object |
400 | SHARE_RESOURCE_TYPE_INVALID or a missing resourceId | — |
403 | Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section | — |
POST /api/communities/{communityId}/share-linksAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Request body (required) — application/json
| Field | Type | Required | Description |
|---|---|---|---|
resourceType | enum: tweet, blog, event, project, project2, consultant, album, award, group | yes | — |
resourceId | string | yes | — |
communityId | string | no | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | The link. token is returned here once and is not retrievable later. | object |
400 | SHARE_RESOURCE_TYPE_INVALID or a missing resourceId | — |
403 | Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section | — |
404 | SHARE_RESOURCE_NOT_FOUND — no such item in this community | — |
409 | SHARE_LINK_LIMIT_REACHED — 10 live links on this item; revoke one first | — |
429 | Rate limited | — |
DELETE /api/communities/{communityId}/share-links/{shareLinkId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
shareLinkId | path | yes | string | — |
resourceType | query | yes | enum: tweet, blog, event, project, project2, consultant, album, award, group | The section of the link. It must match the link, or the answer is 404. |
Responses
| Status | Description | Body |
|---|---|---|
200 | Revoked; the key stops opening the item immediately | — |
403 | Not a member (NOT_A_COMMUNITY_MEMBER), or "Missing one of permissions: …" for this section | — |
404 | SHARE_LINK_NOT_FOUND — unknown | — |
GET /api/communities/public/{slug}/shared/{resourceType}/{resourceId}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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string | — |
resourceType | path | yes | enum: tweet, blog, event, project, project2, consultant, album, award, group | — |
resourceId | path | yes | string | — |
X-Share-Key | header | yes | string | The share link key. A header, never the query string, so it stays out of access logs and Referer headers. |
Responses
| Status | Description | Body |
|---|---|---|
200 | { success: true, data: { resourceType, item } } | — |
404 | NOT_FOUND — nothing to read with this key | — |
429 | Rate limited | — |