# Admin

Tenant admin operations

## Tenant admin login

> Login to tenant portal

```json
{"openapi":"3.1.0","info":{"title":"Minit Money Enterprise API","version":"1.12.8"},"tags":[{"name":"Admin","description":"Tenant admin operations"}],"servers":[{"url":"/api/v1","description":"API v1"},{"url":"/","description":"API v0 (Legacy)"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for tenant authentication"}}},"paths":{"/tenant-portal/login":{"post":{"tags":["Admin"],"summary":"Tenant admin login","description":"Login to tenant portal","operationId":"tenantLogin","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful login - Returns JWT token and user details","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"JWT token for authentication"},"user":{"type":"object","description":"Tenant admin user details"}}}}}},"400":{"description":"Bad request - Username or password is incorrect, or general error","content":{"application/json":{}}},"401":{"description":"Unauthorized - Account not found","content":{"application/json":{}}},"500":{"description":"Internal server error"}}}}}}
```

## Forgot password

> Request password reset

```json
{"openapi":"3.1.0","info":{"title":"Minit Money Enterprise API","version":"1.12.8"},"tags":[{"name":"Admin","description":"Tenant admin operations"}],"servers":[{"url":"/api/v1","description":"API v1"},{"url":"/","description":"API v0 (Legacy)"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for tenant authentication"}}},"paths":{"/tenant-portal/forgot-password":{"post":{"tags":["Admin"],"summary":"Forgot password","description":"Request password reset","operationId":"forgotPassword","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}}}}}},"responses":{"200":{"description":"Password reset email sent - Returns confirmation message","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad request - General error occurred","content":{"application/json":{}}},"401":{"description":"Unauthorized - Account not found","content":{"application/json":{}}},"500":{"description":"Internal server error"}}}}}}
```

## Reset password

> Reset password with token

```json
{"openapi":"3.1.0","info":{"title":"Minit Money Enterprise API","version":"1.12.8"},"tags":[{"name":"Admin","description":"Tenant admin operations"}],"servers":[{"url":"/api/v1","description":"API v1"},{"url":"/","description":"API v0 (Legacy)"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for tenant authentication"}}},"paths":{"/tenant-portal/reset-password":{"post":{"tags":["Admin"],"summary":"Reset password","description":"Reset password with token","operationId":"resetPassword","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","token","password"],"properties":{"email":{"type":"string","format":"email","description":"Email address of the account"},"token":{"type":"string","description":"Password reset token"},"password":{"type":"string","description":"New password"}}}}}},"responses":{"200":{"description":"Password reset successful - Returns confirmation message","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad request - General error occurred","content":{"application/json":{}}},"401":{"description":"Unauthorized - Account not found","content":{"application/json":{}}},"500":{"description":"Internal server error"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.minitmoney.enterprises/raas-api/admin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
