Developer API
Authentication
API использует Grik account identity для управления ключами и scoped developer API keys для production integrations.
#User tokens
Используйте device login для browserless clients, local Ricochet tooling и управления keys от имени account.
/auth/device/codeСоздает device code, user code, verification URL, срок действия и polling interval.
/auth/device/tokenМеняет approved device code на access и refresh tokens.
/auth/refreshРотирует refresh token и выдает новый access token.
/users/meВозвращает authenticated user profile для billing и ownership.
#Developer API keys
Используйте API keys для production server-side integrations. Keys scoped и могут быть revoked.
/auth/api-keysВыпускает organization API key вида grik_live_... для server-side integrations.
/auth/api-keysПоказывает active и revoked API keys без raw secret.
/auth/api-keys/:idОтзывает API key по id. Revoked keys сразу перестают проходить auth.