---
title: "Import Sample"
method: POST
path: "/gateway/keys/{key_id}/imports/sample"
tags: ["gateway"]
---

# Import Sample

`POST /gateway/keys/{key_id}/imports/sample`

## Request

- Base URL: `https://api.os3robotics.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.os3robotics.com/gateway/keys/{key_id}/imports/sample`
- Auth: HTTP bearer

OS3's banking77 sample, each exchange asking for ``model``.

## Path parameters

- `key_id` string, uuid, required

## Query parameters

- `provider` union: An app key's import: the provider that answered it, `openai` or `anthropic` (that vendor's API on your app's own key) or one of your saved provider keys' id.
  - string, uuid
  - 'openai' | 'anthropic'

## Request body

- SampleIn
  - `model` string

## Response `200`

Successful Response

- ImportResult
  - `import_id` string, uuid, required
  - `lines` integer
  - `imported` integer
  - `duplicates` integer
  - `refused` integer
  - `errors` LineError[]
    - `line` integer, required
    - `reason` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/os3robotics/apis/os3-api.md) - [All operations](https://skmtc.dev/os3robotics/apis/os3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/os3robotics/apis/os3-api/revisions/af32cd4f14bb?raw)
