---
title: "List eligible trigger spaces"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List eligible trigger spaces

Path: CloudRaker Workspace API › Workspace Triggers

`GET /triggers/options`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `runAsUserId` (`getTriggerOptions.query.runAsUserId`; string, required)
  - minLength 1; maxLength 128

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/triggers/options?runAsUserId=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/triggers/options?runAsUserId=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/triggers/options?runAsUserId=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Trigger options.

#### Example

```json
{
  "data": {
    "emailDomain": "string",
    "spaces": [
      {
        "id": "string",
        "title": "string"
      }
    ]
  }
}
```

- `data` (`getTriggerOptions.response.200.data`; object, required)
  - `emailDomain` (`getTriggerOptions.response.200.data.emailDomain`; string, required)
  - `spaces` (`getTriggerOptions.response.200.data.spaces`; array<object>, required)
    - `id` (`getTriggerOptions.response.200.data.spaces.id`; string, required)
    - `title` (`getTriggerOptions.response.200.data.spaces.title`; string, required)

### 400

`validation_failed`: a request parameter or body field is invalid.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getTriggerOptions.response.400.error`; string, required) — The sentence a human reads.
- `error_code` (`getTriggerOptions.response.400.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getTriggerOptions.response.400.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getTriggerOptions.response.400.issues.path`; string, required)
  - `code` (`getTriggerOptions.response.400.issues.code`; string, required)
  - `message` (`getTriggerOptions.response.400.issues.message`; string, required)

### 403

`run_as_inactive` — the executing member is not active in this organization.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getTriggerOptions.response.403.error`; string, required) — The sentence a human reads.
- `error_code` (`getTriggerOptions.response.403.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getTriggerOptions.response.403.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getTriggerOptions.response.403.issues.path`; string, required)
  - `code` (`getTriggerOptions.response.403.issues.code`; string, required)
  - `message` (`getTriggerOptions.response.403.issues.message`; string, required)

### 503

`trigger_configuration_unavailable` — trigger intake is not configured yet.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getTriggerOptions.response.503.error`; string, required) — The sentence a human reads.
- `error_code` (`getTriggerOptions.response.503.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getTriggerOptions.response.503.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getTriggerOptions.response.503.issues.path`; string, required)
  - `code` (`getTriggerOptions.response.503.issues.code`; string, required)
  - `message` (`getTriggerOptions.response.503.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-triggers/get-trigger-options/index.md
