UnoRouter Admin User API
The AdminUser API from UnoRouter, for adminuser.
The AdminUser API from UnoRouter, for adminuser.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-adminuser-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: ' '
title: New Admin User API
version: 0.0.1
tags:
- name: AdminUser
paths:
/api/user/:
get:
operationId: getAllUsers
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.User'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.User'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get All Users
tags:
- AdminUser
post:
operationId: createUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: Request body for model.User
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Create User
tags:
- AdminUser
put:
operationId: updateUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: Request body for model.User
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Update User
tags:
- AdminUser
/api/user/discord_grant:
post:
operationId: grantDiscordQuota
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GrantDiscordQuotaRequest'
description: Request body for dto.GrantDiscordQuotaRequest
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.GrantDiscordQuotaData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.GrantDiscordQuotaData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Grant Discord Quota
tags:
- AdminUser
/api/user/discord_transfer:
post:
operationId: transferDiscordQuota
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TransferDiscordQuotaRequest'
description: Request body for dto.TransferDiscordQuotaRequest
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.TransferDiscordQuotaData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.TransferDiscordQuotaData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Transfer Discord Quota
tags:
- AdminUser
/api/user/manage:
post:
operationId: manageUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ManageRequest'
description: Request body for dto.ManageRequest
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.ManageUserData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.ManageUserData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Manage User
tags:
- AdminUser
/api/user/search:
get:
operationId: searchUsers
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
- description: Search keyword
in: query
name: keyword
schema:
type: string
- description: Filter by group
in: query
name: group
schema:
type: string
- description: Only users whose balance is below zero
in: query
name: negative_quota
schema:
type: boolean
- description: Only users with consent enforcement switched on for their account
in: query
name: consent_enforced
schema:
type: boolean
- description: Field to sort by
in: query
name: sort_by
schema:
type: string
- description: 'Sort order: asc or desc'
in: query
name: sort_order
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.User'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.User'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Search Users
tags:
- AdminUser
/api/user/topup:
get:
operationId: getAllTopUps
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
- description: Search keyword
in: query
name: keyword
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.TopUp'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.TopUp'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get All Top Ups
tags:
- AdminUser
/api/user/topup/complete:
post:
operationId: adminCompleteTopUp
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AdminCompleteTopupRequest'
description: Request body for dto.AdminCompleteTopupRequest
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Admin Complete Top Up
tags:
- AdminUser
/api/user/{id}:
delete:
operationId: deleteUser
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Delete User
tags:
- AdminUser
get:
operationId: getUser
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_model.User'
application/xml:
schema:
$ref: '#/components/schemas/Response_model.User'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get User
tags:
- AdminUser
/api/user/{id}/bindings/{binding_type}:
delete:
operationId: adminClearUserBinding
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
- description: Binding type
in: path
name: binding_type
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Admin Clear User Binding
tags:
- AdminUser
/api/user/{id}/bot_view:
get:
operationId: getUserBotView
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.UserBotViewData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.UserBotViewData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get User Bot View
tags:
- AdminUser
/api/user/{id}/oauth/bindings:
get:
operationId: getUserOAuthBindingsByAdmin
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_Array-dto.UserOAuthBindingResponse'
application/xml:
schema:
$ref: '#/components/schemas/Response_Array-dto.UserOAuthBindingResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get User O Auth Bindings By Admin
tags:
- AdminUser
/api/user/{id}/oauth/bindings/{provider_id}:
delete:
operationId: unbindCustomOAuthByAdmin
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
- description: OAuth provider ID
in: path
name: provider_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Unbind Custom O Auth By Admin
tags:
- AdminUser
/api/user/{id}/reset_passkey:
delete:
operationId: adminResetPasskey
parameters:
- description: User ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
application/xml:
schema:
$ref: '#/components/schemas/ApiResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Admin Reset Passkey
tags:
- AdminUser
components:
schemas:
ApiResponse:
properties:
data: {}
message:
type: string
object:
type: string
success:
type: boolean
required:
- message
- success
type: object
TopUp:
properties:
amount:
format: int64
type: integer
charged_money:
format: double
type: number
complete_time:
format: int64
type: integer
create_time:
format: int64
type: integer
id:
type: integer
invoice_url:
type: string
money:
format: double
type: number
paid_amount:
format: double
type: number
payment_method:
type: string
payment_provider:
type: string
provider_payment_id:
type: string
reversed_quota:
format: int64
type: integer
status:
type: string
trade_no:
type: string
user_id:
type: integer
required:
- amount
- charged_money
- complete_time
- create_time
- id
- invoice_url
- money
- paid_amount
- payment_method
- payment_provider
- provider_payment_id
- reversed_quota
- status
- trade_no
- user_id
type: object
MessageResponse:
properties:
message:
type: string
success:
type: boolean
required:
- message
- success
type: object
User:
properties:
admin_permissions:
additionalProperties:
additionalProperties:
type: boolean
type: object
type:
- object
- 'null'
aff_code:
type: string
aff_count:
type: integer
aff_history_quota:
type: integer
aff_quota:
type: integer
created_at:
format: int64
type: integer
creem_customer:
type: string
customer_type:
type: string
customer_type_at:
format: int64
type: integer
discord_id:
type: string
display_name:
maxLength: 20
type: string
email:
maxLength: 50
type: string
github_id:
type: string
google_id:
type: string
group:
type: string
id:
type: integer
inviter_id:
type: integer
last_login_at:
format: int64
type: integer
linux_do_id:
type: string
oidc_id:
type: string
original_password:
type: string
password:
maxLength: 128
minLength: 8
type: string
quota:
type: integer
referral_commission_percent:
format: double
nullable: true
type: number
register_ip:
type: string
remark:
maxLength: 255
type: string
request_count:
type: integer
role:
type: integer
setting:
type: string
status:
type: integer
stripe_customer:
type: string
telegram_id:
type: string
topup_bonus_percent:
format: double
nullable: true
type: number
used_quota:
type: integer
username:
maxLength: 20
type: string
verification_code:
type: string
wechat_id:
type: string
required:
- DeletedAt
- aff_code
- aff_count
- aff_history_quota
- aff_quota
- created_at
- creem_customer
- customer_type
- customer_type_at
- discord_id
- display_name
- email
- github_id
- google_id
- group
- id
- inviter_id
- last_login_at
- linux_do_id
- oidc_id
- original_password
- password
- quota
- referral_commission_percent
- request_count
- role
- setting
- status
- stripe_customer
- telegram_id
- topup_bonus_percent
- used_quota
- username
- verification_code
- wechat_id
type: object
ManageRequest:
description: ManageRequest schema
properties:
action:
type: string
groups:
items:
type: string
type:
- array
- 'null'
id:
type: integer
mode:
type: string
value:
type: integer
required:
- action
- groups
- id
- mode
- value
type: object
TransferDiscordQuotaRequest:
description: TransferDiscordQuotaRequest schema
properties:
from_discord_id:
type: string
quota:
type: integer
to_discord_id:
type: string
required:
- from_discord_id
- quota
- to_discord_id
type: object
Response_dto.TransferDiscordQuotaData:
description: Response_dto.TransferDiscordQuotaData schema
properties:
data:
$ref: '#/components/schemas/TransferDiscordQuotaData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_dto.PageData-model.User:
description: Response_dto.PageData-model.User schema
properties:
data:
properties:
items:
items:
$ref: '#/components/schemas/User'
type:
- array
- 'null'
page:
type: integer
page_size:
type: integer
total:
type: integer
required:
- items
- page
- page_size
- total
type: object
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
GrantDiscordQuotaRequest:
description: GrantDiscordQuotaRequest schema
properties:
check_ip_unique:
type: boolean
discord_id:
type: string
dry_run:
type: boolean
expected_user_id:
type: integer
granted_by:
type: string
quota:
type: integer
reason:
type: string
source:
type: string
required:
- discord_id
- quota
type: object
UserOAuthBindingResponse:
properties:
provider_icon:
type: string
provider_id:
type: integer
provider_name:
type: string
provider_slug:
type: string
provider_user_id:
type: string
required:
- provider_icon
- provider_id
- provider_name
- provider_slug
- provider_user_id
type: object
RewardIpCheckData:
properties:
cleared:
type: boolean
earlier_accounts:
type: integer
earlier_rewarded:
type: integer
earlier_same_email:
type: integer
required:
- cleared
- earlier_accounts
- earlier_rewarded
- earlier_same_email
type: object
ManageUserData:
properties:
reward_ip:
$ref: '#/components/schemas/RewardIpCheckData'
role:
type: integer
status:
type: integer
required:
- role
- status
type: object
Response_dto.PageData-model.TopUp:
description: Response_dto.PageData-model.TopUp schema
properties:
data:
properties:
items:
items:
$ref: '#/components/schemas/TopUp'
type:
- array
- 'null'
page:
type: integer
page_size:
type: integer
total:
type: integer
required:
- items
- page
- page_size
- total
type: object
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_dto.GrantDiscordQuotaData:
description: Response_dto.GrantDiscordQuotaData schema
properties:
data:
$ref: '#/components/schemas/GrantDiscordQuotaData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_dto.UserBotViewData:
description: Response_dto.UserBotViewData schema
properties:
data:
$ref: '#/components/schemas/UserBotViewData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
GrantDiscordQuotaData:
properties:
ip_duplicate:
type: boolean
linked:
type: boolean
user_id:
type: integer
user_mismatch:
type: boolean
required:
- linked
- user_id
type: object
Response_model.User:
description: Response_model.User schema
properties:
data:
$ref: '#/components/schemas/User'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
TransferDiscordQuotaData:
properties:
from_balance:
type: integer
from_linked:
type: boolean
from_user_id:
type: integer
insufficient:
type: boolean
to_linked:
type: boolean
to_user_id:
type: integer
required:
- from_balance
- from_linked
- from_user_id
- insufficient
- to_linked
- to_user_id
type: object
UserBotViewData:
properties:
quota:
type: integer
setting:
type: string
username:
type: string
required:
- quota
- setting
- username
type: object
AdminCompleteTopupRequest:
description: AdminCompleteTopupRequest schema
properties:
trade_no:
type: string
required:
- trade_no
type: object
Response_dto.ManageUserData:
description: Response_dto.ManageUserData schema
properties:
data:
$ref: '#/components/schemas/ManageUserData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_Array-dto.UserOAuthBindingResponse:
description: Response_Array-dto.UserOAuthBindingResponse schema
properties:
data:
items:
$ref: '#/components/schemas/UserOAuthBindingResponse'
type:
- array
- 'null'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
securitySchemes:
accessToken:
description: System access token for dashboard API routes. Must be paired with New-Api-User header.
in: header
name: Authorization
type: apiKey
anthropicApiKey:
description: Anthropic-style API key. Used by /v1/messages and /v1/models.
in: header
name: x-api-key
type: apiKey
bearerAuth:
description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
scheme: bearer
type: http
newApiUser:
description: User ID header. Required together with the access token or session cookie for dashboard API routes.
in: header
name: New-Api-User
type: apiKey
sessionAuth:
description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
in: cookie
name: session
type: apiKey