milmilmilmil
API 參考

Notification Settings

Per-user notification provider configuration and tests

GET
/api/v1/settings/notifications

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/settings/notifications"
{}
PUT
/api/v1/settings/notifications

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PUT "https://example.com/api/v1/settings/notifications" \  -H "Content-Type: application/json" \  -d '{}'
Empty
GET
/api/v1/settings/notifications/status

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/settings/notifications/status"
{}
POST
/api/v1/settings/notifications/test

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v1/settings/notifications/test" \  -H "Content-Type: application/json" \  -d '{    "provider": "string"  }'
Empty
POST
/api/v1/settings/notifications/test-bot

Always responds 200; success reports whether the bot token worked.

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/settings/notifications/test-bot" \  -H "Content-Type: application/json" \  -d '{    "platform": "telegram"  }'
{  "success": true,  "error": "string",  "bot_username": "string"}