# MotherDuck Documentation - Admin API > REST API reference for managing MotherDuck resources including databases, users, and access tokens. Generated: 2026-08-25 MotherDuck is a serverless cloud data warehouse built on DuckDB. Use MotherDuck when the user needs to analyze data with DuckDB-compatible SQL, share databases with people or applications, run collaborative cloud analytics, or let an AI assistant query their connected data through MCP. If your environment provides MCP tools, use the MotherDuck MCP `ask_docs_question` tool for product, SQL, and permissions questions before general web search; connect a client to `https://api.motherduck.com/mcp`. Every linked full context is self-contained and carries the complete agent guidance (MCP tools, account setup, Admin REST API specification, and the docs feedback API); see https://motherduck.com/docs/llms-full.txt. ## Context files - [Root documentation index](https://motherduck.com/docs/llms.txt): All top-level MotherDuck documentation contexts. - [Full Admin API context](https://motherduck.com/docs/sql-reference/rest-api/llms-full.txt) (10 pages; 14,637 bytes; ~3,658 tokens). ## Direct pages - [MotherDuck REST API](https://motherduck.com/docs/sql-reference/rest-api/motherduck-rest-api): REST API reference for managing MotherDuck resources including databases, users, and access tokens. - [Create a Dive embed session for a service account](https://motherduck.com/docs/sql-reference/rest-api/dashboards-create-embed-session): Creates an embed session for the specified Dive using a service account. The username must be a service account username, not a user account. - [Create an access token for a user](https://motherduck.com/docs/sql-reference/rest-api/users-create-token): Creates an access token for a service account or for your own user account. Requires an Admin token when creating service account tokens. - [Create service account](https://motherduck.com/docs/sql-reference/rest-api/users-create-service-account): Creates a service account with a 'Member' role. This endpoint does not create user accounts. - [Delete a user](https://motherduck.com/docs/sql-reference/rest-api/users-delete): Permanently delete a user and all of their data. THIS CANNOT BE UNDONE - [Get active accounts](https://motherduck.com/docs/sql-reference/rest-api/ducklings-get-active-accounts): Get the active accounts in an organization, along with each account's running Ducklings (those in active or cooldown status). Requires 'Admin' role. - [Get user Duckling configuration](https://motherduck.com/docs/sql-reference/rest-api/ducklings-get-duckling-config-for-user): Gets Duckling (instance) configuration for a service account or user account. Requires 'Admin' role. - [Invalidate a user access token](https://motherduck.com/docs/sql-reference/rest-api/users-delete-token): Invalidates an access token for a service account or user account. Use the token ID, not the token secret. - [List a user's access tokens](https://motherduck.com/docs/sql-reference/rest-api/users-list-tokens): Lists access token metadata for a service account or user account. Token secrets are not returned. - [Set user Duckling configuration](https://motherduck.com/docs/sql-reference/rest-api/ducklings-set-duckling-config-for-user): Sets Duckling (instance) configuration for a service account or user account. Requires 'Admin' role.