SAP Business Technology Platform Artifact API

Access to artifacts, e.g. datasets and models

GitHub OpenAPI

Operations 4

POST /lm/artifacts Register artifact #
GET /lm/artifacts Get list of artifacts #
GET /lm/artifacts/{artifactId} Get artifact by ID #
GET /lm/artifacts/$count Get number of artifacts #

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/sap-btp:sap-btp-artifact-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

sap-btp-artifact-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sap Btp Artifact API
  version: 2.42.0
  description: 'Operations tagged Artifact across 2 of this provider''s published API definitions: ai-core.yaml, sap-btp-ai-core-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
  description: Production endpoint for SAP AI Core
  variables:
    region:
      enum:
      - prod.eu-central-1.aws
      - prodeuonly.eu-central-1.aws
      - prod.us-east-1.aws
      - prod.ap-northeast-1.aws
      - prod-ap11.ap-southeast-1.aws
      - prod-ap20.australiaeast.azure
      - prod.ap-southeast-2.aws
      - prod-eu20.westeurope.azure
      - prod-ap30.australia-southeast1.gcp
      - prod-in30.asia-south1.gcp
      - prod-sa30.me-central2.gcp
      - prod-us21.eastus.azure
      - prod-eu30.europe-west3.gcp
      - prod-us30.us-central1.gcp
      - prod-br10.sa-east-1.aws
      default: prod.eu-central-1.aws
security:
- Oauth2: []
tags:
- name: Artifact
  description: Access to artifacts, e.g. datasets and models
paths:
  /lm/artifacts:
    parameters:
    - $ref: '#/components/parameters/AiresourceGroupHeader'
    post:
      tags:
      - Artifact
      summary: Register artifact
      description: Register an artifact for use in a configuration, for example a model or a dataset.
      operationId: artifact.create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiArtifactPostData'
      responses:
        '201':
          description: The artifact has been registered successfully
          headers:
            Location:
              description: URL of the registered artifact
              schema:
                $ref: '#/components/schemas/AiUrl'
            Content-Location:
              description: URL of the registered artifact. This header is deprecated. Location header shall be used instead.
              deprecated: true
              schema:
                $ref: '#/components/schemas/AiUrl'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiArtifactCreationResponse'
        '400':
          $ref: '#/components/responses/AiBadRequest'
    get:
      tags:
      - Artifact
      summary: Get list of artifacts
      description: 'Retrieve a list of artifacts that matches the specified filter criteria.

        Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels.

        Use top/skip parameters to paginate the result list.

        Search by substring of artifact name or description, if required.'
      operationId: artifact.query
      parameters:
      - $ref: '#/components/parameters/AiqueryScenarioId'
      - $ref: '#/components/parameters/AiqueryExecutionId'
      - $ref: '#/components/parameters/AiqueryArtifactName'
      - $ref: '#/components/parameters/AiqueryArtifactKind'
      - $ref: '#/components/parameters/AiartifactLabelSelector'
      - $ref: '#/components/parameters/Aitop'
      - $ref: '#/components/parameters/Aiskip'
      - $ref: '#/components/parameters/AiquerySearch'
      - $ref: '#/components/parameters/AiquerySearchCaseInsensitive'
      - $ref: '#/components/parameters/AiqueryArtifactExpand'
      responses:
        '200':
          description: A list of artifacts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiArtifactList'
        '400':
          $ref: '#/components/responses/AiBadRequest'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2
      description: Production endpoint for SAP AI Core
      variables:
        region:
          enum:
          - prod.eu-central-1.aws
          - prodeuonly.eu-central-1.aws
          - prod.us-east-1.aws
          - prod.ap-northeast-1.aws
          - prod-ap11.ap-southeast-1.aws
          - prod-ap20.australiaeast.azure
          - prod.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-ap30.australia-southeast1.gcp
          - prod-in30.asia-south1.gcp
          - prod-sa30.me-central2.gcp
          - prod-us21.eastus.azure
          - prod-eu30.europe-west3.gcp
          - prod-us30.us-central1.gcp
          - prod-br10.sa-east-1.aws
          default: prod.eu-central-1.aws
  /lm/artifacts/{artifactId}:
    parameters:
    - $ref: '#/components/parameters/AiresourceGroupHeader'
    - $ref: '#/components/parameters/AiartifactId'
    - $ref: '#/components/parameters/AiqueryArtifactExpand'
    get:
      tags:
      - Artifact
      summary: Get artifact by ID
      description: Retrieve details for artifact with artifactId.
      operationId: artifact.get
      responses:
        '200':
          description: An artifact
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiArtifact'
        '400':
          $ref: '#/components/responses/AiBadRequest'
        '404':
          $ref: '#/components/responses/AiNotFound'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2
      description: Production endpoint for SAP AI Core
      variables:
        region:
          enum:
          - prod.eu-central-1.aws
          - prodeuonly.eu-central-1.aws
          - prod.us-east-1.aws
          - prod.ap-northeast-1.aws
          - prod-ap11.ap-southeast-1.aws
          - prod-ap20.australiaeast.azure
          - prod.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-ap30.australia-southeast1.gcp
          - prod-in30.asia-south1.gcp
          - prod-sa30.me-central2.gcp
          - prod-us21.eastus.azure
          - prod-eu30.europe-west3.gcp
          - prod-us30.us-central1.gcp
          - prod-br10.sa-east-1.aws
          default: prod.eu-central-1.aws
  /lm/artifacts/$count:
    get:
      tags:
      - Artifact
      summary: Get number of artifacts
      description: 'Retrieve the number of available artifacts that match the specified filter criteria.

        Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels.

        Search by substring of artifact name or description is also possible.'
      operationId: artifact.count
      parameters:
      - $ref: '#/components/parameters/AiresourceGroupHeader'
      - $ref: '#/components/parameters/AiqueryScenarioId'
      - $ref: '#/components/parameters/AiqueryExecutionId'
      - $ref: '#/components/parameters/AiqueryArtifactName'
      - $ref: '#/components/parameters/AiqueryArtifactKind'
      - $ref: '#/components/parameters/AiquerySearch'
      - $ref: '#/components/parameters/AiquerySearchCaseInsensitive'
      - $ref: '#/components/parameters/AiartifactLabelSelector'
      responses:
        '200':
          description: Number of artifacts
          content:
            text/plain:
              schema:
                type: integer
        '400':
          $ref: '#/components/responses/AiBadRequest'
    servers:
    - url: https://api.ai.{region}.ml.hana.ondemand.com/v2
      description: Production endpoint for SAP AI Core
      variables:
        region:
          enum:
          - prod.eu-central-1.aws
          - prodeuonly.eu-central-1.aws
          - prod.us-east-1.aws
          - prod.ap-northeast-1.aws
          - prod-ap11.ap-southeast-1.aws
          - prod-ap20.australiaeast.azure
          - prod.ap-southeast-2.aws
          - prod-eu20.westeurope.azure
          - prod-ap30.australia-southeast1.gcp
          - prod-in30.asia-south1.gcp
          - prod-sa30.me-central2.gcp
          - prod-us21.eastus.azure
          - prod-eu30.europe-west3.gcp
          - prod-us30.us-central1.gcp
          - prod-br10.sa-east-1.aws
          default: prod.eu-central-1.aws
components:
  schemas:
    AiArtifactArray:
      type: array
      items:
        $ref: '#/components/schemas/AiArtifact'
    AiScenarioLabel:
      type: object
      required:
      - key
      - value
      properties:
        key:
          $ref: '#/components/schemas/AiScenarioLabelKey'
        value:
          $ref: '#/components/schemas/AiLabelValue'
    AiArtifactDescription:
      type: string
      maxLength: 5000
      description: Description of the artifact
    AiScenarioId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: ID of the scenario
    AiArtifactCreationResponse:
      type: object
      required:
      - id
      - message
      - url
      properties:
        id:
          $ref: '#/components/schemas/AiId'
        message:
          $ref: '#/components/schemas/AiArtifactCreationResponseMessage'
        url:
          $ref: '#/components/schemas/AiArtifactUrl'
    AiArtifactPostData:
      type: object
      description: 'Base data of the artifact; this is the data that can be provided when the artifact is created; `name` and `kind` are required because they constitute important semantic filtering criteria for use in training / inference executables (`name` is a semantic handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. you would only want to allow models in the model operator).

        '
      required:
      - name
      - kind
      - url
      - scenarioId
      properties:
        labels:
          $ref: '#/components/schemas/AiLabelList'
        name:
          $ref: '#/components/schemas/AiArtifactName'
        kind:
          type: string
          enum:
          - model
          - dataset
          - resultset
          - other
          description: Kind of the artifact, i.e. model or dataset
        url:
          $ref: '#/components/schemas/AiArtifactUrl'
        description:
          $ref: '#/components/schemas/AiArtifactDescription'
        scenarioId:
          $ref: '#/components/schemas/AiScenarioId'
    AiUrl:
      type: string
      format: url
    AiLabelValue:
      type: string
      maxLength: 5000
    AiLabelList:
      type: array
      description: Arbitrary labels as meta information
      items:
        $ref: '#/components/schemas/AiLabel'
    AiLabel:
      type: object
      required:
      - key
      - value
      properties:
        key:
          $ref: '#/components/schemas/AiLabelKey'
        value:
          $ref: '#/components/schemas/AiLabelValue'
    AiExecutionId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: ID of the execution
    AiArtifactUrl:
      type: string
      pattern: ([a-z0-9-]+):\/\/.+
      maxLength: 1024
      example: https://example.com/some_path
      description: 'Reference to the location of the artifact.

        '
    AiApiError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Descriptive error code (not http status code)
        message:
          type: string
          description: Plaintext error description
        requestId:
          type: string
          description: ID of the individual request
        target:
          type: string
          description: Invoked URL
        details:
          description: Optional details of the error message
          type: object
    AiArtifactList:
      type: object
      properties:
        count:
          type: integer
          description: Number of the resource instances in the list
        resources:
          $ref: '#/components/schemas/AiArtifactArray'
      required:
      - count
      - resources
    AiId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: Generic ID
    AiScenarioLabelList:
      type: array
      description: Arbitrary labels as meta information
      items:
        $ref: '#/components/schemas/AiScenarioLabel'
    AiArtifact:
      description: 'Base data of the artifact; this is the data that can be provided when the artifact is created; `name` and `kind` are required because they constitute important semantic filtering criteria for use in training / inference executables (`name` is a semantic handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. you would only want to allow models in the model operator).

        '
      type: object
      properties:
        labels:
          $ref: '#/components/schemas/AiLabelList'
        name:
          $ref: '#/components/schemas/AiArtifactName'
        kind:
          type: string
          enum:
          - model
          - dataset
          - resultset
          - other
          description: Kind of the artifact, i.e. model or dataset
        url:
          $ref: '#/components/schemas/AiArtifactUrl'
        description:
          $ref: '#/components/schemas/AiArtifactDescription'
        id:
          $ref: '#/components/schemas/AiArtifactId'
        scenarioId:
          $ref: '#/components/schemas/AiScenarioId'
        configurationId:
          $ref: '#/components/schemas/AiConfigurationId'
        executionId:
          $ref: '#/components/schemas/AiExecutionId'
        createdAt:
          type: string
          description: Timestamp of resource creation
          format: date-time
        modifiedAt:
          type: string
          format: date-time
          description: Timestamp of latest resource modification
        scenario:
          type:
          - object
          - 'null'
          anyOf:
          - $ref: '#/components/schemas/AiScenario'
          - {}
      required:
      - name
      - kind
      - url
      - id
      - scenarioId
      - createdAt
      - modifiedAt
    AiArtifactId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: ID of the artifact
    AiScenarioLabelKey:
      type: string
      example: scenarios.ai.sap.com/s4hana-version
      maxLength: 256
      pattern: ^(scenarios|ext)\.ai\.sap\.com\/[\w\.-]+$
    AiConfigurationId:
      type: string
      pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
      description: ID of the configuration
    AiLabelKey:
      type: string
      example: ext.ai.sap.com/s4hana-version
      maxLength: 256
      pattern: ^ext\.ai\.sap\.com\/[\w\.-]+$
    AiArtifactCreationResponseMessage:
      type: string
      description: Message
      example: Artifact acknowledged
    AiArtifactName:
      type: string
      pattern: ^[\w\s.!?,;:\[\](){}<>"'=+*/\\^&%@~$#|-]*$
      maxLength: 256
      description: Name of the artifact
    AiScenario:
      type: object
      description: 'An ML Scenario consists of a number of executables. E.g., there can be one or several training executables, an inference (deployment) executable. An ML Scenario is versioned.

        '
      required:
      - name
      - id
      - createdAt
      - modifiedAt
      properties:
        name:
          type: string
          maxLength: 256
          description: Name of the scenario
        description:
          type: string
          maxLength: 5000
          description: Description of the scenario
        labels:
          $ref: '#/components/schemas/AiScenarioLabelList'
        id:
          $ref: '#/components/schemas/AiScenarioId'
        createdAt:
          type: string
          description: Timestamp of resource creation
          format: date-time
        modifiedAt:
          type: string
          format: date-time
          description: Timestamp of latest resource modification
  parameters:
    AiquerySearch:
      name: $search
      description: Generic search term to be looked for in various attributes
      in: query
      required: false
      schema:
        type: string
        pattern: ^[^~]{1,80}$
      example: onfigur
    Aitop:
      name: $top
      description: Number of results to display
      in: query
      required: false
      schema:
        type: integer
        maximum: 100000
        default: 10000
      example: 10
      x-visible: false
    AiartifactId:
      name: artifactId
      description: Artifact identifier
      in: path
      required: true
      schema:
        type: string
        pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
    AiresourceGroupHeader:
      in: header
      name: AI-Resource-Group
      description: Specify a resource group id
      schema:
        type: string
      required: true
    AiqueryArtifactKind:
      name: kind
      description: Kind of the artifact
      in: query
      required: false
      schema:
        type: string
        enum:
        - model
        - dataset
        - resultset
        - other
      example: model
    AiquerySearchCaseInsensitive:
      name: searchCaseInsensitive
      description: indicates whether the search should be case insensitive
      in: query
      required: false
      schema:
        type: boolean
        default: false
      example: true
    AiqueryExecutionId:
      name: executionId
      description: Execution identifier
      in: query
      required: false
      schema:
        type: string
        pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
    AiqueryArtifactExpand:
      name: $expand
      description: expand detailed information on scenario
      in: query
      required: false
      schema:
        type: string
        enum:
        - scenario
      example: scenario
      x-visible: false
    AiqueryScenarioId:
      name: scenarioId
      description: Scenario identifier
      in: query
      required: false
      schema:
        type: string
        pattern: ^[\w.-]{4,64}$
      example: aa97b177-9383-4934-8543-0f91a7a0283a
    AiqueryArtifactName:
      name: name
      description: Artifact name
      in: query
      required: false
      schema:
        type: string
        allOf:
        - $ref: '#/components/schemas/AiArtifactName'
      example: inception
    Aiskip:
      name: $skip
      description: Number of results to be skipped from the ordered list of results
      in: query
      required: false
      schema:
        type: integer
      example: 10
      x-visible: false
    AiartifactLabelSelector:
      in: query
      name: artifactLabelSelector
      description: 'Filter artifact by labels. Pass in expressions in the form of "key=value" or "key!=value" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND). The maximum number of labels permitted for filtering is 10. Special handling is required when using comma in the value field. This is because commas are also used as a separator for  multiple "key=value" entries. Therefore, if the value contains a comma, then replace this with the string "{comma}" in the value field.

        '
      schema:
        type: array
        minItems: 1
        maxItems: 10
        items:
          type: string
          pattern: ^ext\.ai\.sap\.com\/[\w\.-]+!?=[^ =,]+$
          maxLength: 5000
      example: ext.ai.sap.com/key1=value1,ext.ai.sap.com/key2!=value2
      style: form
      explode: false
      required: false
  responses:
    AiBadRequest:
      description: The specification of the resource was incorrect
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                $ref: '#/components/schemas/AiApiError'
    AiNotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                $ref: '#/components/schemas/AiApiError'
  securitySchemes:
    Oauth2:
      type: oauth2
      description: OAuth client credentials (client ID and secret) are required. These can be requested from SAP BTP cloud cockpit.
      flows:
        clientCredentials:
          tokenUrl: https://{subdomain_identity_zone}.authentication.{host}/oauth/token
          scopes: {}
externalDocs:
  description: Documentation for SAP AI Core
  url: https://help.sap.com/docs/AI_CORE?version=CLOUD
x-refined-from:
- ai-core.yaml
- sap-btp-ai-core-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.