Overview
The Miget API allows you to programmatically manage your applications, databases, and infrastructure on the Miget platform.Base URL
All API requests should be made to:Authentication
Miget API supports three authentication methods.Option 1: User API Tokens (Recommended)
A token that acts as you, in any workspace you belong to. Create one under Account settings → API Tokens, then send it in theAuthorization header:
- It carries whatever your role grants, in whichever workspace the request targets.
- Expiry is optional, which is what makes these convenient for CI/CD.
- Up to 10 active tokens per user.
A user token stops working when you lose access to a workspace, and carries your permissions wherever it is used. For automation that has to outlive one person’s membership, use a workspace token instead.
Option 2: Workspace API Tokens
A token that acts for the workspace rather than for a person. Create one under Workspace → Settings → Developers → API Tokens. It is sent exactly like a user token:- It carries its own permission list and its own project list, both fixed at creation and editable afterwards.
- Expiry is optional: give it a date, capped at 12 months out, or set it to Never and the token runs until it is revoked.
- Up to 20 active tokens per workspace, counted separately from anyone’s personal budget.
A workspace token is self-describing: what it can do is exactly its own two lists. Neither the role of the person who created it nor workspace ownership widens it — an owner can create a token that only reads applications, and a token created by a collaborator can carry
apps:manage.- It is pinned to its workspace. An
X-Workspace-Idheader naming a different workspace is rejected with403rather than ignored. - It cannot reach a personal account.
/api/v1/users/meand everything under it — SSH keys, credits — answers403. - It cannot administer the workspace. Members, roles, billing, stored credentials and integrations are never grantable to a token, which is what stops a token from creating another token.
Option 3: Session Tokens (Basic Auth)
Use your email and password to obtain session tokens via the/auth/sign_in endpoint.
access_token and refresh_token. The access token expires and needs to be refreshed periodically using the /auth/refresh_token endpoint.
Workspace Context
This applies to Option 1 and Option 3. A workspace token (Option 2) is bound to its workspace at creation and cannot be pointed at another one — anX-Workspace-Id header naming a different workspace is rejected with 403.
Authenticated as a user, requests operate on your default workspace (the last workspace you were active in). To target a specific one, include the X-Workspace-Id header with the workspace UUID:
Response Format
All responses are returned in JSON format. Successful responses typically include the requested data, while errors include anerror field with a descriptive message.

