Trajectory Artifacts API

The artifacts API from Trajectory — 4 operation(s) for artifacts.

Operations 4

POST /api/v1/trajectories/{trajectory_id}/artifacts/content Store Artifact Content #
GET /api/v1/artifacts/{artifact_id} Download Artifact #
POST /api/v1/trajectories/{trajectory_id}/artifacts Upload Artifact #
POST /api/v1/trajectories/{trajectory_id}/artifacts/{artifact_id}/complete Complete Upload #

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/trajectory:trajectory-artifacts-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

trajectory-artifacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trajectory Artifacts API
  version: 0.1.0
  x-trajectory-api-version: '2026-10-14'
  description: This contract is API version 2026-10-14. The optional Trajectory-API-Version header pins it, and tmp-contract is accepted as an alias. Requests without the header get this version. Version 2026-10-07 and the pre-launch legacy response formats are retired.
tags:
- name: Artifacts
paths:
  /api/v1/trajectories/{trajectory_id}/artifacts/content:
    post:
      tags:
      - Artifacts
      summary: Store Artifact Content
      description: Upload at most 16 MiB through the API when direct storage egress is unavailable.
      operationId: storeTrajectoryArtifact
      security:
      - TrajectoryAccessToken: []
      parameters:
      - name: trajectory_id
        in: path
        required: true
        schema:
          type: string
          title: Trajectory Id
      - name: media_type
        in: query
        required: true
        schema:
          type: string
          maxLength: 255
          pattern: ^[a-z0-9!#$&^_.+-]+/[a-z0-9!#$&^_.+-]+$
          title: Media Type
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Artifact'
      x-trajectory-visibility: public
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
  /api/v1/artifacts/{artifact_id}:
    get:
      tags:
      - Artifacts
      summary: Download Artifact
      operationId: readArtifact
      security:
      - TrajectoryAccessToken: []
      parameters:
      - name: artifact_id
        in: path
        required: true
        schema:
          type: string
          title: Artifact Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactDownload'
      x-trajectory-visibility: public
  /api/v1/trajectories/{trajectory_id}/artifacts:
    post:
      tags:
      - Artifacts
      summary: Upload Artifact
      description: Reserve an upload, then PUT the file to the returned URL and complete it.
      operationId: uploadTrajectoryArtifact
      security:
      - TrajectoryAccessToken: []
      parameters:
      - name: trajectory_id
        in: path
        required: true
        schema:
          type: string
          title: Trajectory Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ArtifactUploadRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactUpload'
      x-trajectory-visibility: public
  /api/v1/trajectories/{trajectory_id}/artifacts/{artifact_id}/complete:
    post:
      tags:
      - Artifacts
      summary: Complete Upload
      description: Publish the uploaded object's verified metadata and attach it to the trajectory.
      operationId: completeTrajectoryArtifactUpload
      security:
      - TrajectoryAccessToken: []
      parameters:
      - name: trajectory_id
        in: path
        required: true
        schema:
          type: string
          title: Trajectory Id
      - name: artifact_id
        in: path
        required: true
        schema:
          type: string
          title: Artifact Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Artifact'
      x-trajectory-visibility: public
components:
  schemas:
    ArtifactUpload:
      properties:
        artifact_id:
          type: string
          title: Artifact Id
          description: Reserved file ID; complete the upload before using it.
        upload_url:
          type: string
          title: Upload Url
          description: Signed PUT URL valid for ten minutes; send the file here.
        headers:
          additionalProperties:
            type: string
          type: object
          title: Headers
          description: Required headers for the PUT request.
      type: object
      required:
      - artifact_id
      - upload_url
      - headers
      title: ArtifactUpload
    ArtifactUploadRequest:
      properties:
        media_type:
          type: string
          maxLength: 255
          pattern: ^[a-z0-9!#$&^_.+-]+/[a-z0-9!#$&^_.+-]+$
          title: Media Type
          description: MIME type of the file, such as image/png.
        size_bytes:
          type: integer
          maximum: 16777216.0
          minimum: 0.0
          title: Size Bytes
          description: Exact file size in bytes, at most 16 MiB.
        md5:
          type: string
          pattern: ^[A-Za-z0-9+/]{22}==$
          title: Md5
          description: Base64-encoded MD5 of the file; GCS rejects bytes that do not match.
      type: object
      required:
      - media_type
      - size_bytes
      - md5
      title: ArtifactUploadRequest
    Artifact:
      properties:
        artifact_id:
          type: string
          title: Artifact Id
          description: Stable file ID, resolved within the owning organization.
        media_type:
          type: string
          title: Media Type
          description: MIME type of the stored file.
        size_bytes:
          type: integer
          title: Size Bytes
          description: Size of the original file in bytes.
        md5:
          type: string
          title: Md5
          description: GCS-verified, base64-encoded MD5 checksum of the file.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Time the file metadata was first published.
      type: object
      required:
      - artifact_id
      - media_type
      - size_bytes
      - md5
      - created_at
      title: Artifact
    ArtifactDownload:
      properties:
        artifact_id:
          type: string
          title: Artifact Id
          description: Stable file ID, resolved within the owning organization.
        media_type:
          type: string
          title: Media Type
          description: MIME type of the stored file.
        size_bytes:
          type: integer
          title: Size Bytes
          description: Size of the original file in bytes.
        md5:
          type: string
          title: Md5
          description: GCS-verified, base64-encoded MD5 checksum of the file.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Time the file metadata was first published.
        download_url:
          type: string
          title: Download Url
          description: Signed file download URL, valid for five minutes.
      type: object
      required:
      - artifact_id
      - media_type
      - size_bytes
      - md5
      - created_at
      - download_url
      title: ArtifactDownload
  securitySchemes:
    TrajectoryAccessToken:
      type: http
      description: Short-lived token scoped to one rollout trajectory
      scheme: bearer
    InferenceAuthorization:
      type: http
      scheme: bearer