Skip to main content
GET
/
api
/
v2
/
teams
List teams
curl --request GET \
  --url https://app.launchdarkly.com/api/v2/teams \
  --header 'Authorization: <api-key>'
{
  "items": [
    {
      "description": "Description for this team.",
      "key": "team-key-123abc",
      "name": "Example team",
      "_access": {
        "denied": [
          {
            "action": "<string>",
            "reason": {
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "notResources": [
                "<string>"
              ],
              "actions": [
                "*"
              ],
              "notActions": [
                "<string>"
              ],
              "role_name": "<string>"
            }
          }
        ],
        "allowed": [
          {
            "action": "<string>",
            "reason": {
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "notResources": [
                "<string>"
              ],
              "actions": [
                "*"
              ],
              "notActions": [
                "<string>"
              ],
              "role_name": "<string>"
            }
          }
        ]
      },
      "_creationDate": "1648671956143",
      "_links": {
        "parent": {
          "href": "/api/v2/teams",
          "type": "application/json"
        },
        "roles": {
          "href": "/api/v2/teams/example-team/roles",
          "type": "application/json"
        },
        "self": {
          "href": "/api/v2/teams/example-team",
          "type": "application/json"
        }
      },
      "_lastModified": "1648672446072",
      "_version": 3,
      "_idpSynced": true,
      "roleAttributes": "{\"developerProjectKey\": [\"default\"]}",
      "roles": {
        "totalCount": 1,
        "items": [
          {
            "key": "role-key-123abc",
            "name": "Example role",
            "projects": {
              "totalCount": 1,
              "items": [
                {
                  "_links": {
                    "environments": {
                      "href": "/api/v2/projects/example-project/environments",
                      "type": "application/json"
                    },
                    "self": {
                      "href": "/api/v2/projects/example-project",
                      "type": "application/json"
                    }
                  },
                  "key": "project-key-123abc",
                  "name": "Example project"
                }
              ]
            },
            "appliedOn": "1648672018410"
          }
        ],
        "_links": {
          "self": {
            "href": "/api/v2/teams/example-team/roles?limit=25",
            "type": "application/json"
          }
        }
      },
      "members": {
        "totalCount": 15
      },
      "projects": {
        "totalCount": 1,
        "items": [
          {
            "_links": {
              "environments": {
                "href": "/api/v2/projects/example-project/environments",
                "type": "application/json"
              },
              "self": {
                "href": "/api/v2/projects/example-project",
                "type": "application/json"
              }
            },
            "key": "project-key-123abc",
            "name": "Example project"
          }
        ]
      },
      "maintainers": {
        "totalCount": 1,
        "items": [
          {
            "_id": "569f183514f4432160000007",
            "_links": {
              "self": {
                "href": "/api/v2/members/569f183514f4432160000007",
                "type": "application/json"
              }
            },
            "email": "ariel@acme.com",
            "firstName": "Ariel",
            "lastName": "Flores",
            "role": "reader"
          }
        ],
        "_links": {
          "self": {
            "href": "/api/v2/teams/example-team/maintainers?limit=20",
            "type": "application/json"
          }
        }
      }
    }
  ],
  "_links": {
    "self": {
      "href": "/api/v2/teams?expand=maintainers%2Cmembers%2Croles%2Cprojects&limit=20",
      "type": "application/json"
    }
  },
  "totalCount": 1
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Query Parameters

limit
integer<int64>

The number of teams to return in the response. Defaults to 20.

offset
integer<int64>

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next limit items.

filter
string<string>

A comma-separated list of filters. Each filter is constructed as field:value.

expand
string<string>

A comma-separated list of properties that can reveal additional information in the response.

Response

Teams collection response

items
object[]
required

An array of teams

The location and content type of related resources

Example:
{
"self": {
"href": "/api/v2/teams?expand=maintainers%2Cmembers%2Croles%2Cprojects&limit=20",
"type": "application/json"
}
}
totalCount
integer

The number of teams

Example:

1