Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Auth code data

Example Usage

import { CreateAuthKeysCodeData } from "@openrouter/sdk/models/operations";

let value: CreateAuthKeysCodeData = {
  appId: 12345,
  createdAt: "2025-08-24T10:30:00Z",
  id: "auth_code_xyz789",
};

Fields

FieldTypeRequiredDescriptionExample
appIdnumber:heavy_check_mark:The application ID associated with this auth code12345
createdAtstring:heavy_check_mark:ISO 8601 timestamp of when the auth code was created2025-08-24T10:30:00Z
idstring:heavy_check_mark:The authorization code ID to use in the exchange requestauth_code_xyz789