---
title: "Ingest data and encrypt it (only available via proxy)"
method: POST
path: "/api/records/ingest/"
tags: ["records"]
---

# Ingest data and encrypt it (only available via proxy)

`POST /api/records/ingest/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/records/ingest/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
  - none
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/records/ingest/post.ts> (a function with typed inputs; its response is checked against the schema)

[Blind Insight Proxy] Ingest data and encrypt it returning the encrypted records

## Request body

- object[]: An array of records to be ingested.
  - `data` object, required: The data to be encrypted and stored as a record
  - `schema` string, uri, required: The schema URL for the record

## Response `200`

- Record[]
  - `id` string, required
  - `url` string, uri, required
  - `schema` string, uri, required
  - `data` object: The data that this record represents.

## Other responses

- `422`

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
