Get all plans
curl --request GET \
  --url https://api.salesbricks.com/api/v2/plans \
  --header 'X-SALESBRICKS-KEY: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "plan_name": "<string>",
      "bricks": [
        {
          "brick_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "brick_name": "<string>",
          "brick_type": "SUBSCRIPTION"
        }
      ]
    }
  ]
}

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Query Parameters

limit
integer

Maximum number of plans to return (default: 100, max: 1000)

offset
integer

Number of records to skip (default: 0)

ordering
enum<string>

Order results by field (prefix with '-' for descending order)

Available options:
-created_at,
created_at

Response

200 - application/json

The response is of type object.