List subscription groups

Retrieve all subscription groups in your account, including archived ones.

API at a glance

Description: This API returns a complete list of subscription groups configured in your account, including both active and archived groups. Subscription groups enable granular consent management, allowing customers to opt out of specific content categories (like newsletters or promotions) while remaining subscribed to others.

Authentication & testing

Testing the API on this page

How to try it here

  • Use your User API Key as the Username (leave Password blank).
  • User API Key Location
  • Select the appropriate API endpoint based on your Blueshift region.
  • API - Select Region
  • Enter the necessary parameters and click Try It to run the request.
Authentication using Base64 encoding

Note for developers

API requests require authentication using HTTP Basic Authentication with an API key. The API key serves as the username, while the password field should be left empty. The format to encode is: your_api_key: (note the trailing colon).

This string must be Base64-encoded and included in the request's Authorization header as follows:

Authorization: Basic encoded_value

You can generate the encoded value using a trusted Base64 encoder.


Postman collection

Try it with Postman: Explore the API using Blueshift's Postman collection.


Things to know before you start

📖 Subscription groups – user guide
To learn more about subscription groups and how to create and manage them in Blueshift, see the Subscription groups overview.

  • This endpoint returns all subscription groups, including archived ones.
  • Each subscription group includes: ID, UUID, label, description, author, and timestamps.
  • Subscription groups are used to manage customer preferences at a more granular level than channel-level subscriptions.
  • Use case: Retrieve all available subscription groups to display in preference centers, integrate with external systems, or audit your subscription group configuration.

Request parameters

This endpoint does not require any parameters.

Example requests & responses

Request example
curl --request GET \
     --url https://api.getblueshift.com/api/v1/subscription_groups \
     --header 'accept: application/json' \
     --header 'authorization: Basic YWNlZDZlNGYxMWExYWVhOTZmNTJkNDg4M2ZmMjI4Mjg6'
Response example
{
  "subscription_groups": [
    {
      "subscription_group_id": "weekly_updates",
      "description": "Weekly marketing newsletter",
      "user_id": 4821,
      "account_id": 182,
      "uuid": "a1b2c3d4-5678-49ab-9cde-0123456789ab",
      "created_at": "2025-10-12T08:15:27.000Z",
      "updated_at": "2025-11-03T12:44:10.000Z",
      "subscription_group_label": "Weekly Updates",
      "archived": false,
      "author": "Emily Johnson"
    },
    {
      "subscription_group_id": "promotions",
      "description": "Seasonal and promotional campaigns",
      "user_id": 5930,
      "account_id": 182,
      "uuid": "b2c3d4e5-6789-40fa-8123-abcdef123456",
      "created_at": "2025-09-18T07:52:01.000Z",
      "updated_at": "2025-09-30T09:21:33.000Z",
      "subscription_group_label": "Promotions",
      "archived": false,
      "author": "Michael Lee"
    }
  ]
}
API error responses
Status codeDescriptionExample response
401 UnauthorizedAPI authentication failed due to an invalid or missing API key.{ "message": "Not authorized" }
404 Not FoundThe requested API endpoint does not exist.{ "status": "404", "error": "Not Found" }
429 Too Many RequestsThe request limit has been exceeded.{ "message": "Rate limit exceeded" }
500 Internal Server ErrorAn unexpected server error occurred.{ "message": "Internal Server Error - Please contact support for more information." }
502 Bad GatewayThe server received an invalid response.{ "message": "Bad Gateway - Please retry the request." }
503 Service UnavailableThe service is temporarily unavailable.{ "message": "Service Unavailable - Try again later." }
504 Gateway TimeoutThe server took too long to respond.{ "message": "Gateway Timeout - Retry with exponential backoff." }
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!