KeyAssignment - Python SDK

KeyAssignment method reference

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

Fields

FieldTypeRequiredDescriptionExample
assigned_byNullable[str]✔️User ID of who made the assignmentuser_abc123
created_atstr✔️ISO 8601 timestamp of when the assignment was created2025-08-24T10:30:00Z
guardrail_idstr✔️ID of the guardrail550e8400-e29b-41d4-a716-446655440001
idstr✔️Unique identifier for the assignment550e8400-e29b-41d4-a716-446655440000
key_hashstr✔️Hash of the assigned API keyc56454edb818d6b14bc0d61c46025f1450b0f4012d12304ab40aacb519fcbc93
key_labelstr✔️Label of the API keyprod-key
key_namestr✔️Name of the API keyProduction Key