Platform
ScaiWave ScaiGrid ScaiCore ScaiBot ScaiDrive ScaiKey Models Tools & Services
Solutions
Organisations Developers Internet Service Providers Managed Service Providers AI-in-a-Box
Resources
Support Documentation Blog Downloads
Company
About Research Careers Investment Opportunities Contact
Log in

Admin Auth API

Reference for the Admin Auth endpoint group — 4 endpoints.

Generated from the live OpenAPI spec. Re-run _generate_api_reference.py after backend changes.

Authentication#

All endpoints require a Bearer JWT in the Authorization header unless noted otherwise. See Concepts → Tokens and scopes and Reference → OAuth endpoints for how to obtain one.

Endpoints#

POST /api/v1/admin/auth/login#

Admin Login

Login to the admin panel.

Request body:

Required.

Responses:

Status Body
200 application/jsonscaikey__api__v1__admin__auth__LoginResponse
422 application/jsonHTTPValidationError

POST /api/v1/admin/auth/logout#

Admin Logout

Logout from admin panel.

Responses:

Status Body
200 application/json → object

GET /api/v1/admin/auth/me#

Admin Me

Get current admin user info from token.

Parameters:

Name In Required Type Description
authorization header no string | null

Responses:

Status Body
200 application/json → object
422 application/jsonHTTPValidationError

POST /api/v1/admin/auth/refresh#

Admin Refresh

Refresh access token.

Request body:

Required.

Responses:

Status Body
200 application/jsonscaikey__api__v1__me__auth__RefreshResponse
422 application/jsonHTTPValidationError

Schemas#

Definitions for every type referenced by the endpoints above. Schema-to-schema references on this page link within the page; cross-page references would require visiting the linked page.

HTTPValidationError#

Field Type Required Description
detail array of ValidationError no

ValidationError#

Field Type Required Description
loc array of string | integer yes
msg string yes
type string yes

scaikey__api__v1__admin__auth__LoginRequest#

Field Type Required Description
email string (email) yes
password string yes

scaikey__api__v1__admin__auth__LoginResponse#

Field Type Required Description
access_token string yes
refresh_token string yes
user object yes

scaikey__api__v1__me__auth__RefreshRequest#

Field Type Required Description
refresh_token string yes

scaikey__api__v1__me__auth__RefreshResponse#

Field Type Required Description
access_token string yes
refresh_token string | null no
Updated 2026-05-17 12:20:40 View source (.md) rev 1