Bearer <YOUR_ACCESS_TOKEN>
.
Example cURL command:
Parameter | Description | Type | Required |
---|---|---|---|
contextUrl.url | Context URL ( Repository, Issues, Pull Request URL) | string | true |
contextUrl.workspaceClass | Workspace class (g1-standard or g1-large . Additionally, g1-xlarge or g1-xxlarge for Enterprise) | string | true |
contextUrl.editor.name | IDE to be used for the workspace (code , code-desktop , intellij , goland , phpstorm , pycharm , rubymine , webstorm , rider , clion , rustrover ) | string | false |
contextUrl.editor.version | Version of the editor you’d like to use (default: stable , option: latest ) | string | false |
metadata.ownerId | User ID of the owner | string | true |
metadata.organizationId | Organization ID | string | true |
Parameter | Description | Type |
---|---|---|
workspace.id | The ID of the workspace | string |
workspace.metadata | The metadata of the workspace | WorkspaceMetadata |
workspace.metadata.ownerId | The ID of the user that owns the workspace | string |
workspace.metadata.organizationId | The ID of the organization that the workspace belongs to | string |
workspace.metadata.configurationId | The ID of the project or configuration that the workspace belongs to | string |
workspace.metadata.name | The name of the workspace | string |
workspace.metadata.originalContextUrl | The original context URL of the workspace | string |
workspace.spec | The specifications of the workspace | WorkspaceSpec |
workspace.spec.initializer | Initializer specifications for the workspace | InitializerSpec |
workspace.spec.initializer.specs | Array of specifications for the initializer | [InitializerSpecs] (array) |
workspace.spec.initializer.specs[0].git | Git configuration for the initializer | GitSpec |
workspace.spec.type | The type of the workspace | string |
workspace.spec.ports | Array of port configurations for the workspace | [PortsSpec] (array) |
workspace.spec.timeout | Timeout configuration for the workspace | TimeoutSpec |
workspace.spec.admission | Admission level for the workspace | string |
workspace.spec.class | Resource class allocated to the workspace | string |
workspace.spec.editor | Editor configuration for the workspace | EditorSpec |
workspace.status | The status of the workspace | WorkspaceStatus |
workspace.status.phase | Current phase of the workspace | PhaseSpec |
workspace.status.gitStatus | Git status information for the workspace | GitStatusSpec |
workspace.status.instanceId | The instance ID of the workspace | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | The ID of the organization that the workspace belongs to. | string | true |
pinned | Whether to return only pinned workspaces. | boolean | false |
searchTerm | A search term to filter the workspaces by. | string | false |
pagination.page | It specifies the page number of the results we expect (default: 1) | Int32 | false |
pagination.pageSize | It limits the maximum number of results we expect (default: 25, maximum: 100) | Int32 | false |
Parameter | Description | Type |
---|---|---|
pagination.total | Total number of organizations | Int32 |
pagination.nextToken | Next page token for pagination, Empty if there are no more results | string |
workspaces | List of workspaces | []Workspace (array) |
workspaces[0].id | The ID of the workspace | string |
workspaces[0].metadata | The metadata of the workspace | WorkspaceMetadata |
workspaces[0].metadata.ownerId | The ID of the user that owns the workspace | string |
workspaces[0].metadata.organizationId | The ID of the organization that the workspace belongs to | string |
workspaces[0].metadata.configurationId | The ID of the project or configuration that the workspace belongs to | string |
workspaces[0].metadata.name | The name of the workspace | string |
workspaces[0].metadata.originalContextUrl | The original context URL of the workspace | string |
workspaces[0].spec | The specifications of the workspace | WorkspaceSpec |
workspaces[0].spec.initializer | Initializer specifications for the workspace | InitializerSpec |
workspaces[0].spec.initializer.specs | Array of specifications for the initializer | [InitializerSpecs] (array) |
workspaces[0].spec.initializer.specs[0].git | Git configuration for the initializer | GitSpec |
workspaces[0].spec.type | The type of the workspace | string |
workspaces[0].spec.ports | Array of port configurations for the workspace | [PortsSpec] (array) |
workspaces[0].spec.timeout | Timeout configuration for the workspace | TimeoutSpec |
workspaces[0].spec.admission | Admission level for the workspace | string |
workspaces[0].spec.class | Resource class allocated to the workspace | string |
workspaces[0].spec.editor | Editor configuration for the workspace | EditorSpec |
workspaces[0].status | The status of the workspace | WorkspaceStatus |
workspaces[0].status.phase | Current phase of the workspace | PhaseSpec |
workspaces[0].status.gitStatus | Git status information for the workspace | GitStatusSpec |
workspaces[0].status.instanceId | The instance ID of the workspace | string |
Parameter | Description | Type | Required |
---|---|---|---|
workspaceId | Workspace ID | string | true |
Parameter | Description | Type |
---|---|---|
workspace.id | The ID of the workspace | string |
workspace.metadata | The metadata of the workspace | WorkspaceMetadata |
workspace.metadata.ownerId | The ID of the user that owns the workspace | string |
workspace.metadata.organizationId | The ID of the organization that the workspace belongs to | string |
workspace.metadata.configurationId | The ID of the project or configuration that the workspace belongs to | string |
workspace.metadata.name | The name of the workspace | string |
workspace.metadata.originalContextUrl | The original context URL of the workspace | string |
workspace.spec | The specifications of the workspace | WorkspaceSpec |
workspace.spec.initializer | Initializer specifications for the workspace | InitializerSpec |
workspace.spec.initializer.specs | Array of specifications for the initializer | [InitializerSpecs] (array) |
workspace.spec.initializer.specs[0].git | Git configuration for the initializer | GitSpec |
workspace.spec.type | The type of the workspace | string |
workspace.spec.ports | Array of port configurations for the workspace | [PortsSpec] (array) |
workspace.spec.timeout | Timeout configuration for the workspace | TimeoutSpec |
workspace.spec.admission | Admission level for the workspace | string |
workspace.spec.class | Resource class allocated to the workspace | string |
workspace.spec.editor | Editor configuration for the workspace | EditorSpec |
workspace.status | The status of the workspace | WorkspaceStatus |
workspace.status.phase | Current phase of the workspace | PhaseSpec |
workspace.status.gitStatus | Git status information for the workspace | GitStatusSpec |
workspace.status.instanceId | The instance ID of the workspace | string |
Parameter | Description | Type | Required |
---|---|---|---|
workspaceId | ID of the workspace to start | string | true |
GetWorkspace
.
Parameter | Description | Type |
---|---|---|
workspace.id | The ID of the workspace | string |
workspace.metadata | The metadata of the workspace | WorkspaceMetadata |
workspace.metadata.ownerId | The ID of the user that owns the workspace | string |
workspace.metadata.organizationId | The ID of the organization that the workspace belongs to | string |
workspace.metadata.configurationId | The ID of the project or configuration that the workspace belongs to | string |
workspace.metadata.name | The name of the workspace | string |
workspace.metadata.originalContextUrl | The original context URL of the workspace | string |
workspace.spec | The specifications of the workspace | WorkspaceSpec |
workspace.spec.initializer | Initializer specifications for the workspace | InitializerSpec |
workspace.spec.initializer.specs | Array of specifications for the initializer | [InitializerSpecs] (array) |
workspace.spec.initializer.specs[0].git | Git configuration for the initializer | GitSpec |
workspace.spec.type | The type of the workspace | string |
workspace.spec.ports | Array of port configurations for the workspace | [PortsSpec] (array) |
workspace.spec.timeout | Timeout configuration for the workspace | TimeoutSpec |
workspace.spec.admission | Admission level for the workspace | string |
workspace.spec.class | Resource class allocated to the workspace | string |
workspace.spec.editor | Editor configuration for the workspace | EditorSpec |
workspace.status | The status of the workspace | WorkspaceStatus |
workspace.status.phase | Current phase of the workspace | PhaseSpec |
workspace.status.gitStatus | Git status information for the workspace | GitStatusSpec |
workspace.status.instanceId | The instance ID of the workspace | string |
Parameter | Description | Type | Required |
---|---|---|---|
workspaceId | Workspace ID that needs to be stopped | string | true |
Parameter | Description | Type | Required |
---|---|---|---|
workspaceId | Workspace ID that needs to be deleted | string | true |
creationTime
.
You can filter the responses by creationTime
range using the from
and to
arguments.
If to
is not specified, it defaults to now.
If from
is not specified, it defaults to 7 days before to
.
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
pagination | Pagination parameters | object | false |
from | Start of the creationTime range | string | false |
to | End of the creationTime range | string | false |
Parameter | Description | Type | Required |
---|---|---|---|
name | Organization name | string | true |
Parameter | Description | Type |
---|---|---|
id | UUID of Organization | string |
name | Name of Organization | string |
creationTime | Creation time of Organization | string (timestamp in ISO 8601 format) |
Parameter | Description | Type | Required |
---|---|---|---|
pagination.page | It specifies the page number of the results we expect (default: 1) | Int32 | false |
pagination.pageSize | It limits the maximum number of results we expect (default: 25, maximum: 100) | Int32 | false |
Parameter | Description | Type |
---|---|---|
organizations | List of organizations | array |
organizations[0].id | UUID of the organization | string |
organizations[0].name | Name of the organization | string |
organizations[0].creationTime | Creation time of the organization | string (timestamp in ISO 8601 format) |
organizations[0].slug | Slug of the organization | string |
pagination.total | Total number of organizations | Int32 |
pagination.nextToken | Next page token for pagination, Empty if there are no more results | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
Parameter | Description | Type |
---|---|---|
id | UUID of Organization | string |
name | Name of Organization | string |
creationTime | Creation time of Organization | string (timestamp in ISO 8601 format) |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID that needs to be deleted | string | true |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
Parameter | Description | Type |
---|---|---|
settings | Settings of an organization | Object |
settings.workspaceSharingDisabled | Whether workspace sharing is disabled | Boolean |
settings.defaultWorkspaceImage | Default workspace image | String |
settings.allowedWorkspaceClasses | IDs of workspace classes allowed to be used | Array |
settings.restrictedEditorNames | List of restricted editor names | Array |
settings.pinnedEditorVersions | Pinned versions for corresponding editors | Map |
settings.defaultRole | Default role for new members | String |
settings.timeoutSettings | Timeout settings (see related section in Organization Policies) | Object |
settings.timeoutSettings.inactivity | Inactivity timeout | String |
settings.timeoutSettings.denyUserTimeouts | Whether to deny user timeouts | Boolean |
settings.roleRestrictions | Role restrictions | Array |
settings.maxParallelRunningWorkspaces | Maximum number of parallel running workspaces (see related section in Organization Policies) | Int32 |
settings.onboardingSettings | Onboarding settings (see the Organization Onboarding documentation) | Object |
settings.onboardingSettings.internalLink | Internal link for onboarding | String |
settings.onboardingSettings.welcomeMessage | Welcome message for onboarding | Object |
settings.onboardingSettings.welcomeMessage.enabled | Whether to show the welcome message to new organization members. | Boolean |
settings.onboardingSettings.welcomeMessage.message | Welcome message for onboarding | String |
settings.onboardingSettings.welcomeMessage.featuredMemberId | ID of the member whose avatar will be displayed in the welcome message | String |
settings.onboardingSettings.welcomeMessage.featuredMemberResolvedAvatarUrl | Avatar URL of the member whose avatar will be displayed in the welcome message | String |
settings.onboardingSettings.recommendedRepositories | Configuration IDs of recommended repositories for onboarding | Array |
settings.annotateGitCommits | Whether to annotate Git commits (see Git commit annotation) | Boolean |
settings
, see the Get an organization’s settings section.
Request Parameters:
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | String | Yes |
workspaceSharingDisabled | Whether workspace sharing is disabled | Boolean | |
settings.defaultWorkspaceImage | Default workspace image | String | |
allowedWorkspaceClasses | IDs of workspace classes allowed to be used | Array | |
updateAllowedWorkspaceClasses | Whether to update allowed workspace classes | Boolean | |
restrictedEditorNames | List of restricted editor names | Array | |
updateRestrictedEditorNames | Whether to update restricted editor names | Boolean | |
pinnedEditorVersions | Pinned versions for corresponding editors | Map | |
updatePinnedEditorVersions | Whether to update pinned editor versions | Boolean | |
defaultRole | Default role for new members | String | |
timeoutSettings | Timeout settings (see related section in Organization Policies) | Object | |
timeoutSettings.inactivity | Inactivity timeout | String | |
timeoutSettings.denyUserTimeouts | Whether to deny user timeouts | Boolean | |
roleRestrictions | Role restrictions | Array | |
updateRoleRestrictions | Whether to update role restrictions | Boolean | |
maxParallelRunningWorkspaces | Maximum number of parallel running workspaces (see related section in Organization Policies) | Int32 | |
onboardingSettings | Onboarding settings (see the Organization Onboarding documentation) | Object | |
onboardingSettings.internalLink | Internal link for onboarding | String | |
onboardingSettings.welcomeMessage | Welcome message for onboarding | Object | |
onboardingSettings.welcomeMessage.enabled | Whether to show the welcome message to new organization members. | Boolean | |
onboardingSettings.welcomeMessage.message | Welcome message for onboarding | String | |
onboardingSettings.welcomeMessage.featuredMemberId | ID of the member whose avatar will be displayed in the welcome message | String | |
onboardingSettings.recommendedRepositories | Configuration IDs of recommended repositories for onboarding | Array | |
annotateGitCommits | Whether to annotate Git commits (see Git commit annotation) | Boolean |
Parameter | Description | Type |
---|---|---|
settings | Updated settings | Object |
Parameter | Description | Type | Required |
---|---|---|---|
invitationId | Organization Invitation ID | string | true |
Parameter | Description | Type |
---|---|---|
organizationId | UUID of Team | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
Parameter | Description | Type |
---|---|---|
invitationId | New invitation id of organization | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
Parameter | Description | Type |
---|---|---|
members | List of members in an organization | array |
members[0].userId | User ID of the member | string |
members[0].role | Role of the member (ORGANIZATION_ROLE_OWNER , ORGANIZATION_ROLE_MEMBER , ORGANIZATION_ROLE_COLLABORATOR ) | string |
members[0].memberSince | Time since member is part of organization | string (timestamp in ISO 8601 format) |
members[0].avatarUrl | Avatar URL of member | string |
members[0].fullName | Full name of member | string |
members[0].email | Email ID of member | string |
pagination.total | Total number of organizations | Int32 |
pagination.nextToken | Next page token for pagination, Empty if there are no more results | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Team name | string | true |
userId | User ID of a team member being updated | string | true |
role | Role of a team member: (ORGANIZATION_ROLE_OWNER , ORGANIZATION_ROLE_MEMBER , ORGANIZATION_ROLE_COLLABORATOR ) | string | true |
Parameter | Description | Type |
---|---|---|
member.userId | User ID of the member | string |
members.role | New role of the member (ORGANIZATION_ROLE_OWNER , ORGANIZATION_ROLE_MEMBER , ORGANIZATION_ROLE_COLLABORATOR ) | string |
member.memberSince | Time since member is part of organization | string (timestamp in ISO 8601 format) |
member.avatarUrl | Avatar URL of member | string |
member.fullName | Full name of member | string |
member.email | Email ID of member |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | Organization ID | string | true |
userId | User ID of organization member being removed | string | true |
This is only available in Gitpod Enterprise.
Parameter | Description | Type | Required |
---|---|---|---|
organization_id | The ID of the organization | string | true |
from | The starting time range for the request (timestamp) | string (timestamp in ISO 8601 format) | false |
to | The ending time range for the request (timestamp) | string (timestamp in ISO 8601 format) | false |
actor_id | The ID of the user performing the action | string | false |
action | The action performed | string | false |
pagination | Pagination options for the request | object | false |
Parameter | Description | Type |
---|---|---|
pagination | Pagination details for the response | object |
audit_logs | List of audit logs that matched the query | array |
audit_logs[0].id | The unique identifier of the audit log | string |
audit_logs[0].timestamp | The time when the audit log was created | string (timestamp in ISO 8601 format) |
audit_logs[0].action | The action that was performed | string |
audit_logs[0].organization_id | The ID of the organization | string |
audit_logs[0].actor_id | The ID of the user that performed the action | string |
audit_logs[0].args | A serialized JSON array of arguments passed | string |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | The ID of the organization | string | true |
cloneUrl | The URL of the repository to import | string | true |
name | The display name of the configuration | string | false |
Parameter | Description | Type |
---|---|---|
configuration | The created configuration | object |
Parameter | Description | Type | Required |
---|---|---|---|
configurationId | The ID of the configuration | string | true |
Parameter | Description | Type |
---|---|---|
configuration | The retrieved configuration | object |
configuration.id | The ID of the configuration | string |
configuration.organizationId | The ID of the organization | string |
configuration.name | The display name of the configuration | string |
configuration.cloneUrl | The clone URL of the repository | string |
configuration.creationTime | The time when the configuration was created | string (timestamp in ISO 8601 format) |
configuration.prebuildSettings | The prebuild settings for the configuration | object |
configuration.workspaceSettings | The workspace settings for the configuration | object |
Parameter | Description | Type | Required |
---|---|---|---|
organizationId | The ID of an organization | string | true |
pagination | Pagination details for the request | object | false |
pagination.token | The next token for pagination (value of nextToken from the previous response) | string | false |
sort | Sorting details for the request | array | false |
sort[0].field | The field to sort by (either name or creationTime ) | string | true |
sort[0].order | The order to sort by (either SORT_ORDER_ASC or SORT_ORDER_DESC ) | string | true |
Parameter | Description | Type |
---|---|---|
configurations | A list of configurations | array |
configurations[0].id | The ID of a configuration | string |
configurations[0].organizationId | The ID of an organization | string |
configurations[0].name | The display name of a configuration | string |
configurations[0].cloneUrl | The clone URL of a repository | string |
configurations[0].creationTime | The time when a configuration was created | string (timestamp in ISO 8601 format) |
configurations[0].prebuildSettings | The prebuild settings for a configuration | object |
configurations[0].workspaceSettings | The workspace settings for a configuration | object |
pagination | Pagination details for the response | object |
pagination.nextToken | The next token for pagination | string |
Parameter | Description | Type | Required |
---|---|---|---|
configurationId | The ID of a configuration | string | true |
name | The display name of a configuration | string | false |
prebuildSettings | The prebuild settings for a configuration | object | false |
workspaceSettings | The workspace settings for a configuration | object | false |
Parameter | Description | Type |
---|---|---|
configuration | The updated configuration | object |
configuration.id | The ID of the updated configuration | string |
configuration.organizationId | The ID of the organization the configuration belongs to | string |
configuration.name | The display name of the updated configuration | string |
configuration.cloneUrl | The clone URL of the repository the configuration belongs to | string |
configuration.creationTime | The time when the configuration was created | string (timestamp in ISO 8601 format) |
configuration.prebuildSettings | The prebuild settings for the configuration | object |
configuration.workspaceSettings | The workspace settings for the configuration | object |
Parameter | Description | Type | Required |
---|---|---|---|
configurationId | The ID of a configuration | string | true |
Parameter | Description | Type | Required |
---|---|---|---|
configurationId | The ID of a configuration | string | true |
name | The name of an environment variable | string | true |
value | The value of an environment variable | string | true |
admission | The “visibility” of an environment variable. Either ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE (default) or ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD | string | false |
Parameter | Description | Type |
---|---|---|
environmentVariable | The created environment variable | object |
environmentVariable.id | The ID of the created environment variable | string |
environmentVariable.name | The name of the created environment variable | string |
environmentVariable.configurationId | The ID of the configuration the environment variable belongs to | string |
environmentVariable.admission | The “visibility” of the created environment variable. Either ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE or ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD | string |
Parameter | Description | Type | Required |
---|---|---|---|
configurationId | The ID of a configuration | string | true |
Parameter | Description | Type |
---|---|---|
environmentVariables | A list of environment variables | array |
environmentVariables[0].id | The ID of an environment variable | string |
environmentVariables[0].name | The name of an environment variable | string |
environmentVariables[0].configurationId | The ID of a configuration | string |
environmentVariables[0].admission | The “visibility” of an environment variable. Either ENVIRONMENT_VARIABLE_ADMISSION_EVERYWHERE or ENVIRONMENT_VARIABLE_ADMISSION_PREBUILD | string |
Parameter | Description | Type | Required |
---|---|---|---|
environment_variable_id | The ID of an environment variable | string | true |