Organizations
organizations
Methods
Creates a new organization with the specified name and settings.
Use this method to:
- Create a new organization for team collaboration
- Set up automatic domain-based invites for team members
- Join the organization immediately upon creation
Examples
Create a basic organization:
Creates an organization with just a name.
name: "Acme Corp Engineering" joinOrganization: true
Create with domain-based invites:
Creates an organization that automatically invites users with matching email domains.
name: "Acme Corp" joinOrganization: true inviteAccountsWithMatchingDomain: true
Permanently deletes an organization.
Use this method to:
- Remove unused organizations
- Clean up test organizations
- Complete organization migration
Examples
Delete organization:
Permanently removes an organization and all its data.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
Allows users to join an organization through direct ID, invite link, or domain-based auto-join.
Use this method to:
- Join an organization via direct ID or invite
- Join automatically based on email domain
- Accept organization invitations
Examples
Join via organization ID:
Joins an organization directly when you have the ID.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
Join via invite:
Accepts an organization invitation link.
inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Removes a user from an organization while preserving organization data.
Use this method to:
- Remove yourself from an organization
- Clean up inactive memberships
- Transfer project ownership before leaving
- Manage team transitions
Examples
Leave organization:
Removes user from organization membership.
userId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
Note: Ensure all projects and resources are transferred before leaving.
Lists all organizations the caller has access to with optional filtering.
Use this method to:
- View organizations you're a member of
- Browse all available organizations
- Paginate through organization results
Examples
List member organizations:
Shows organizations where the caller is a member.
pagination: pageSize: 20 scope: SCOPE_MEMBER
List all organizations:
Shows all organizations visible to the caller.
pagination: pageSize: 50 scope: SCOPE_ALL
organizations are the organizations that matched the query
pagination contains the pagination options for listing organizations
Lists and filters organization members with optional pagination.
Use this method to:
- View all organization members
- Monitor member activity
- Manage team membership
Examples
List active members:
Retrieves active members with pagination.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20
List with pagination:
Retrieves next page of members.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 50 token: "next-page-token-from-previous-response"
Gets details about a specific organization.
Use this method to:
- Retrieve organization settings and configuration
- Check organization membership status
- View domain verification settings
Examples
Get organization details:
Retrieves information about a specific organization.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
Manages organization membership and roles by setting a user's role within the organization.
Use this method to:
- Promote members to admin role
- Change member permissions
- Demote admins to regular members
Examples
Promote to admin:
Makes a user an organization administrator.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" userId: "f53d2330-3795-4c5d-a1f3-453121af9c60" role: ORGANIZATION_ROLE_ADMIN
Change to member:
Changes a user's role to regular member.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" userId: "f53d2330-3795-4c5d-a1f3-453121af9c60" role: ORGANIZATION_ROLE_MEMBER
Updates an organization's settings including name, invite domains, and member policies.
Use this method to:
- Modify organization display name
- Configure email domain restrictions
- Update organization-wide settings
- Manage member access policies
Examples
Update basic settings:
Changes organization name and invite domains.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" name: "New Company Name" inviteDomains: domains: - "company.com" - "subsidiary.com"
Remove domain restrictions:
Clears all domain-based invite restrictions.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" inviteDomains: domains: []
Domain types
Domain Verifications
organizations.domain_verifications
Methods
Initiates domain verification process to enable organization features.
Use this method to:
- Start domain ownership verification
- Enable automatic team joining
- Set up SSO restrictions
- Configure email-based policies
Examples
Verify primary domain:
Starts verification for main company domain.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" domain: "acme-corp.com"
Verify subsidiary domain:
Adds verification for additional company domain.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" domain: "acme-subsidiary.com"
Removes a domain verification request.
Use this method to:
- Cancel pending verifications
- Remove verified domains
- Clean up unused domain records
Examples
Delete verification:
Removes a domain verification request.
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Lists and monitors domain verification status across an organization.
Use this method to:
- Track verification progress
- View all verified domains
- Monitor pending verifications
- Audit domain settings
Examples
List all verifications:
Shows all domain verifications regardless of status.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20
List with pagination:
Retrieves next page of verifications.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20 token: "next-page-token-from-previous-response"
Retrieves the status of a domain verification request.
Use this method to:
- Check verification progress
- View verification requirements
- Monitor domain status
Examples
Get verification status:
Checks the current state of a domain verification.
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Verifies domain ownership for an organization.
Use this method to:
- Complete domain verification process
- Enable domain-based features
- Validate DNS configuration
Examples
Verify domain ownership:
Verifies ownership after DNS records are configured.
domainVerificationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Domain types
Invites
organizations.invites
Methods
Creates an invite link for joining an organization. Any existing OrganizationInvites are invalidated and can no longer be used.
Use this method to:
- Generate shareable invite links
- Manage team growth
- Control organization access
Examples
Create organization invite:
Generates a new invite link for the organization.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
Retrieves organization details and membership info based on an invite link.
Use this method to:
- Preview organization details before joining
- Validate invite link authenticity
- Check organization size and activity
- View team information before accepting
Examples
Get invite summary:
Retrieves organization information from an invite.
inviteId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
GetOrganizationInvite
Domain types
SSO Configurations
organizations.sso_configurations
Methods
Creates or updates SSO configuration for organizational authentication.
Use this method to:
- Configure OIDC-based SSO providers
- Set up built-in providers (Google, GitHub, etc.)
- Define custom identity providers
- Manage authentication policies
Examples
Configure built-in Google SSO:
Sets up SSO using Google Workspace.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" clientId: "012345678-abcdefghijklmnopqrstuvwxyz.apps.googleusercontent.com" clientSecret: "GOCSPX-abcdefghijklmnopqrstuvwxyz123456" issuerUrl: "https://accounts.google.com" emailDomain: "acme-corp.com"
Configure custom OIDC provider:
Sets up SSO with a custom identity provider.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" clientId: "acme-corp-gitpod" clientSecret: "secret-token-value" issuerUrl: "https://sso.acme-corp.com" emailDomain: "acme-corp.com"
Removes an SSO configuration from an organization.
Use this method to:
- Disable SSO authentication
- Remove outdated providers
- Clean up unused configurations
Examples
Delete SSO configuration:
Removes a specific SSO configuration.
ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Lists and filters SSO configurations for an organization.
Use this method to:
- View all SSO providers
- Monitor authentication status
- Audit security settings
- Manage provider configurations
Examples
List active configurations:
Shows all active SSO providers.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20
List by provider type:
Shows custom SSO configurations.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" pagination: pageSize: 20 token: "next-page-token-from-previous-response"
Retrieves a specific SSO configuration.
Use this method to:
- View SSO provider details
- Check configuration status
- Verify SSO settings
Examples
Get SSO configuration:
Retrieves details of a specific SSO configuration.
ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
Updates SSO provider settings and authentication rules.
Use this method to:
- Rotate client credentials
- Update provider endpoints
- Modify claim mappings
- Change authentication policies
- Toggle SSO enforcement
Examples
Update credentials:
Rotates client ID and secret.
ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" clientId: "new-client-id" clientSecret: "new-client-secret"
Update provider status:
Activates or deactivates SSO provider.
ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" state: SSO_CONFIGURATION_STATE_ACTIVE
Domain types