Bỏ qua, tới nội dung
Dymini Panel
v0.16.1
Mục lục
Bạn đang xem tài liệu của v0.16.1.Xem bản mới nhất

Auth

Trong trang này

Setup, sessions, users, tokens, and audit

OAuth authorization-server metadata for agent login

GET/.well-known/oauth-authorization-server

Phản hồi

  • 200 OAuth authorization-server metadata for agent login

OAuth authorization-server metadata for agent login

GET/.well-known/oauth-authorization-server/mcp

Phản hồi

  • 200 OAuth authorization-server metadata for agent login

OAuth protected-resource metadata for the MCP server

GET/.well-known/oauth-protected-resource

Phản hồi

  • 200 OAuth protected-resource metadata for the MCP server

OAuth protected-resource metadata for the MCP server

GET/.well-known/oauth-protected-resource/mcp

Phản hồi

  • 200 OAuth protected-resource metadata for the MCP server

Recent audit events

GET/api/v1/audit

Phản hồi

  • 200 Recent audit eventsAuditView[]
    • actionstringbắt buộc
    • actor_user_idstring | null (uuid)
    • created_atstring (date-time)bắt buộc
    • idinteger (int64)bắt buộc
    • ipstring | null
    • metadataobjectbắt buộc
    • resource_idstring | null
    • resource_typestringbắt buộc

Send an email sign-in factor after verifying the password

POST/api/v1/auth/mfa/email/send

Nội dung gửi lênapplication/json

PasskeyVerify

  • emailstringbắt buộc
  • passwordstringbắt buộc

Phản hồi

  • 204 Send an email sign-in factor after verifying the password

Complete discoverable passkey sign-in and issue a browser session

POST/api/v1/auth/passkeys/login/finish

Nội dung gửi lênapplication/json

MfaFinish

  • challenge_idstringbắt buộc
  • credentialanybắt buộc

Phản hồi

  • 200 Complete discoverable passkey sign-in and issue a browser sessionSessionResponse
    • csrf_tokenstring | null
    • userUserViewbắt buộc
      UserView
      • display_namestringbắt buộc
      • emailstringbắt buộc
      • idstring (uuid)bắt buộc
      • is_ownerbooleanbắt buộc
      • rolestringbắt buộc
      • totp_enabledbooleanbắt buộc

Begin discoverable passkey sign-in

POST/api/v1/auth/passkeys/login/start

Phản hồi

  • 200 Begin discoverable passkey sign-inMfaChallenge
    • challenge_idstringbắt buộc
    • optionsanybắt buộc

Complete passkey verification; return a single-use five-minute factor proof

POST/api/v1/auth/passkeys/verify/finish

Nội dung gửi lênapplication/json

MfaFinish

  • challenge_idstringbắt buộc
  • credentialanybắt buộc

Phản hồi

  • 200 Complete passkey verification; return a single-use five-minute factor proofMfaProof
    • mfa_proofstringbắt buộc

Begin a passkey second-factor or re-authentication ceremony

POST/api/v1/auth/passkeys/verify/start

Nội dung gửi lênapplication/json

PasskeyVerify

  • emailstringbắt buộc
  • passwordstringbắt buộc

Phản hồi

  • 200 Begin a passkey second-factor or re-authentication ceremonyMfaChallenge
    • challenge_idstringbắt buộc
    • optionsanybắt buộc

Approve a dymini-panel CLI browser callback or 8-character device code login

POST/api/v1/cli/auth/approve

Nội dung gửi lênapplication/json

CliAuthApproveRequest

  • device_codestring | null
  • namestring | null
  • request_idstring | null (uuid)

Phản hồi

  • 200 Approve a dymini-panel CLI browser callback or 8-character device code loginCliAuthApproveResponse
    • callback_urlstring | null
    • client_namestringbắt buộc
    • methodstringbắt buộc
    • request_idstring (uuid)bắt buộc
    • tokenstring | null
    • token_idstring (uuid)bắt buộc

Poll a dymini-panel CLI login request for the issued API token

POST/api/v1/cli/auth/poll

Nội dung gửi lênapplication/json

CliAuthPollRequest

  • poll_secretstringbắt buộc
  • request_idstring (uuid)bắt buộc

Phản hồi

  • 200 Poll a dymini-panel CLI login request for the issued API tokenCliAuthPollResponse
    • statusstringbắt buộc
    • tokenstring | null
    • token_idstring | null (uuid)

Inspect a pending dymini-panel CLI login request before approving it

GET/api/v1/cli/auth/requests/{id}

Phản hồi

  • 200 Inspect a pending dymini-panel CLI login request before approving itCliAuthRequestView
    • callback_urlstring | null
    • client_namestringbắt buộc
    • created_atstring (date-time)bắt buộc
    • device_codestring | null
    • expires_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • methodstringbắt buộc
    • scopesstring[]bắt buộc
    • statusstringbắt buộc

Start a browser or 8-character device-code login flow for dymini-panel CLI

POST/api/v1/cli/auth/start

Nội dung gửi lênapplication/json

CliAuthStartRequest

  • callback_urlstring | null
  • client_namestring | null
  • methodstringbắt buộc
  • scopesstring[]

Phản hồi

  • 201 Start a browser or 8-character device-code login flow for dymini-panel CLICliAuthStartResponse
    • device_codestring | null
    • expires_atstring (date-time)bắt buộc
    • interval_secondsinteger (int32)bắt buộc
    • methodstringbắt buộc
    • poll_secretstringbắt buộc
    • request_idstring (uuid)bắt buộc
    • verification_pathstringbắt buộc

Sign in

POST/api/v1/login

Nội dung gửi lênapplication/json

LoginRequest

  • emailstringbắt buộc
  • email_codestring | null
  • mfa_proofstring | null
  • passwordstringbắt buộc
  • totp_codestring | null

Phản hồi

  • 200 Sign inSessionResponse
    • csrf_tokenstring | null
    • userUserViewbắt buộc
      UserView
      • display_namestringbắt buộc
      • emailstringbắt buộc
      • idstring (uuid)bắt buộc
      • is_ownerbooleanbắt buộc
      • rolestringbắt buộc
      • totp_enabledbooleanbắt buộc

Sign out

POST/api/v1/logout

Phản hồi

  • 204 Sign out

Agent permission scopes and ready-made templates (admin)

GET/api/v1/mcp/catalog

Phản hồi

  • 200 Agent permission scopes and ready-made templates (admin)McpCatalog
    • scopesMcpScopeView[]bắt buộc
      McpScopeView[]
      • groupstringbắt buộc
      • idstringbắt buộc
      • summarystringbắt buộc
      • writebooleanbắt buộc
    • templatesMcpTemplateView[]bắt buộc
      McpTemplateView[]
      • idstringbắt buộc
      • namestringbắt buộc
      • scopesstring[]bắt buộc
      • summarystringbắt buộc
    • toolsMcpToolView[]bắt buộc
      McpToolView[]
      • descriptionstringbắt buộc
      • namestringbắt buộc
      • scopestringbắt buộc

Registered agent client name and redirect URLs (admin)

GET/api/v1/mcp/clients/{client_id}

Phản hồi

  • 200 Registered agent client name and redirect URLs (admin)McpClientView
    • client_idstringbắt buộc
    • client_namestringbắt buộc
    • redirect_urisstring[]bắt buộc

Approve an agent from a signed-in browser and return the redirect (admin)

POST/api/v1/mcp/consent

Nội dung gửi lênapplication/json

McpConsentRequest

  • allowed_toolsstring[]
  • client_idstringbắt buộc
  • code_challengestringbắt buộc
  • code_challenge_methodstringbắt buộc
  • namestring
  • redirect_uristringbắt buộc
  • resourcestring | null
  • scopesstring[]
  • statestringbắt buộc
  • templatestringbắt buộc

    full, read-all, operator, observer, or custom.

Phản hồi

  • 200 Approve an agent from a signed-in browser and return the redirect (admin)McpConsentResponse
    • redirectstringbắt buộc

      Send the browser here. It carries the one-time code.

Active agent approvals (admin)

GET/api/v1/mcp/grants

Phản hồi

  • 200 Active agent approvals (admin)McpGrantView[]
    • allowed_toolsstring[]
    • client_idstringbắt buộc
    • client_namestringbắt buộc
    • created_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • last_used_atstring | null (date-time)
    • namestringbắt buộc
    • scopesstring[]bắt buộc
    • templatestringbắt buộc

Edit an MCP grant's scopes and individual tools (admin, write)

PUT/api/v1/mcp/grants/{id}

Nội dung gửi lênapplication/json

McpGrantUpdate

  • allowed_toolsstring[]
  • scopesstring[]
  • templatestringbắt buộc

Phản hồi

  • 204 Edit an MCP grant's scopes and individual tools (admin, write)

Revoke an agent approval (admin, write)

DELETE/api/v1/mcp/grants/{id}

Phản hồi

  • 204 Revoke an agent approval (admin, write)

MCP path to append to the panel address (admin)

GET/api/v1/mcp/info

Phản hồi

  • 200 MCP path to append to the panel address (admin)McpInfo
    • pathstringbắt buộc

      Path to append to the panel address. The browser adds the origin.

Current session

GET/api/v1/me

Phản hồi

  • 200 Current sessionSessionResponse
    • csrf_tokenstring | null
    • userUserViewbắt buộc
      UserView
      • display_namestringbắt buộc
      • emailstringbắt buộc
      • idstring (uuid)bắt buộc
      • is_ownerbooleanbắt buộc
      • rolestringbắt buộc
      • totp_enabledbooleanbắt buộc

List enabled MFA methods and availability

GET/api/v1/me/mfa

Phản hồi

  • 200 List enabled MFA methods and availabilityMfaMethods
    • emailbooleanbắt buộc
    • email_availablebooleanbắt buộc
    • passkey_originstring | null
    • passkeysinteger (int64)bắt buộc
    • totpbooleanbắt buộc

Disable email MFA with password and a current factor

POST/api/v1/me/mfa/email/disable

Nội dung gửi lênapplication/json

MfaReauth

  • email_codestring | null
  • mfa_proofstring | null
  • totp_codestring | null
  • passwordstringbắt buộc

Phản hồi

  • 204 Disable email MFA with password and a current factor

Enable email MFA with the enrollment code and password

POST/api/v1/me/mfa/email/enable

Nội dung gửi lênapplication/json

EmailMfaEnable

  • codestringbắt buộc
  • passwordstringbắt buộc

Phản hồi

  • 204 Enable email MFA with the enrollment code and password

Send an enrollment or re-authentication email code

POST/api/v1/me/mfa/email/send

Nội dung gửi lênapplication/json

EmailMfaSend

  • purposestringbắt buộc

Phản hồi

  • 204 Send an enrollment or re-authentication email code

List your registered passkeys

GET/api/v1/me/passkeys

Phản hồi

  • 200 List your registered passkeysPasskeyView[]
    • counterinteger (int64)bắt buộc
    • created_atstring (date-time)bắt buộc
    • idstring (uuid)bắt buộc
    • last_used_atstring | null (date-time)
    • namestringbắt buộc

Complete a single-use passkey registration

POST/api/v1/me/passkeys/register/finish

Nội dung gửi lênapplication/json

MfaFinish

  • challenge_idstringbắt buộc
  • credentialanybắt buộc

Phản hồi

  • 204 Complete a single-use passkey registration

Begin resident passkey registration after re-authentication

POST/api/v1/me/passkeys/register/start

Nội dung gửi lênapplication/json

PasskeyRegister

  • namestringbắt buộc

Phản hồi

  • 200 Begin resident passkey registration after re-authenticationMfaChallenge
    • challenge_idstringbắt buộc
    • optionsanybắt buộc

Rename your passkey

PATCH/api/v1/me/passkeys/{id}

Nội dung gửi lênapplication/json

PasskeyName

  • namestringbắt buộc

Phản hồi

  • 204 Rename your passkey

Delete your passkey with password and a current factor

DELETE/api/v1/me/passkeys/{id}

Nội dung gửi lênapplication/json

MfaReauth

  • email_codestring | null
  • mfa_proofstring | null
  • totp_codestring | null
  • passwordstringbắt buộc

Phản hồi

  • 204 Delete your passkey with password and a current factor

Change password

POST/api/v1/me/password

Nội dung gửi lênapplication/json

PasswordChange

  • current_passwordstringbắt buộc
  • new_passwordstringbắt buộc

Phản hồi

  • 204 Change password

Disable authenticator

POST/api/v1/me/totp/disable

Nội dung gửi lênapplication/json

TotpDisable

  • codestringbắt buộc
  • email_codestring | null
  • mfa_proofstring | null
  • passwordstringbắt buộc

Phản hồi

  • 204 Disable authenticator

Enable authenticator and show recovery codes once

POST/api/v1/me/totp/enable

Nội dung gửi lênapplication/json

TotpEnable

  • codestringbắt buộc

Phản hồi

  • 200 Enable authenticator and show recovery codes onceRecoveryCodes
    • recovery_codesstring[]bắt buộc

Start authenticator setup

POST/api/v1/me/totp/setup

Nội dung gửi lênapplication/json

MfaReauth

  • email_codestring | null
  • mfa_proofstring | null
  • totp_codestring | null
  • passwordstringbắt buộc

Phản hồi

  • 200 Start authenticator setupTotpSetupResponse
    • otpauth_urlstringbắt buộc
    • secretstringbắt buộc

Create the owner

POST/api/v1/setup

Nội dung gửi lênapplication/json

SetupRequest

  • display_namestring | null
  • emailstringbắt buộc
  • passwordstringbắt buộc
  • setup_tokenstringbắt buộc

    One-time token from setup-token in the data directory, or DYMINI_PANEL_SETUP_TOKEN.

Phản hồi

  • 200 Create the ownerSessionResponse
    • csrf_tokenstring | null
    • userUserViewbắt buộc
      UserView
      • display_namestringbắt buộc
      • emailstringbắt buộc
      • idstring (uuid)bắt buộc
      • is_ownerbooleanbắt buộc
      • rolestringbắt buộc
      • totp_enabledbooleanbắt buộc

Setup status

GET/api/v1/setup/status

Phản hồi

  • 200 Setup statusSetupStatus
    • needs_setupbooleanbắt buộc

List API tokens

GET/api/v1/tokens

Phản hồi

  • 200 List API tokensTokenView[]
    • agent_scopesstring[]
    • allowed_toolsstring[]
    • auth_methodstringbắt buộc
    • created_atstring (date-time)bắt buộc
    • created_by_mcp_clientstring | null
    • expires_atstring | null (date-time)
    • idstring (uuid)bắt buộc
    • last_used_atstring | null (date-time)
    • namestringbắt buộc
    • scopesstring[]bắt buộc

Create an API token

POST/api/v1/tokens

Nội dung gửi lênapplication/json

CreateToken

  • agent_scopesstring[]
  • allowed_toolsstring[]
  • expires_atstring | null (date-time)
  • namestringbắt buộc
  • scopesstring[]bắt buộc

Phản hồi

  • 201 Create an API tokenCreatedToken
    • agent_scopesstring[]
    • allowed_toolsstring[]
    • auth_methodstringbắt buộc
    • created_by_mcp_clientstring | null
    • expires_atstring | null (date-time)
    • idstring (uuid)bắt buộc
    • namestringbắt buộc
    • scopesstring[]bắt buộc
    • tokenstringbắt buộc

Revoke an API token

DELETE/api/v1/tokens/{id}

Phản hồi

  • 204 Revoke an API token

List users

GET/api/v1/users

Phản hồi

  • 200 List usersUserView[]
    • display_namestringbắt buộc
    • emailstringbắt buộc
    • idstring (uuid)bắt buộc
    • is_ownerbooleanbắt buộc
    • rolestringbắt buộc
    • totp_enabledbooleanbắt buộc

Create user

POST/api/v1/users

Nội dung gửi lênapplication/json

CreateUser

  • display_namestring | null
  • emailstringbắt buộc
  • passwordstringbắt buộc
  • rolestringbắt buộc

Phản hồi

  • 201 Create userUserView
    • display_namestringbắt buộc
    • emailstringbắt buộc
    • idstring (uuid)bắt buộc
    • is_ownerbooleanbắt buộc
    • rolestringbắt buộc
    • totp_enabledbooleanbắt buộc

Change a user's role

PATCH/api/v1/users/{id}

Nội dung gửi lênapplication/json

UpdateUser

  • rolestringbắt buộc

Phản hồi

  • 200 Change a user's roleUserView
    • display_namestringbắt buộc
    • emailstringbắt buộc
    • idstring (uuid)bắt buộc
    • is_ownerbooleanbắt buộc
    • rolestringbắt buộc
    • totp_enabledbooleanbắt buộc

Delete a user

DELETE/api/v1/users/{id}

Phản hồi

  • 204 Delete a user

MCP SSE is not offered; use POST

GET/mcp

Phản hồi

  • 405 MCP SSE is not offered; use POST

MCP JSON-RPC. Agents call panel actions here after approval

POST/mcp

Phản hồi

  • 200 MCP JSON-RPC. Agents call panel actions here after approval

End an MCP HTTP session

DELETE/mcp

Phản hồi

  • 204 End an MCP HTTP session

Start agent approval. Redirects to sign-in, then to the consent page

GET/oauth/authorize

Phản hồi

  • 302 Start agent approval. Redirects to sign-in, then to the consent page

Register an OAuth client for an agent (dynamic client registration)

POST/oauth/register

Phản hồi

  • 201 Register an OAuth client for an agent (dynamic client registration)

Revoke an agent access or refresh token

POST/oauth/revoke

Phản hồi

  • 200 Revoke an agent access or refresh token

Exchange an authorization code or refresh token for an agent access token

POST/oauth/token

Phản hồi

  • 200 Exchange an authorization code or refresh token for an agent access token