---
sidebar:
  hidden: true
title: roboto.domain.platform_events.events
---
## Module Contents

### CLOUDEVENTS_SPECVERSION

```python
roboto.domain.platform_events.events.CLOUDEVENTS_SPECVERSION = '1.0'
```

`from roboto.domain.platform_events import CLOUDEVENTS_SPECVERSION`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L22-L22)

CloudEvents specification version that the CloudEvents form of a platform event follows.

That form is what `PlatformEvent.to_cloudevent` produces.

### CLOUDEVENTS_TYPE_PREFIX

```python
roboto.domain.platform_events.events.CLOUDEVENTS_TYPE_PREFIX = 'ai.roboto.'
```

`from roboto.domain.platform_events import CLOUDEVENTS_TYPE_PREFIX`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L28-L28)

Prefix of the CloudEvents `type` attribute, in the reverse-DNS form CloudEvents recommends.

It appears only in what `PlatformEvent.to_cloudevent` returns. Trigger subscriptions, conditions, and templates name an event type by its bare `PlatformEventType` value, such as `file.uploaded`.

### DatasetCreatedPayload

```python
class roboto.domain.platform_events.events.DatasetCreatedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import DatasetCreatedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L230-L239)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.DatasetCreated` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetCreatedPayload.dataset_id** (`str`): ID of the created dataset.
- **DatasetCreatedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### DatasetMetadataUpdatedPayload

```python
class roboto.domain.platform_events.events.DatasetMetadataUpdatedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import DatasetMetadataUpdatedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L215-L227)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.DatasetMetadataUpdated` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetMetadataUpdatedPayload.changeset** (`roboto.updates.MetadataChangeset`): Change made to the dataset's metadata and tags, which conditions read as the `changed` and `tag` roots.
- **DatasetMetadataUpdatedPayload.dataset_id** (`str`): ID of the dataset whose metadata or tags changed.
- **DatasetMetadataUpdatedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### DatasetTagAddedPayload

```python
class roboto.domain.platform_events.events.DatasetTagAddedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import DatasetTagAddedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L242-L254)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.DatasetTagAdded` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **DatasetTagAddedPayload.dataset_id** (`str`): ID of the tagged dataset.
- **DatasetTagAddedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **DatasetTagAddedPayload.tags_added** (`list[str]`): Tags the change added to the dataset, which conditions read as the `tag` root.

### EventCreatedPayload

```python
class roboto.domain.platform_events.events.EventCreatedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import EventCreatedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L303-L312)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.EventCreated` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EventCreatedPayload.event_id** (`str`): ID of the created event ([`Event`](/docs/reference/python-sdk/roboto/domain/events/event#roboto.domain.events.event.Event)), beginning with `ev_`.
- **EventCreatedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### FileIngestedPayload

```python
class roboto.domain.platform_events.events.FileIngestedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import FileIngestedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L165-L187)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.FileIngested` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileIngestedPayload.dataset_id** (`str`): ID of the dataset containing the ingested file.

- **FileIngestedPayload.file_id** (`str`): ID of the ingested file.

- **FileIngestedPayload.file_version** (`int | None`) = `None`: Version of the file when Roboto emitted the event, or `None` on events recorded before Roboto stored it.

  A newer version may exist by the time a trigger evaluates the event, because changing the file's metadata or tags advances its version just as overwriting its contents does.

- **FileIngestedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **FileIngestedPayload.transaction_id** (`str | None`) = `None`: ID of the upload transaction the file arrived in, or `None` if it is not known.

### FileMetadataUpdatedPayload

```python
class roboto.domain.platform_events.events.FileMetadataUpdatedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import FileMetadataUpdatedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L190-L212)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.FileMetadataUpdated` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileMetadataUpdatedPayload.changeset** (`roboto.updates.MetadataChangeset`): Change made to the file's metadata and tags, which conditions read as the `changed` and `tag` roots.

- **FileMetadataUpdatedPayload.dataset_id** (`str`): ID of the dataset containing the file.

- **FileMetadataUpdatedPayload.file_id** (`str`): ID of the file whose metadata or tags changed.

- **FileMetadataUpdatedPayload.file_version** (`int | None`) = `None`: Version of the file when Roboto emitted the event, or `None` on events recorded before Roboto stored it.

  A newer version may exist by the time a trigger evaluates the event, because changing the file's metadata or tags advances its version just as overwriting its contents does.

- **FileMetadataUpdatedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

### FileUploadedPayload

```python
class roboto.domain.platform_events.events.FileUploadedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import FileUploadedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L125-L147)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.FileUploaded` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **FileUploadedPayload.dataset_id** (`str`): ID of the dataset the file was uploaded to.

- **FileUploadedPayload.file_id** (`str`): ID of the uploaded file.

- **FileUploadedPayload.file_version** (`int | None`) = `None`: Version of the file when Roboto emitted the event, or `None` on events recorded before Roboto stored it.

  A newer version may exist by the time a trigger evaluates the event, because changing the file's metadata or tags advances its version just as overwriting its contents does.

- **FileUploadedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **FileUploadedPayload.transaction_id** (`str | None`) = `None`: ID of the upload transaction the file arrived in, or `None` if the upload used none.

### InvocationCompletedPayload

```python
class roboto.domain.platform_events.events.InvocationCompletedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import InvocationCompletedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L257-L275)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.InvocationCompleted` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationCompletedPayload.action_name** (`str`): Name of the invoked action, unique within the organization that owns it.
- **InvocationCompletedPayload.action_owner_id** (`str`): ID of the organization that owns the invoked action.
- **InvocationCompletedPayload.invocation_id** (`str`): ID of the completed invocation.
- **InvocationCompletedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **InvocationCompletedPayload.status** (`roboto.domain.actions.invocation_record.InvocationStatus`): Status the invocation ended in, always [`Completed`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Completed).

### InvocationFailedPayload

```python
class roboto.domain.platform_events.events.InvocationFailedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import InvocationFailedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L278-L300)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.InvocationFailed` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InvocationFailedPayload.action_name** (`str`): Name of the invoked action, unique within the organization that owns it.

- **InvocationFailedPayload.action_owner_id** (`str`): ID of the organization that owns the invoked action.

- **InvocationFailedPayload.invocation_id** (`str`): ID of the failed invocation.

- **InvocationFailedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **InvocationFailedPayload.status** (`roboto.domain.actions.invocation_record.InvocationStatus`): Status the invocation ended in, one of the two failure statuses.

  Either [`Failed`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Failed) or [`Deadly`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Deadly).

### PlatformEvent

```python
class roboto.domain.platform_events.events.PlatformEvent(/, **data: Any)
```

`from roboto.domain.platform_events import PlatformEvent`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L404-L527)

Bases: `pydantic.BaseModel`

One occurrence of something that happened in an organization, as a trigger receives it.

`id`, `source`, `type`, `time` and `subject` are the CloudEvents context attributes, and `to_cloudevent` returns the occurrence in that specification's structured JSON form. `data` carries entity IDs and facts fixed at `time`, such as a metadata change or a terminal status, but never an entity's current state. Conditions and target templates read the current state when the trigger evaluates the event, through an [`EventNamespace`](/docs/reference/python-sdk/roboto/domain/triggers/namespace#roboto.domain.triggers.namespace.EventNamespace).

Validation raises `pydantic.ValidationError` when `data` is not the payload model registered for `type`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **PlatformEvent.data** (`PlatformEventPayload`): Payload of the event, whose model depends on `type`.

  The model is the one [`DEFAULT_PLATFORM_EVENT_CATALOG`](/docs/reference/python-sdk/roboto/domain/platform_events/catalog#roboto.domain.platform_events.catalog.DEFAULT_PLATFORM_EVENT_CATALOG) registers for `type`.

- **PlatformEvent.id** (`str`): ID of the event, unique within `source`, such as `evt:iv_12345:completed`.

  For most event types, Roboto builds the ID from the entity and the occurrence, so delivering one occurrence twice gives the same ID.

- **PlatformEvent.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **PlatformEvent.org_id** (`str`): ID of the organization the event happened in, whose triggers receive it.

- **PlatformEvent.schema_version** (`int`) = `1`: Version of the schema of this event and its payload, which increases only with a change that breaks readers.

- **PlatformEvent.source** (`str`): URI of the organization and deployment of Roboto the event happened in.

  `platform_event_source` builds it.

- **PlatformEvent.time** (`datetime.datetime`): Time the event occurred.

- **PlatformEvent.type** (`PlatformEventType`): Kind of event, which determines the payload model of `data`.

**Properties**

- **PlatformEvent.subject** (`str`): Entity the event is about, as a `roboto://` URI such as `roboto://file/fl_12345`.

  Derived from `data` rather than stored, so it always agrees with the payload. It serializes like a declared field.

- **PlatformEvent.subject_uri** (`roboto.uri.RobotoUri`): Entity the event is about, as a parsed [`RobotoUri`](/docs/reference/python-sdk/roboto/uri#roboto.uri.RobotoUri).

#### PlatformEvent.to_cloudevent()

```python
def to_cloudevent() -> dict[str, Any]
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L470-L490)

Return this event as CloudEvents 1.0 structured JSON (`application/cloudevents+json`).

The context attributes sit at the top level under their specification names. `type` carries the `CLOUDEVENTS_TYPE_PREFIX` prefix, and `datacontenttype` is always `application/json`. `org_id` and `schema_version` appear as the extension attributes `orgid` and `schemaversion`, because CloudEvents extension names must be lowercase letters and digits. The returned dict is JSON-serializable as it is.

**Returns**

- `dict[str, Any]`

### PlatformEventPayload

```python
roboto.domain.platform_events.events.PlatformEventPayload
```

`from roboto.domain.platform_events import PlatformEventPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L360-L374)

Payload of a platform event of any kind: one of the payload models, one per platform event type.

The models are `FileUploadedPayload`, `UploadCompletedPayload`, `FileIngestedPayload`, `FileMetadataUpdatedPayload`, `DatasetMetadataUpdatedPayload`, `DatasetCreatedPayload`, `DatasetTagAddedPayload`, `InvocationCompletedPayload`, `InvocationFailedPayload`, `SessionIngestedPayload`, `EventCreatedPayload`, `SessionEventCreatedPayload`, and `ScheduleFiredPayload`.

The `type` of a `PlatformEvent` determines which one its `data` must be.

### PlatformEventType

```python
class roboto.domain.platform_events.events.PlatformEventType
```

`from roboto.domain.platform_events import PlatformEventType`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L36-L122)

Bases: `roboto.compat.StrEnum`

Kind of platform event: something Roboto reports happening in an organization, such as a file being ingested.

Triggers can subscribe to every kind except `ScheduleFired`. Every member has a [`PlatformEventDescriptor`](/docs/reference/python-sdk/roboto/domain/platform_events/catalog#roboto.domain.platform_events.catalog.PlatformEventDescriptor) in [`DEFAULT_PLATFORM_EVENT_CATALOG`](/docs/reference/python-sdk/roboto/domain/platform_events/catalog#roboto.domain.platform_events.catalog.DEFAULT_PLATFORM_EVENT_CATALOG) that gives its payload model, the names (namespace roots, such as `dataset`) a trigger's conditions and target templates can read from it, and the [`OncePer`](/docs/reference/python-sdk/roboto/domain/platform_events/once_per#roboto.domain.platform_events.once_per.OncePer) values it supports.

**Attributes**

- **PlatformEventType.DatasetCreated** = `'dataset.created'`: A dataset was created.

- **PlatformEventType.DatasetMetadataUpdated** = `'dataset.metadata_updated'`: A dataset's metadata or tags changed.

- **PlatformEventType.DatasetTagAdded** = `'dataset.tag_added'`: One or more tags were added to a dataset.

- **PlatformEventType.EventCreated** = `'event.created'`: An event ([`Event`](/docs/reference/python-sdk/roboto/domain/events/event#roboto.domain.events.event.Event)) was created on a dataset, or on its files or topics.

  An event is an annotation over a span of time. Creating an event on a session emits `SessionEventCreated` instead.

- **PlatformEventType.FileIngested** = `'file.ingested'`: A file finished ingestion, and its topics are available.

- **PlatformEventType.FileMetadataUpdated** = `'file.metadata_updated'`: A file's metadata or tags changed.

- **PlatformEventType.FileUploaded** = `'file.uploaded'`: A file finished uploading to a dataset.

- **PlatformEventType.InvocationCompleted** = `'invocation.completed'`: An invocation of an action ended in the [`Completed`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Completed) status.

- **PlatformEventType.InvocationFailed** = `'invocation.failed'`: An invocation of an action ended in failure.

  Its status is [`Failed`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Failed) or [`Deadly`](/docs/reference/python-sdk/roboto/domain/actions/invocation_record#roboto.domain.actions.invocation_record.InvocationStatus.Deadly).

- **PlatformEventType.ScheduleFired** = `'schedule.fired'`: A trigger's schedule reached one of its scheduled minutes.

  Triggers cannot subscribe to it. A trigger runs on a schedule by declaring a [`Schedule`](/docs/reference/python-sdk/roboto/domain/triggers/sources#roboto.domain.triggers.sources.Schedule) source, and Roboto delivers this occurrence to that trigger alone.

- **PlatformEventType.SessionEventCreated** = `'session_event.created'`: An event (`roboto.experimental.events.Event`) was created on a session.

- **PlatformEventType.SessionIngested** = `'session.ingested'`: Every ingestable file in a complete session is ingested.

  Roboto emits it again, as a new occurrence, each time the session's ingestable files change and are all ingested again.

- **PlatformEventType.UploadCompleted** = `'dataset.upload_completed'`: An upload transaction to a dataset completed, with all of its files uploaded.

**Properties**

- **PlatformEventType.cloudevents_type** (`str`): CloudEvents `type` attribute for this event type, such as `ai.roboto.file.uploaded`.

#### PlatformEventType.from_cloudevents_type()

```python
@classmethod
def from_cloudevents_type(value: str) -> PlatformEventType
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L52-L67)

Return the event type that a CloudEvents `type` attribute names.

Inverse of `cloudevents_type`.

**Parameters**

- **value** (`str`): CloudEvents `type` attribute, such as `ai.roboto.file.uploaded`.

**Raises**

- `ValueError`: `value` lacks the `ai.roboto.` prefix, or names no platform event type.

**Returns**

- `PlatformEventType`

### ScheduleFiredPayload

```python
class roboto.domain.platform_events.events.ScheduleFiredPayload(/, **data: Any)
```

`from roboto.domain.platform_events import ScheduleFiredPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L345-L357)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.ScheduleFired` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ScheduleFiredPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **ScheduleFiredPayload.scheduled_for** (`datetime.datetime`): Scheduled minute, in UTC, that this occurrence is for.
- **ScheduleFiredPayload.trigger_id** (`str`): ID of the trigger whose schedule reached the minute.

### SessionEventCreatedPayload

```python
class roboto.domain.platform_events.events.SessionEventCreatedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import SessionEventCreatedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L315-L327)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.SessionEventCreated` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionEventCreatedPayload.event_id** (`str`): ID of the created event (`roboto.experimental.events.Event`), beginning with `evt_`.
- **SessionEventCreatedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **SessionEventCreatedPayload.session_id** (`str`): ID of the session the event belongs to.

### SessionIngestedPayload

```python
class roboto.domain.platform_events.events.SessionIngestedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import SessionIngestedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L330-L342)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.SessionIngested` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SessionIngestedPayload.ingestion_number** (`int`): Number of times Roboto has emitted this event for the session, counting this one, so the first is 1.
- **SessionIngestedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **SessionIngestedPayload.session_id** (`str`): ID of the session whose ingestable files are all ingested.

### UploadCompletedPayload

```python
class roboto.domain.platform_events.events.UploadCompletedPayload(/, **data: Any)
```

`from roboto.domain.platform_events import UploadCompletedPayload`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L150-L162)

Bases: `pydantic.BaseModel`

Payload of a `PlatformEventType.UploadCompleted` platform event.

Carried in `PlatformEvent.data`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UploadCompletedPayload.dataset_id** (`str`): ID of the dataset the upload went to.
- **UploadCompletedPayload.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **UploadCompletedPayload.transaction_id** (`str`): ID of the completed upload transaction.

### platform_event_source()

```python
def roboto.domain.platform_events.events.platform_event_source(
    api_domain: Optional[str],
    org_id: str,
) -> str
```

`from roboto.domain.platform_events import platform_event_source`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/platform_events/events.py#L386-L401)

Build the CloudEvents `source` of one organization's platform events on one deployment of Roboto.

Roboto calls this when it emits a platform event. Each deployment has its own API domain, so an event's `PlatformEvent.source` and `PlatformEvent.id` together identify one occurrence.

**Parameters**

- **api_domain** (`Optional[str]`): Public API host of the deployment that emits the events, such as `api.roboto.ai`. `None` or an empty string returns the relative reference `/v1/orgs/{org_id}`.
- **org_id** (`str`): ID of the organization whose events carry this source.

**Returns**

- `str`: The organization's API resource, `https://{api_domain}/v1/orgs/{org_id}`.
