Context Sources

Retrieve a source by ID

Changed on

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.

get/v1/context-sources/{sourceId}

Request

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

Path parameters

sourceIdstring required
Example:csc_2ee766eaa4ef48e59da1d9602bfecf2d

The source's unique ID

Response

Source details

requestIdstring required
resourcestring required

Example response

{
  "requestId": "8393f82b3f6a4f6e8a405777b9305254",
  "resource": "knowledge",
  "data": {
    "id": "csc_2ee766eaa4ef48e59da1d9602bfecf2d",
    "name": "widget-front.png",
    "type": "FILE",
    "value": "https://example.com/product"
  }
}

Changes