Workspaces
Retrieve all workspaces.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Search workspaces by name
Maximum number of items to return per page
1 <= value <= 10020Cursor for pagination - omit for first page
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/workspaces"{ "items": [ { "id": "ws_It13CUaGEhLLAB87simX0", "name": "my-workspace", "logoUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}Retrieve a workspace by ID.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0"{ "id": "ws_It13CUaGEhLLAB87simX0", "name": "my-workspace", "logoUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z"}Update a workspace.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "ws_It13CUaGEhLLAB87simX0", "name": "my-workspace", "logoUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z"}Delete a workspace. The workspace must have no projects.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0"List all members of a workspace.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/members"{ "items": [ { "userId": "string", "email": "string", "name": "string", "image": "string", "role": "workspace.member", "joinedAt": "2019-08-24T14:15:22Z" } ]}Add a member to a workspace by email. The user must already have an account.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/members" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "role": "workspace.member" }'{ "userId": "string", "email": "string", "name": "string", "image": "string", "role": "workspace.member", "joinedAt": "2019-08-24T14:15:22Z"}Update a workspace member's role.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/members/string" \ -H "Content-Type: application/json" \ -d '{ "role": "workspace.member" }'{ "userId": "string", "email": "string", "name": "string", "image": "string", "role": "workspace.member", "joinedAt": "2019-08-24T14:15:22Z"}Remove a member from a workspace.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/members/string"Read the ai-agent settings for a workspace. Returns defaults (enabled: true, debugPermissionMode: auto) when the workspace has never customized them.
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Response Body
application/json
application/json
curl -X GET "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/settings"{ "workspaceId": "ws_It13CUaGEhLLAB87simX0", "enabled": true, "debugPermissionMode": "auto", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Update the ai-agent settings for a workspace. Supports debugPermissionMode (ask requires human approval on every ai-agent debug command, auto runs them without asking) and enabled (false turns the ai-agent off so incoming triggers are rejected before any session runs).
Authorization
apiKey API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Path Parameters
Unique identifier for the workspace.
ws_[0-9a-zA-Z]{24}$Query Parameters
Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
^(?!ws[-_])[a-z0-9](-?[a-z0-9])*$4 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/v1/workspaces/ws_It13CUaGEhLLAB87simX0/settings" \ -H "Content-Type: application/json" \ -d '{}'{ "workspaceId": "ws_It13CUaGEhLLAB87simX0", "enabled": true, "debugPermissionMode": "auto", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}