---
title: "Index a custom content"
method: POST
path: "/ask/index"
deprecated: true
---

# Index a custom content

`POST /ask/index`

> **Deprecated.**

Index a custom content for AskX usage.

## Request body

- object
  - `rootId` string, required — Root id of the object to gather sources from. This should be created from the UI as a new custom data source.
  - `id` string, required — Unique id of the object to index scoped to the rootId
  - `title` string, required — Title of the object to index
  - `content` string, required — Content of the object to index
  - `type` 'markdown' | 'html', required
  - `updatedAt` string, date-time, required — Last update date of the object to index. Used to determine the freshness of the object.
  - `url` string, required — Url of the object to index. Used to redirect to the proper page.

## Response `200`

Ok

- Source
  - `explanation` string — For super, gives explanation about the source
  - `updatedAt` union, required — Date of the last update of the note
    - string, date-time
    - string
  - `url` string, required — Url of the note
  - `title` string, required — Title of the note
  - `id` string, required — Id of the note

## Other responses

- `401` — Invalid authentication
- `402` — This feature is disabled for your organization. Please contact support.
- `404` — Data source not found
- `422` — Input validation error
- `429` — Rate limitation error
- `default` — Unexpected error

---

[API](https://skmtc.net/slite/apis/public-slite-api.md) · [All operations](https://skmtc.net/slite/apis/public-slite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slite/public-slite-api/versions/7cee1a5a5128/schema)
