---
title: "Create Rlhf Export"
method: POST
path: "/api/v1/exports/rlhf"
tags: ["Exports"]
---

# Create Rlhf Export

`POST /api/v1/exports/rlhf`

## Request

- Base URL: `https://app.aimrank.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.aimrank.io/api/v1/exports/rlhf`
- Auth: none declared

Create an RLHF dataset export.

Supports multiple formats:
- `anthropic_hh`: Anthropic Human-Harmlessness format
- `openai_rm`: OpenAI Reward Model format  
- `dpo`: Direct Preference Optimization format
- `aimrank_full`: Full AimRank format with all metadata

For large exports, returns an export_id to check status.
For small exports (<1000), returns data directly.

## Request body

- ExportRequest: Request body for RLHF export.
  - `format` 'anthropic_hh' | 'openai_rm' | 'dpo' | 'aimrank_full'
  - `domains` string[], nullable
  - `categories` string[], nullable
  - `date_start` string, date-time, nullable
  - `date_end` string, date-time, nullable
  - `filters` ExportFilters: Filters for RLHF export.
    - `min_voter_accuracy` number
    - `min_confidence` number
    - `require_model_prediction_data` boolean
    - `min_votes_per_voter` integer
  - `include_voter_metadata` boolean
  - `include_entity_data` boolean
  - `include_outcomes` boolean
  - `sample_size` integer, nullable
  - `include_llm_votes` boolean

## Response `200`

Successful Response

- ExportResponse: Response for export request.
  - `export_id` string, required
  - `status` string, required
  - `format` string, required
  - `sample_count` integer, required
  - `data` object[], nullable
  - `download_url` string, nullable
  - `alignment_scaffolds` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aimrank/apis/aimrank-api.md) · [All operations](https://skmtc.dev/aimrank/apis/aimrank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aimrank/apis/aimrank-api/revisions/3574d0aff459?raw)
