Skip to main content
POST
/
api
/
v2
/
members
Invite new members
curl --request POST \
  --url https://app.launchdarkly.com/api/v2/members \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "email": "sandy@acme.com",
    "password": "***",
    "firstName": "Ariel",
    "lastName": "Flores",
    "role": "reader",
    "customRoles": [
      "customRole1",
      "launchdarkly-developer"
    ],
    "teamKeys": [
      "team-1",
      "team-2"
    ],
    "roleAttributes": "{\"developerProjectKeys\": [\"default\"]}"
  }
]
'
{
  "items": [
    {
      "_links": {},
      "_id": "507f1f77bcf86cd799439011",
      "role": "reader",
      "email": "ariel@acme.com",
      "_pendingInvite": false,
      "_verified": true,
      "customRoles": [
        "devOps",
        "backend-devs"
      ],
      "mfa": "<string>",
      "_lastSeen": "1608260796147",
      "creationDate": "1628001602644",
      "firstName": "Ariel",
      "lastName": "Flores",
      "_pendingEmail": "<string>",
      "excludedDashboards": [
        "<string>"
      ],
      "_lastSeenMetadata": {
        "tokenId": "5b52207f8ca8e631d31fdb2b"
      },
      "_integrationMetadata": {
        "externalId": "<string>",
        "externalStatus": {
          "display": "<string>",
          "value": "<string>"
        },
        "externalUrl": "<string>",
        "lastChecked": 123
      },
      "teams": [
        {
          "customRoleKeys": [
            "access-to-test-projects"
          ],
          "key": "team-key-123abc",
          "name": "QA Team",
          "_links": {}
        }
      ],
      "permissionGrants": [
        {
          "resource": "team/qa-team",
          "actionSet": "<string>",
          "actions": [
            "maintainTeam"
          ]
        }
      ],
      "oauthProviders": [
        "<string>"
      ],
      "version": 1,
      "roleAttributes": {}
    }
  ],
  "_links": {},
  "totalCount": 123
}

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

Body

application/json
email
string
required

The member's email

Example:

"sandy@acme.com"

password
string

The member's password

Example:

"***"

firstName
string

The member's first name

Example:

"Ariel"

lastName
string

The member's last name

Example:

"Flores"

role
enum<string>

The member's initial role, if you are using a base role for the initial role

Available options:
reader,
writer,
admin,
no_access
Example:

"reader"

customRoles
string[]

An array of the member's initial roles, if you are using custom roles or preset roles provided by LaunchDarkly

Example:
["customRole1", "launchdarkly-developer"]
teamKeys
string[]

An array of the member's teams

Example:
["team-1", "team-2"]
roleAttributes
object

An object of role attributes for the member

Example:

"{\"developerProjectKeys\": [\"default\"]}"

Response

Member collection response

items
object[]
required

An array of members

The location and content type of related resources

totalCount
integer

The number of members returned