List recommendation schemes

Returns the recommendation schemes configured for your account, including the scheme UUID, display name, editor version, author, and linked templates.

API at a glance

Description: This API returns the recommendation schemes configured for your Blueshift account, including the scheme UUID you pass to recommendation API calls, its display name, editor version, author, and the templates that use it.

Authentication & testing

Testing the API on this page

How to try it here

  • Use your User API Key as the Username (leave Password blank).
  • 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

  • Two response formats: Without the page parameter, the endpoint returns a plain array containing every scheme in your account. With page, it returns a paginated object with total_count, total_pages, per_page, page, and a results array.
  • per_page requires page: On its own, per_page has no effect. Pass both to control page size.
  • Archived filter uses 0 and 1: Set archived=1 for archived schemes and archived=0 for active ones. Boolean values are not accepted.
  • Editor versions: V1.0 is Classic, V1.1 is Plasma, and V2.0 is Photon. An unrecognised value returns a 400.
  • Scheme UUID: Use the uuid field from the response when you call the recommendations API.
  • Use case: Best for auditing your recommendation schemes, finding the UUID of a scheme programmatically, and checking which templates use a given scheme.

Request parameters

Check out the request parameters

Query parameters

Note: All query parameters are optional.

ParameterTypeRequiredDescription
pageinteger❌ NoPage number to return, starting at 0. Include this parameter to get a paginated response.
per_pageinteger❌ NoNumber of schemes per page. Default is 25. Requires page.
display_namestring❌ NoReturns schemes whose display name contains this text.
archivedinteger❌ NoSet to 1 to return archived schemes, 0 for active schemes. Defaults to active.
editor_versionstring❌ NoFilter by editor version. Values: V1.0 (Classic), V1.1 (Plasma), V2.0 (Photon).

Response fields

FieldTypeDescription
uuidstringUnique identifier for the scheme. Use this in recommendation API calls.
namestringInternal name of the scheme.
display_namestringHuman-readable name shown in the Blueshift app.
descriptionstringOptional description of the scheme's purpose. May be null.
editor_versionstringAlgorithm editor version: V1.0 (Classic), V1.1 (Plasma), or V2.0 (Photon).
is_plasmabooleanWhether the scheme was built with the Plasma editor.
archivedbooleanWhether the scheme is archived.
authorstringFull name of the user who created the scheme.
emailstringEmail address of the user who created the scheme.
created_atstringTimestamp when the scheme was created, in ISO 8601 format.
updated_atstringTimestamp when the scheme was last updated, in ISO 8601 format.
templatesarrayTemplates that use this scheme. Empty when none do.

Template object

FieldTypeDescription
namestringName of the template.
uuidstringUUID of the template.
resource_typestringTemplate type, for example EmailTemplate, PushTemplate, or WhatsappTemplate.
archivedbooleanWhether the template is archived.

Example requests & responses

List all schemes
curl --request GET \
     --url https://api.getblueshift.com/api/v1/account_algorithms.json \
     --header 'accept: application/json' \
     --header 'authorization: Basic <YOUR_API_KEY>'
[
  {
    "name": "BSFT_Curated_Items",
    "display_name": "BSFT Curated Items",
    "created_at": "2025-06-16T06:06:45.000Z",
    "updated_at": "2026-03-27T18:43:15.000Z",
    "uuid": "d449299a-4449-45f7-8762-d571667a32ed",
    "archived": false,
    "description": null,
    "editor_version": "V2.0",
    "author": "Jane Doe",
    "email": "[email protected]",
    "is_plasma": false,
    "templates": []
  },
  {
    "name": "curated_test",
    "display_name": "curated test",
    "created_at": "2026-03-27T18:45:06.000Z",
    "updated_at": "2026-03-27T18:46:13.000Z",
    "uuid": "7f61d116-c38b-4313-bd60-5c8867aa0e87",
    "archived": false,
    "description": "Curated products for the spring campaign",
    "editor_version": "V2.0",
    "author": "John Smith",
    "email": "[email protected]",
    "is_plasma": false,
    "templates": [
      {
        "name": "Spring Promo Email",
        "uuid": "79335089-07cc-44b7-8513-54fd41fb3875",
        "resource_type": "EmailTemplate",
        "archived": false
      }
    ]
  }
]
Paginate through schemes
curl --request GET \
     --url 'https://api.getblueshift.com/api/v1/account_algorithms.json?page=0&per_page=25' \
     --header 'accept: application/json' \
     --header 'authorization: Basic <YOUR_API_KEY>'
{
  "total_count": 468,
  "total_pages": 19,
  "per_page": 25,
  "page": 0,
  "results": [
    {
      "name": "BSFT_Curated_Items",
      "display_name": "BSFT Curated Items",
      "created_at": "2025-06-16T06:06:45.000Z",
      "updated_at": "2026-03-27T18:43:15.000Z",
      "uuid": "d449299a-4449-45f7-8762-d571667a32ed",
      "archived": false,
      "description": null,
      "editor_version": "V2.0",
      "author": "Jane Doe",
      "email": "[email protected]",
      "is_plasma": false,
      "templates": []
    }
  ]
}
Search by display name
curl --request GET \
     --url 'https://api.getblueshift.com/api/v1/account_algorithms.json?display_name=curated' \
     --header 'accept: application/json' \
     --header 'authorization: Basic <YOUR_API_KEY>'
[
  {
    "name": "curated_test",
    "display_name": "curated test",
    "created_at": "2026-03-27T18:45:06.000Z",
    "updated_at": "2026-03-27T18:46:13.000Z",
    "uuid": "7f61d116-c38b-4313-bd60-5c8867aa0e87",
    "archived": false,
    "description": "Curated products for the spring campaign",
    "editor_version": "V2.0",
    "author": "John Smith",
    "email": "[email protected]",
    "is_plasma": false,
    "templates": []
  }
]
Query Params
integer

Page number to return, starting at 0. Include this parameter to get a paginated response.

integer

Number of schemes per page. Default is 25. Requires page.

string

Returns schemes whose display name contains this text.

integer
enum

Set to 1 to return archived schemes, 0 for active schemes. Defaults to active.

Allowed:
string
enum

Filter by the algorithm editor version. V1.0 is Classic, V1.1 is Plasma, and V2.0 is Photon.

Allowed:
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json