Example Usage
import { CreateInternRequest } from "@openrouter/sdk/models/operations";
let value: CreateInternRequest = {
createInternRequest: {
name: "research-assistant",
provision: true,
workspaceId: "89f9f5b2-3f89-4eaf-83ca-5ceae149e8bb",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
httpReferer | string | :heavy_minus_sign: | The app identifier should be your app’s URL and is used as the primary identifier for rankings. This is used to track API usage per application. | |
appTitle | string | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter’s dashboard. | |
appCategories | string | :heavy_minus_sign: | Comma-separated list of app categories (e.g. “cli-agent,cloud-agent”). Used for marketplace rankings. | |
idempotencyKey | string | :heavy_minus_sign: | Key that makes retries resume the same create operation. Without one, the server derives a stable key from the request body. | create-research-assistant-2026-09-16 |
createInternRequest | models.CreateInternRequest | :heavy_check_mark: | N/A | { “name”: “research-assistant”, “provision”: true, “workspace_id”: “89f9f5b2-3f89-4eaf-83ca-5ceae149e8bb” } |