---
title: "Retrieve a source by ID"
method: GET
path: "/v1/context-sources/{sourceId}"
tags: ["Context Sources"]
---

# Retrieve a source by ID

`GET /v1/context-sources/{sourceId}`

## Request

- Base URL: `https://api.jasper.ai`
- URL: `https://api.jasper.ai/v1/context-sources/{sourceId}`
- Auth: one of:
  - API key in header `X-API-Key`
  - OAuth 2
    - Authorization code: `https://api.jasper.ai/oauth2/authorize`
    - Token URL: `https://api.jasper.ai/oauth2/token` scopes: `user`

Retrieve a single source in your workspace by ID. Products reference sources by ID, so use this to expand one into its name, type, and value.

## Path parameters

- `sourceId` string, required

## Response `200`

Source details

- GetContextSourceResponseDto
  - `requestId` string, required
  - `resource` string, required
  - `data` ContextSourceResource, required
    - `id` string, required: The source ID. Reference this value when setting a `CONTEXT_SOURCE_LIST` attribute on a Product (e.g. `Images`) — note those attributes currently accept `FILE` sources only.
    - `name` string, required: The display name, derived at creation and not settable: the file name for an uploaded file, the URL for a URL, the first few words for text, or the item name for Knowledge.
    - `type` 'FILE' | 'TEXT' | 'URL' | 'KNOWLEDGE', required: The source type. On create this always matches the requested `type`.
    - `value` string: The source URL for `URL` sources, or the wrapped Knowledge item ID for `KNOWLEDGE` sources. Omitted for `FILE` and `TEXT`, which hold their content in storage.

## Other responses

- `401`: Unauthorized access to the workspace.
- `403`: Product IQ is not enabled for this workspace.
- `404`: Not found. The source does not exist in your workspace.
- `500`: Internal server error. Unable to get source.

## Changes

- **2026-11-03** `3d5be7408661`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jasper/apis/jasper-api/changes/v1/context-sources/:sourceId/get.md)

---

[API](https://skmtc.dev/jasper/apis/jasper-api.md) - [All operations](https://skmtc.dev/jasper/apis/jasper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jasper/apis/jasper-api/revisions/3d5be7408661?raw)
