Presets

List versions of a preset

Changed on

Lists all versions of a preset, ordered by version number ascending (oldest first).

get/presets/{slug}/versions

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

slug, string required

URL-safe slug identifying the preset.

Example:my-preset

Query parameters

offset, integer nullable

Number of records to skip for pagination

limit, integer

Maximum number of records to return (max 100)

Example:50
workspace_id, string uuid

Workspace to act in. Also accepted as a workspace_id field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.

Example:750e8400-e29b-41d4-a716-446655440002

Response

Paginated list of preset versions.

ListPresetVersionsResponse required

A paginated list of preset versions.

data, PresetDesignatedVersion[] required
total_count, integer required

Example response

{
  "data": [
    {
      "config": {
        "model": "openai/gpt-4o",
        "temperature": 0.7
      },
      "created_at": "2026-04-20T10:00:00Z",
      "creator_id": "user_2dHFtVWx2n56w6HkM0000000000",
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "preset_id": "650e8400-e29b-41d4-a716-446655440001",
      "system_prompt": "You are a helpful assistant.",
      "updated_at": "2026-04-20T10:00:00Z",
      "version": 1
    }
  ],
  "total_count": 1
}

Changes