API Docs

Invite User to Project

How to invite users to projects using the Blue API.

Invite User to Project

To invite a user to a project, you can use the following mutation:

mutation {
  inviteUser(
    input: {
      email: "[email protected]"
      projectId: "YOUR PROJECT ID OR SLUG"
      accessLevel: "ADMIN"
      roleId: "YOUR CUSTOM ROLE ID"
    }
  )
}

There are six predefined user roles in Blue:

  1. OWNER
  2. ADMIN
  3. MEMBER
  4. CLIENT
  5. COMMENT_ONLY
  6. VIEW_ONLY

When inviting a user to a project, you can specify one of these roles using the accessLevel parameter in the mutation.

If you have created custom user roles for your project, you should use "MEMBER" as the accessLevel and provide the roleId of your custom role. Here's an example: