Jasper Context Sources API

The Context Sources API from Jasper — 2 operation(s) for context sources.

Operations 2

POST /v1/context-sources Create a source #
GET /v1/context-sources/{sourceId} Retrieve a source by ID #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/jasper-da-com:jasper-da-com-context-sources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

jasper-da-com-context-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Jasper Context Sources API
  description: Jasper API
  version: '1.0'
  contact: {}
servers:
- url: https://api.jasper.ai
tags:
- name: Context Sources
  description: ''
paths:
  /v1/context-sources:
    post:
      description: 'Create a source that can be attached to a `CONTEXT_SOURCE_LIST` attribute on a Product (for example the universal `Images` attribute).


        Submit as `multipart/form-data`. The `type` form field discriminates the payload carried on `value`: for FILE, send the file bytes as the `value` multipart part; for TEXT, URL, and KNOWLEDGE, send the payload as the `value` form field.


        Take the `id` from the response and include it in the attribute value on a subsequent `POST /v1/products` or `PATCH /v1/products/{productId}` call. Attributes currently accept `FILE` sources only, and may narrow that further — the `Images` attribute takes PNG and JPEG — so a source created here is rejected at attach time if it does not qualify.'
      operationId: createContextSource
      parameters: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateContextSourceDto'
      responses:
        '201':
          description: Source created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateContextSourceResponseDto'
        '400':
          description: Bad request. Missing required fields or unsupported file type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextSource400Error'
        '401':
          description: Unauthorized access to the workspace.
        '403':
          description: Product IQ is not enabled for this workspace.
        '500':
          description: Internal server error. Unable to create source.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextSource500Error'
      security:
      - X-API-Key: []
      - oauth2:
        - user
      summary: Create a source
      tags:
      - Context Sources
  /v1/context-sources/{sourceId}:
    get:
      description: 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.
      operationId: getContextSourceById
      parameters:
      - name: sourceId
        required: true
        in: path
        description: The source's unique ID
        schema:
          example: csc_2ee766eaa4ef48e59da1d9602bfecf2d
          type: string
      responses:
        '200':
          description: Source details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetContextSourceResponseDto'
        '401':
          description: Unauthorized access to the workspace.
        '403':
          description: Product IQ is not enabled for this workspace.
        '404':
          description: Not found. The source does not exist in your workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextSource404Error'
        '500':
          description: Internal server error. Unable to get source.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContextSource500Error'
      security:
      - X-API-Key: []
      - oauth2:
        - user
      summary: Retrieve a source by ID
      tags:
      - Context Sources
components:
  schemas:
    GetContextSourceResponseDto:
      type: object
      properties:
        requestId:
          type: string
          example: 8393f82b3f6a4f6e8a405777b9305254
        resource:
          type: string
          example: knowledge
        data:
          $ref: '#/components/schemas/ContextSourceResource'
      required:
      - requestId
      - resource
      - data
    ContextSource500Error:
      type: object
      properties:
        statusCode:
          type: number
          example: 500
        message:
          type: string
          example: Couldn't create source
        error:
          type: string
          example: Internal Server Error
      required:
      - statusCode
      - message
      - error
    ContextSource400Error:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: 'Unsupported context source file type: .exe'
        error:
          type: string
          example: Bad Request
      required:
      - statusCode
      - message
      - error
    CreateContextSourceResponseDto:
      type: object
      properties:
        requestId:
          type: string
          example: 8393f82b3f6a4f6e8a405777b9305254
        resource:
          type: string
          example: knowledge
        data:
          $ref: '#/components/schemas/ContextSourceResource'
      required:
      - requestId
      - resource
      - data
    ContextSource404Error:
      type: object
      properties:
        statusCode:
          type: number
          example: 404
        message:
          type: string
          example: 'Context source not found: csc_2ee766eaa4ef48e59da1d9602bfecf2d'
        error:
          type: string
          example: Not Found
      required:
      - statusCode
      - message
      - error
    CreateContextSourceDto:
      type: object
      properties:
        type:
          type: string
          enum:
          - FILE
          - TEXT
          - URL
          - KNOWLEDGE
          description: 'The kind of source being created. In every case the payload is carried on the `value` multipart part: FILE sends binary file bytes, the others send a string.'
          example: FILE
        value:
          oneOf:
          - title: binary
            type: string
            format: binary
          - title: string
            type: string
          description: 'The source payload. Its shape depends on `type`: for FILE, the binary file bytes (multipart file part; pick `binary` in the docs UI); for TEXT, a raw text string; for URL, a publicly reachable http(s) URL; for KNOWLEDGE, a Knowledge item ID (form field; pick `string`).'
          example: A short product description.
      required:
      - type
      - value
    ContextSourceResource:
      type: object
      properties:
        id:
          type: string
          description: 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.
          example: csc_2ee766eaa4ef48e59da1d9602bfecf2d
        name:
          type: string
          description: '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.'
          example: widget-front.png
        type:
          type: string
          description: The source type. On create this always matches the requested `type`.
          enum:
          - FILE
          - TEXT
          - URL
          - KNOWLEDGE
          example: FILE
        value:
          type: string
          description: 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.
          example: https://example.com/product
      required:
      - id
      - name
      - type
  securitySchemes:
    X-API-Key:
      type: apiKey
      in: header
      name: X-API-Key
      description: Workspace authentication using API key tokens in the X-API-Key header.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.jasper.ai/oauth2/authorize
          tokenUrl: https://api.jasper.ai/oauth2/token
          refreshUrl: https://api.jasper.ai/oauth2/token
          scopes:
            user:read: Read user information
            user: Read and write user information
      description: User-level authentication using OAuth bearer tokens in the Authorization header.
x-provenance:
  method: searched
  source: https://developers.jasper.ai/reference
  harvested: '2026-10-23'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://developers.jasper.ai/reference/cleanup.md
  - https://developers.jasper.ai/reference/command-2.md
  - https://developers.jasper.ai/reference/completetemplate-1.md
  - https://developers.jasper.ai/reference/createanalysis.md
  - https://developers.jasper.ai/reference/createattachment.md
  - https://developers.jasper.ai/reference/createcontextsource.md
  - https://developers.jasper.ai/reference/createdocument.md
  - https://developers.jasper.ai/reference/createproduct.md
  - https://developers.jasper.ai/reference/createproject.md
  - https://developers.jasper.ai/reference/createtone.md
  - https://developers.jasper.ai/reference/decompose-1.md
  - https://developers.jasper.ai/reference/deleteanalysis.md
  - https://developers.jasper.ai/reference/deletedocumentbyid.md
  - https://developers.jasper.ai/reference/deleteknowledgedocument.md
  - https://developers.jasper.ai/reference/deleteproduct.md
  - https://developers.jasper.ai/reference/deleteproject.md
  - https://developers.jasper.ai/reference/deletetone.md
  - https://developers.jasper.ai/reference/getallaudiences.md
  - https://developers.jasper.ai/reference/getalldocuments.md
  - https://developers.jasper.ai/reference/getallproducts.md
  - https://developers.jasper.ai/reference/getalltemplates-1.md
  - https://developers.jasper.ai/reference/getalltones.md
  - https://developers.jasper.ai/reference/getallusers.md
  - https://developers.jasper.ai/reference/getanalysis.md
  - https://developers.jasper.ai/reference/getaudiencebyid.md
  - https://developers.jasper.ai/reference/getcontextsourcebyid.md
  - https://developers.jasper.ai/reference/getdocumentbyid.md
  - https://developers.jasper.ai/reference/getknowledgedocument.md
  - https://developers.jasper.ai/reference/getknowledgedocuments.md
  - https://developers.jasper.ai/reference/getproductattributes.md
  - https://developers.jasper.ai/reference/getproductbyid.md
  - https://developers.jasper.ai/reference/getprojectbyid.md
  - https://developers.jasper.ai/reference/getprojects.md
  - https://developers.jasper.ai/reference/getrun.md
  - https://developers.jasper.ai/reference/getrunclaims.md
  - https://developers.jasper.ai/reference/getrunrecommendations.md
  - https://developers.jasper.ai/reference/getstyle.md
  - https://developers.jasper.ai/reference/getstylebyid.md
  - https://developers.jasper.ai/reference/gettaskbyid.md
  - https://developers.jasper.ai/reference/gettemplate-1.md
  - https://developers.jasper.ai/reference/gettone.md
  - https://developers.jasper.ai/reference/gettrends.md
  - https://developers.jasper.ai/reference/getuser.md
  - https://developers.jasper.ai/reference/listanalyses.md
  - https://developers.jasper.ai/reference/listanalysissummaries.md
  - https://developers.jasper.ai/reference/listruns.md
  - https://developers.jasper.ai/reference/listtasks.md
  - https://developers.jasper.ai/reference/packshotcompositing.md
  - https://developers.jasper.ai/reference/removebackground.md
  - https://developers.jasper.ai/reference/removetext.md
  - https://developers.jasper.ai/reference/renderimagetemplate.md
  - https://developers.jasper.ai/reference/replacebackground.md
  - https://developers.jasper.ai/reference/runtask.md
  - https://developers.jasper.ai/reference/runtaskstream.md
  - https://developers.jasper.ai/reference/searchknowledge.md
  - https://developers.jasper.ai/reference/uncrop.md
  - https://developers.jasper.ai/reference/updateanalysis.md
  - https://developers.jasper.ai/reference/updatedocument.md
  - https://developers.jasper.ai/reference/updateknowledgedocument.md
  - https://developers.jasper.ai/reference/updateproduct.md
  - https://developers.jasper.ai/reference/updateproject.md
  - https://developers.jasper.ai/reference/updatetone.md
  - https://developers.jasper.ai/reference/uploadknowledgedocument.md
  - https://developers.jasper.ai/reference/upscale.md
  - https://developers.jasper.ai/reference/usage-1.md
  merge:
    pages: 65
    deduped: 240
    conflicts_kept_first: 0