S D K Keys (beta)

Get all project SDK keys

GET
/api/v2/projects/{projectKey}/sdk-keys

Get all SDK keys for a given project across environments.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

Query Parameters

filter?string

A queryfilter expression to apply to the list of SDK keys. Supports the following fields and operators: kind (equals, anyOf; values: "sdk", "mobile"), active (equals, anyOf; values: true, false), environmentKey (equals, anyOf; values: environment keys), viewKey (equals, anyOf; values: view key strings — returns only SDK keys linked to the specified view(s)), name (equals only; returns SDK keys whose name or key contains the value, matched case-insensitively). Example: kind anyOf ["sdk","mobile"], environmentKey anyOf ["production","test"], viewKey equals my-view, name equals "production".

limit?integer

The number of SDK keys to return. Defaults to 20. Maximum is 100.

offset?integer

The number of SDK keys to skip. Used for pagination.

expand?string

A comma-separated list of fields to expand in the response. Supported fields: environmentSummary, viewSummaries.

sort?string

A sort to apply to the list of SDK keys. Supported fields: createdAt and environmentKey. Prefix createdAt with - to sort in descending order (for example, -createdAt). environmentKey orders keys by environment key ascending, then by creation time ascending within each environment, so each page is environment-contiguous.

Value in

  • "createdAt"
  • "-createdAt"
  • "environmentKey"

Header Parameters

LD-API-Version*"beta"

Version of the endpoint.

Value in

  • "beta"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/projects/default/sdk-keys" \  -H "LD-API-Version: beta"
{  "_links": {    "self": {      "href": "href",      "type": "type"    }  },  "totalCount": 7,  "items": [    {      "_links": {        "parent": {          "href": "href",          "type": "type"        },        "self": {          "href": "href",          "type": "type"        }      },      "kind": "sdk",      "description": "description",      "environmentSummary": {        "color": "F5A623",        "_links": {          "self": {            "href": "/api/v2/projects/my-project/environments/my-environment",            "type": "application/json"          }        },        "name": "My Environment",        "key": "environment-key-123abc"      },      "_createdByMemberId": "_createdByMemberId",      "isDefault": true,      "viewSummaries": [        {          "_links": {            "parent": {              "href": "href",              "type": "type"            },            "self": {              "href": "href",              "type": "type"            }          },          "resourceSummary": {            "flagCount": 5,            "segmentCount": 2          },          "name": "name",          "key": "key"        },        {          "_links": {            "parent": {              "href": "href",              "type": "type"            },            "self": {              "href": "href",              "type": "type"            }          },          "resourceSummary": {            "flagCount": 5,            "segmentCount": 2          },          "name": "name",          "key": "key"        }      ],      "_createdAt": 6,      "name": "name",      "expiry": 0,      "value": "value",      "_updatedAt": 1,      "_version": 5,      "key": "key"    },    {      "_links": {        "parent": {          "href": "href",          "type": "type"        },        "self": {          "href": "href",          "type": "type"        }      },      "kind": "sdk",      "description": "description",      "environmentSummary": {        "color": "F5A623",        "_links": {          "self": {            "href": "/api/v2/projects/my-project/environments/my-environment",            "type": "application/json"          }        },        "name": "My Environment",        "key": "environment-key-123abc"      },      "_createdByMemberId": "_createdByMemberId",      "isDefault": true,      "viewSummaries": [        {          "_links": {            "parent": {              "href": "href",              "type": "type"            },            "self": {              "href": "href",              "type": "type"            }          },          "resourceSummary": {            "flagCount": 5,            "segmentCount": 2          },          "name": "name",          "key": "key"        },        {          "_links": {            "parent": {              "href": "href",              "type": "type"            },            "self": {              "href": "href",              "type": "type"            }          },          "resourceSummary": {            "flagCount": 5,            "segmentCount": 2          },          "name": "name",          "key": "key"        }      ],      "_createdAt": 6,      "name": "name",      "expiry": 0,      "value": "value",      "_updatedAt": 1,      "_version": 5,      "key": "key"    }  ]}