---
title: "Create X Installation"
method: POST
path: "/x/installations"
tags: ["Usage"]
---

# Create X Installation

`POST /x/installations`

## Request body

- RoutesV2XXInstallationRequest
  - `username` string, required — X username to index (with or without @)
  - `bearer_token` string, required — X API bearer token
  - `display_name` string, nullable — Optional custom display name for this source
  - `max_results` integer — Maximum number of recent posts to index
  - `include_replies` boolean — Whether replies should be indexed
  - `include_retweets` boolean — Whether reposts/retweets should be indexed

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/versions/d216ffc3efb6/schema)
