Source code for kittycad.models.api_token
import datetime
from typing import Optional
from pydantic import BaseModel, ConfigDict
from ..models.string_uuid import StringUuid
from ..models.uuid import Uuid
[docs]
class ApiToken(BaseModel):
"""An API token.
These are used to authenticate users with Bearer authentication."""
created_at: datetime.datetime
id: Uuid
is_valid: bool
label: Optional[str] = None
token: StringUuid
updated_at: datetime.datetime
user_id: Uuid
model_config = ConfigDict(protected_namespaces=())