Scale AI Interactions API

The Interactions API from Scale AI — 2 operation(s) for interactions.

Operations 2

POST /v4/interactions/ Create Application Interaction #
GET /v4/interactions/{application_interaction_id}/feedback Get Interaction Feedback #

Documentation

Specifications

SDKs

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-object-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-export-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-by-span-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-api-apps-public-routers-inference-inference-model-models-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-utils-model-schemas-completions-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-request-v2-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-execute-agent-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-legacy-evaluation-response-with-views-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-agent-run-schedule-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-register-agent-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-span-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-span-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-research-job-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-job-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-data-source-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-parse-result-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-file-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-sgpvector-store-create-request-base-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v1-request-schema.json

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/scale-ai:scale-ai-interactions-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

scale-ai-interactions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EGP API V4 Interactions API
  description: This is the parent API for all EGP APIs. If you are looking for the EGP API, please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
- url: https://api.egp.scale.com
security: []
tags:
- name: Interactions
paths:
  /v4/interactions/:
    post:
      tags:
      - Interactions
      summary: Create Application Interaction
      operationId: POST-V4-/
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InteractionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionEntity'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/interactions/create-application-interaction
  /v4/interactions/{application_interaction_id}/feedback:
    get:
      tags:
      - Interactions
      summary: Get Interaction Feedback
      operationId: GET-V4-/{application_interaction_id}/feedback
      parameters:
      - name: application_interaction_id
        in: path
        required: true
        schema:
          title: Application Interaction Id
          type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/ChatThreadFeedbackResponse'
                - type: 'null'
                title: Response Get-V4-/{Application Interaction Id}/Feedback
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/interactions/get-interaction-feedback
components:
  schemas:
    InteractionInput:
      properties:
        query:
          type: string
          title: Query
          description: The query or input text for the interaction.
      additionalProperties: true
      type: object
      required:
      - query
      title: InteractionInput
      description: Represents the input of an interaction.
    OperationStatus:
      type: string
      enum:
      - SUCCESS
      - ERROR
      title: OperationStatus
      description: Enum representing the status of an operation.
    InteractionRequest:
      properties:
        application_variant_id:
          type: string
          title: Application Variant Id
          description: Identifier for the application variant that performed this interaction.
        thread_id:
          title: Thread Id
          description: Optional UUID identifying the conversation thread associated with the interaction.The interaction will be associated with the thread if the id represents an existing thread.If the thread with the specified id is not found, a new thread will be created.
          type: string
        input:
          $ref: '#/components/schemas/InteractionInput'
          description: The input data for the interaction.
        output:
          $ref: '#/components/schemas/InteractionOutput'
          description: The output data from the interaction.
        start_timestamp:
          type: string
          format: date-time
          title: Start Timestamp
          description: Timestamp marking the start of the interaction.
        duration_ms:
          title: Duration Ms
          description: Duration of the interaction in milliseconds.
          default: 0
          type: integer
        operation_status:
          $ref: '#/components/schemas/OperationStatus'
          description: The outcome status of the interaction.
          default: SUCCESS
        operation_metadata:
          additionalProperties: true
          type: object
          title: Operation Metadata
          description: Optional metadata related to the operation, including custom or predefined keys.
          default: {}
        trace_spans:
          title: Trace Spans
          description: List of trace spans associated with the interaction.These spans provide insight into the individual steps taken by nodes involved in generating the output.
          items:
            $ref: '#/components/schemas/TraceSpanRequest'
          type: array
      type: object
      required:
      - application_variant_id
      - input
      - output
      - start_timestamp
      title: InteractionRequest
      description: Represents an interaction performed with an application, including input, output, and associated metadata.
    InteractionOutputContextEntry:
      properties:
        text:
          type: string
          title: Text
          description: The text of the context entry.
        score:
          title: Score
          description: The score of the context entry.
          type: number
      additionalProperties: true
      type: object
      required:
      - text
      title: InteractionOutputContextEntry
    OperationType:
      type: string
      enum:
      - COMPLETION
      - RERANKING
      - RETRIEVAL
      - CUSTOM
      title: OperationType
      description: Enum representing the type of operation performed.
    ChatThreadFeedbackResponse:
      properties:
        id:
          type: string
          title: Id
        chat_thread_id:
          title: Chat Thread Id
          can_patch: false
          type: string
        application_interaction_id:
          type: string
          title: Application Interaction Id
          can_patch: false
        sentiment:
          $ref: '#/components/schemas/FeedbackSentiment'
        description:
          title: Description
          type: string
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The date and time when the entity was created in ISO format.
      type: object
      required:
      - id
      - chat_thread_id
      - application_interaction_id
      - sentiment
      - description
      - created_at
      title: ChatThreadFeedbackResponse
    TraceSpanRequest:
      properties:
        node_id:
          type: string
          title: Node Id
          description: Identifier for the node that emitted this trace span.
        operation_type:
          $ref: '#/components/schemas/OperationType'
          description: Type of the operation, e.g., RERANKING.
        operation_status:
          $ref: '#/components/schemas/OperationStatus'
          description: The outcome of the operation performed by this node.
          default: SUCCESS
        start_timestamp:
          type: string
          format: date-time
          title: Start Timestamp
          description: The start time of the step.
        end_timestamp:
          title: End Timestamp
          description: The end time of the step.
          type: string
          format: date-time
        operation_input:
          additionalProperties: true
          type: object
          title: Operation Input
          description: The JSON representation of the input that this step received.
          default: {}
        operation_output:
          additionalProperties: true
          type: object
          title: Operation Output
          description: The JSON representation of the output that this step emitted.
          default: {}
        operation_metadata:
          additionalProperties: true
          type: object
          title: Operation Metadata
          description: The JSON representation of the metadata insights emitted during execution. This can differ based on different types of operations.
          default: {}
        duration_ms:
          type: integer
          title: Duration Ms
          description: The duration of the operation step in milliseconds.
          default: 0
        account_id:
          title: Account Id
          description: The ID of the account that owns this trace span.
          type: string
      type: object
      required:
      - node_id
      - operation_type
      - start_timestamp
      title: TraceSpanRequest
      description: Represents a trace span request, that contains the details of certain steps that took part in the interaction.
    InteractionOutput:
      properties:
        response:
          type: string
          title: Response
          description: The response or output text of the interaction.
        context:
          title: Context
          description: Optional context information provided with the response.
          items:
            $ref: '#/components/schemas/InteractionOutputContextEntry'
          type: array
      additionalProperties: true
      type: object
      required:
      - response
      title: InteractionOutput
      description: Represents the output of an interaction.
    FeedbackSentiment:
      type: string
      enum:
      - positive
      - negative
      title: FeedbackSentiment
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InteractionEntity:
      properties:
        application_variant_id:
          type: string
          title: Application Variant Id
          description: Identifier for the application variant that performed this interaction.
        thread_id:
          title: Thread Id
          description: Optional UUID identifying the conversation thread associated with the interaction.The interaction will be associated with the thread if the id represents an existing thread.If the thread with the specified id is not found, a new thread will be created.
          type: string
        input:
          $ref: '#/components/schemas/InteractionInput'
          description: The input data for the interaction.
        output:
          $ref: '#/components/schemas/InteractionOutput'
          description: The output data from the interaction.
        start_timestamp:
          type: string
          format: date-time
          title: Start Timestamp
          description: Timestamp marking the start of the interaction.
        duration_ms:
          title: Duration Ms
          description: Duration of the interaction in milliseconds.
          default: 0
          type: integer
        operation_status:
          $ref: '#/components/schemas/OperationStatus'
          description: The outcome status of the interaction.
          default: SUCCESS
        operation_metadata:
          additionalProperties: true
          type: object
          title: Operation Metadata
          description: Optional metadata related to the operation, including custom or predefined keys.
          default: {}
        trace_spans:
          title: Trace Spans
          description: List of trace span entities associated with the interaction.
          items:
            $ref: '#/components/schemas/TraceSpanEntity'
          type: array
        id:
          type: string
          title: Id
          description: Unique identifier for the interaction.
      type: object
      required:
      - application_variant_id
      - input
      - output
      - start_timestamp
      - id
      title: InteractionEntity
      description: Model representing an interaction entity.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    TraceSpanEntity:
      properties:
        node_id:
          type: string
          title: Node Id
          description: Identifier for the node that emitted this trace span.
        operation_type:
          $ref: '#/components/schemas/OperationType'
          description: Type of the operation, e.g., RERANKING.
        operation_status:
          $ref: '#/components/schemas/OperationStatus'
          description: The outcome of the operation performed by this node.
          default: SUCCESS
        start_timestamp:
          type: string
          format: date-time
          title: Start Timestamp
          description: The start time of the step.
        end_timestamp:
          title: End Timestamp
          description: The end time of the step.
          type: string
          format: date-time
        operation_input:
          additionalProperties: true
          type: object
          title: Operation Input
          description: The JSON representation of the input that this step received.
          default: {}
        operation_output:
          additionalProperties: true
          type: object
          title: Operation Output
          description: The JSON representation of the output that this step emitted.
          default: {}
        operation_metadata:
          additionalProperties: true
          type: object
          title: Operation Metadata
          description: The JSON representation of the metadata insights emitted during execution. This can differ based on different types of operations.
          default: {}
        duration_ms:
          type: integer
          title: Duration Ms
          description: The duration of the operation step in milliseconds.
          default: 0
        account_id:
          title: Account Id
          description: The ID of the account that owns this trace span.
          type: string
        id:
          type: string
          title: Id
          description: Unique identifier for the trace span.
        application_interaction_id:
          type: string
          title: Application Interaction Id
          description: The ID of the application interaction this trace span belongs to.
      type: object
      required:
      - node_id
      - operation_type
      - start_timestamp
      - id
      - application_interaction_id
      title: TraceSpanEntity
      description: Represents a trace span entity, tied to an interaction.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
x-assembled-from: Per-operation OpenAPI fragments embedded verbatim in docs.gp.scale.com reference pages; source spec https://api.sgp.scale.com/openapi-versions/v4/openapi.json (404 when assembled)