For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • KeyAssignment
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

KeyAssignment - Go SDK

KeyAssignment type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
AssignedBy*string✔️User ID of who made the assignmentuser_abc123
CreatedAtstring✔️ISO 8601 timestamp of when the assignment was created2025-08-24T10:30:00Z
GuardrailIDstring✔️ID of the guardrail550e8400-e29b-41d4-a716-446655440001
IDstring✔️Unique identifier for the assignment550e8400-e29b-41d4-a716-446655440000
KeyHashstring✔️Hash of the assigned API keyc56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93
KeyLabelstring✔️Label of the API keyprod-key
KeyNamestring✔️Name of the API keyProduction Key