Subscribers

List a newsletter's community

The people who joined this newsletter's community on Commune, most recently joined first. Needs audience: read. Every field on a row is a field the same person's own public profile carries, plus the day they joined.

A roster of people, not a census of the audience. A newsletter that brought its list over from another provider holds subscriptions that are an address and nothing else, and none of them is here: there is no person to name. So the length of this collection is a floor under the community and is never the newsletter's subscriber count. The list to reconcile against a provider is GET /newsletters/{newsletter}/subscribers, which returns addresses.

Only people who are currently subscribed are returned. There is no parameter for asking about anybody else.

get/newsletters/{newsletter}/community

Request

  • Base URL: https://api.usecommune.com
  • URL: https://api.usecommune.com/newsletters/{newsletter}/community
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://usecommune.com/api/oauth/authorize, token URL https://usecommune.com/api/oauth/token, scopes: audience:read)

Query parameters

cursorstring

The pagination.next_cursor value from the previous page. Omit it to read the first page. A cursor is opaque, is only valid for the same operation with the same filters, and is not a durable identifier.

limitinteger

How many items to return in this page. This is a page size, not an offset. Fewer items than requested may come back and that does not mean the collection is exhausted, only an absent next_cursor does.

expandstring

Comma-separated list of relationship paths to inline in the response. Unexpanded relationships are returned as a reference object carrying only id and object. Each operation documents the paths it accepts, and an unknown path answers 400. Nested paths use a dot, for example article.newsletter.

fieldsstring

Comma-separated allow-list of top level properties to return on each object, so a client can trim a response it does not need in full. id and object are always returned. An unknown property name answers 400. Properties omitted by an operation, such as content on any article list, cannot be brought back with fields.

Response

A page of community members, most recently joined first.

object'list' required

Always list, so a response is self describing.

Example response

{
  "pagination": {
    "next_cursor": "Y3Vyc29yOjE3NTY0MjM2MDAwMDA6MDE5MmM4"
  },
  "data": [
    {
      "newsletter": {
        "object": "newsletter",
        "id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
      },
      "user": {
        "object": "newsletter",
        "id": "9a4c1c6e-0f2b-4f47-9d3f-6d1b1a2c3d4e"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.