getSourceRef
Fetches an external-source provenance record (SourceRef) by AIP resource name to reveal the connector, stream, external ID/URL, content hash, and fetch time behind a memory.
Instructions
Fetch one external-source provenance record (SourceRef) by AIP resource name sourceRefs/{uid}. A SourceRef records what a memory was derived from — the connector, stream, external id/url, content hash, and fetch time (W3C PROV wasDerivedFrom). Its provenance is SELF-ASSERTED and UNVERIFIED (trustState is always "unverified"): there is no cryptographic attestation of the external claim yet. Use recordSourceRef to create one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | AIP resource name to fetch: sourceRefs/{uid}. The uid is the SourceRef ULID returned by recordSourceRef. | |
| scopes | No | Scopes to read from: project, personal, team. Defaults to project+personal. Unknown values are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | SourceRef ULID identity. | |
| name | Yes | AIP resource name of this SourceRef. | |
| scope | No | Scope this SourceRef lives in: personal, project, or team. | |
| stream | No | Sub-channel within the connector. Omitted when absent. | |
| dedupKey | Yes | Idempotency key for the source_refs projection. | |
| connector | No | Connector that produced the reference, e.g. gmail, slack. Omitted when absent. | |
| fetchTime | Yes | When the source content was fetched (RFC 3339 UTC). | |
| createTime | No | When the SourceRef event was recorded (RFC 3339 UTC). | |
| externalId | No | Source-system opaque identifier for the item. Omitted when absent. | |
| sourceType | Yes | Kind of external source (open taxonomy), e.g. email, slack_message, web_page. | |
| subjectUid | Yes | ULID of the record this source was derived from (PROV wasDerivedFrom). | |
| trustState | Yes | Provenance is self-asserted by the appending device and is NOT cryptographically verified. No principal/signature trust exists for a SourceRef yet (#207). | |
| contentHash | No | Appender-supplied SHA-256 hex of the fetched content. Omitted when absent. | |
| externalUrl | No | Dereferenceable location of the source item. Omitted when absent. | |
| sourceEventUid | Yes | UID of the sourceRefRecorded event that carried this record. |