Context Sources
Retrieve a source by ID
Changed onRetrieve 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 URLhttps://api.jasper.ai
- URLhttps://api.jasper.ai/v1/context-sources/{sourceId}
- Auth
- API key in header X-API-Key
- or OAuth 2Authorization code: https://api.jasper.ai/oauth2/authorizeToken URL: https://api.jasper.ai/oauth2/token scopes: user
Path parameters
sourceIdstring required
Example:csc_2ee766eaa4ef48e59da1d9602bfecf2d
The source's unique ID
Response
Source details
Example response
{
"requestId": "8393f82b3f6a4f6e8a405777b9305254",
"resource": "knowledge",
"data": {
"id": "csc_2ee766eaa4ef48e59da1d9602bfecf2d",
"name": "widget-front.png",
"type": "FILE",
"value": "https://example.com/product"
}
}Changes
- info
endpoint added
- info